Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / list_installed_chocolatey_application.ps1
Last active September 5, 2018 21:02
Get the list of application that are installed using Chocolatey
choco list -lo -r -y | % { "choco install $($_.SubString(0, $_.IndexOf("|"))) -y" }
@ishu3101
ishu3101 / test.ps1
Last active April 29, 2022 05:22
Testing ability to run Powershell script using Invoke-RestMethod http://path/to/url | iex
# To run this script, run the command below in comments
# $url = "https://gist.github.com/ishu3101/fa2db197a4acb59b796e8a6aa40aff01/raw/"
# Invoke-RestMethod $url | iex
ls
@ishu3101
ishu3101 / run_code_online.md
Created August 2, 2017 22:44
Run code using Python, Javascript, Ruby, PowerShell & more online
  • https://tio.run - Try It Online (TIO) is a family of online interpreters for an evergrowing list of practical and recreational programming languages.
  • https://repl.it - repl.it is a cloud coding environment for Python, Ruby, Javascript, Node, React Native & more
@ishu3101
ishu3101 / docker_setup_windows.sh
Created July 10, 2017 05:19
Installing docker on Windows
# install docker on windows
chocolatey install docker
chocolatey install docker-machine
chocolatey install docker-compose
@ishu3101
ishu3101 / index.html
Created June 24, 2017 09:01
List all the users github repository using javascript only
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Github Repository</title>
</head>
<body>
<script>
var username = "ishu3101";
@ishu3101
ishu3101 / .gitlab-ci.yml
Created June 8, 2017 07:27
Run PowerShell Command/Script from a .gitlab-ci.yml file on a gitlab.com using the Gitlab CI
image: philippheuer/docker-gitlab-powershell
test:
stage: test
script:
# run PowerShell script
- powershell -File build.ps1
# run PowerShell Command
- powershell -Command "Get-Date"
@ishu3101
ishu3101 / programming_quote.py
Created May 29, 2017 00:58
Generate a Random Programming Quote using an API
#!/usr/bin/python
import urllib
import urllib2
import random
import json
# get a random programming quote using an api
url="http://quotes.stormconsultancy.co.uk/random.json"
@ishu3101
ishu3101 / compile_latex.sh
Last active January 22, 2022 07:41
Compile latex files online using http://latexonline.cc
# Compile latex files online using https://latexonline.cc
# Overleaf
# Usage
https://latexonline.cc/compile?git=https://git.overleaf.com/{id}&target={filename}.tex
# Example
https://latexonline.cc/compile?git=https://git.overleaf.com/9212267nmctrvktqxnf&target=main.tex
# Github
@ishu3101
ishu3101 / social_share.csv
Created May 8, 2017 05:08
Social Share URL
Twitter https://twitter.com/intent/tweet?url={url}
Facebook https://facebook.com/sharer/sharer.php?u={url}
Google+ https://plus.google.com/share?url={url}
Linkedin https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}
Reddit https://www.reddit.com/submit?url={url}