Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / Disable-UAC.ps1
Created October 4, 2018 22:22
Disable User Access Account (UAC) using PowerShell
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 / 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 / reset-wsl.sh
Created July 22, 2016 23:38
Resetting your Windows Subsystem for Linux (WSL) Environment
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
@ishu3101
ishu3101 / imessage_charge.txt
Last active February 25, 2023 06:31
Why do you get charged every time for Activating iMessage or Facetime.
For iMessage/Facetime to activate after SIM change, iOS update or iMessage off/on,
iOS would be trying to send a background international TXT to the UK +44 (is 31c/SMS on prepay).
This is for Apple to validate the mobile number as yours so that people can't spoof your mobile number
and pretend to be you through iMessage/Facetime.
iMessages themselves are of course, not charged at all by Vodafone per message,
iMessages only use a relatively small ammount of internet data be that mobile or WiFi at home or whatever.
Taken from: https://community.vodafone.co.nz/t5/iPhone-iPad/HELP-text-message-and-Imessage-issues/td-p/124287
@ishu3101
ishu3101 / base.yml
Created September 28, 2022 01:53
Config file for Espanso - Cross Platform Text Expander
# espanso match file
# For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the base matches (aka snippets)
# that will be available in every application when using espanso.
# Matches are substitution rules: when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
@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
Here's a list of the most common folders in the iOS file system. Please note, if your device is still jailed you are NOT able to see these folders.
/Applications
This is where pre-installed native apps and jailbreak apps are installed.
/Library/Ringtones
This is where the pre-installed ringtones are stored. User-purchased ringtones are placed in /private/var/mobile/Media/Ringtones
/Library/Wallpaper
This is where Wallpapers and Lockscreens are stored.
@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 / 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 / web_searches.csv
Last active July 11, 2021 03:32
Web Searches
google https://www.google.com/search?q={query}
google lucky https://www.google.co.nz/search?q={query}&btnI
google image https://www.google.com/search?q={query}&tbm=isch
duckduckgo https://duckduckgo.com/?q={query}
bing https://www.bing.com/search?q={query}
yahoo http://www.search.yahoo.com/search?p={query}
wikipedia http://en.wikipedia.org/wiki/{query}
youtube http://www.youtube.com/results?search_query={query}
facebook http://www.facebook.com/search/?q={query}
twitter https://twitter.com/search?q={query}