Skip to content

Instantly share code, notes, and snippets.

ishu3101

Block or report user

Report or block ishu3101

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View success_startup_quotes.json
[
{
"quote": "In a crowded marketplace, fitting in is failing. In a busy marketplace, not standing out is the same as being invisible.",
"author": "Seth Godin",
"source": "https://www.amazon.com/Purple-Cow-New-Transform-Remarkable/dp/1591843170"
},
{
"quote": "It’s counterintuitive, but the way to grow your business is to focus entirely on your existing customers. Just thrill them, and they’ll tell everyone",
"author": "Derek Sivers",
"source": "https://www.amazon.com/Anything-You-Want-Lessons-Entrepreneur/dp/1511366079",
@ishu3101
ishu3101 / packer_setup.sh
Created Nov 2, 2018
Install Packer on Ubuntu 16.04
View packer_setup.sh
curl -SL https://releases.hashicorp.com/packer/1.3.2/packer_1.3.2_linux_amd64.zip -o packer_1.3.2_linux_amd64.zip
unzip packer_1.3.2_linux_amd64.zip
sudo mv packer /usr/bin/packer
@ishu3101
ishu3101 / install_nanobox.sh
Created Oct 13, 2018
Install Nanobox and Docker CE on Ubuntu 18.04
View install_nanobox.sh
# Script to install nanobox and docker-ce
# install Nanobox
curl -SL https://d1ormdui8qdvue.cloudfront.net/installers/v2/linux/nanobox_2_amd64.deb -o nanobox_2_amd64.deb
sudo dpkg -i nanobox_2_amd64.deb
# install docker ce
# Environment variables you need to set so you don't have to edit the script below.
export DOCKER_CHANNEL=edge
@ishu3101
ishu3101 / Disable-UAC.ps1
Created Oct 4, 2018
Disable User Access Account (UAC) using PowerShell
View Disable-UAC.ps1
function Disable-UAC(){
$numVersion = (Get-CimInstance Win32_OperatingSystem).Version
$numSplit = $numVersion.split(".")[0]
if ($numSplit -eq 10) {
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value "0"
}
elseIf ($numSplit -eq 6) {
$enumSplit = $numSplit.split(".")[1]
if ($enumSplit -eq 1 -or $enumSplit -eq 0) {
@ishu3101
ishu3101 / list_installed_chocolatey_application.ps1
Last active Sep 5, 2018
Get the list of application that are installed using Chocolatey
View list_installed_chocolatey_application.ps1
choco list -lo -r -y | % { "choco install $($_.SubString(0, $_.IndexOf("|"))) -y" }
@ishu3101
ishu3101 / test.ps1
Last active Aug 20, 2018
Testing ability to run Powershell script using Invoke-RestMethod http://path/to/url | iex
View test.ps1
# 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 Aug 2, 2017
Run code using Python, Javascript, Ruby, PowerShell & more online
View run_code_online.md
  • 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
View gitlab-pages.md
@ishu3101
ishu3101 / docker_setup_windows.sh
Created Jul 10, 2017
Installing docker on Windows
View docker_setup_windows.sh
# install docker on windows
chocolatey install docker
chocolatey install docker-machine
chocolatey install docker-compose
@ishu3101
ishu3101 / index.html
Created Jun 24, 2017
List all the users github repository using javascript only
View index.html
<!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";
You can’t perform that action at this time.