Instantly share code, notes, and snippets.

πŸ•
Busy
πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•πŸ•

Shahriar yazdipour

View GitHub Profile
View UTM.java
import java.util.Locale;
/**
* Class representing UTM-coordinates. Based on code from stack overflow.
* @see <a href="https://stackoverflow.com/questions/176137/java-convert-lat-lon-to-utm">Stack Overflow</a>
* @see <a href="https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system">Wikipedia-entry on UTM</a>
* @author Rolf Rander
*/
public class UTM
{
View mario.lua
-- MarI/O by SethBling
-- Feel free to use this code, but please do not redistribute it.
-- Intended for use with the BizHawk emulator and Super Mario World or Super Mario Bros. ROM.
-- For SMW, make sure you have a save state named "DP1.state" at the beginning of a level,
-- and put a copy in both the Lua folder and the root directory of BizHawk.
if gameinfo.getromname() == "Super Mario World (USA)" then
Filename = "DP1.state"
ButtonNames = {
"A",
View Telegram Proxy Channels
https://t.me/shareproxyfree
https://t.me/SSRlist
https://t.me/gyjclub
https://t.me/HFCHB
View gist:d7e2e64696a19d8bddd272bb9f611933
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
View README.md
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
git
github
gitlab
bitbucket
MoOx
View proxy-switcher.sh
# using:
# for set proxy:
# $ setproxy 127.0.0.1 8118
# for unset:
# $ unsetproxy
function setproxy() {
export {http,https,ftp,HTTP,HTTPS}_proxy=http://$1:$2
export no_proxy="localhost,127.0.0.1,master.cafecluster"
echo "Proxy variable(http,https,ftp) set to $1:$2"
View breachcompilation.txt
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
View IDM Cleaner.bat
IDM Cleaner.bat
:: IDM Registry Cleaner
:: Completely cleans registry of all IDM fake serial leftovers
@ECHO OFF
@TITLE IDM Registry Cleaner
@COLOR 0E
@ECHO :: IDM Registry Cleaner
@ECHO :: Compeletely cleans registry of all IDM fake serial leftovers
@ECHO.
View labels_1024.tsv
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file
7
2
1
0
4
1
4
9
5
9
View text2speech.py
import win32com.client as wincl
import random
from time import sleep
speak = wincl.Dispatch("SAPI.SpVoice")
problems=[13,30,4,14,40,5,15,50,6,16,60,70,17,'seventh','sixth','fifth','fourth']
while True:
rnd=str(random.choice(problems))
speak.Speak(rnd)