Skip to content

Instantly share code, notes, and snippets.

View mIcHyAmRaNe's full-sized avatar
🎮
League of Legends gamer 🎮

Michy Amrane mIcHyAmRaNe

🎮
League of Legends gamer 🎮
View GitHub Profile
@mIcHyAmRaNe
mIcHyAmRaNe / starship.toml
Last active January 15, 2024 01:12
starship kali linux preset
# Inserts a blank line between shell prompts
add_newline = true
format = """
[┌╴\\(](bold green)[$username㉿$hostname](bold blue)[\\)](bold green)$os $time\
| $all[└─](green) $character\
"""
[character]
success_symbol = "💲"
version=6.7
TEMPATH='/tmp'
PLUGINPATH='/usr/lib/enigma2/python/Plugins/Extensions/IPAudio'
CHECK='/tmp/check'
BINDIR='/usr/bin/'
ARMBIN='/tmp/ipaudio/bin/arm/*'
MIPSBIN='/tmp/ipaudio/bin/mips/*'
SH4BIN='/tmp/ipaudio/bin/sh4/*'
AARCH64='/tmp/ipaudio/bin/aarch64/*'

Keybase proof

I hereby claim:

  • I am michyamrane on github.
  • I am michyamrane (https://keybase.io/michyamrane) on keybase.
  • I have a public key ASDuLB0S_GY2MNx39qkjtseC3XTYhg9KRT-8mfJVxSafrQo

To claim this, I am signing this object:

from os.path import curdir, realpath
from os import makedirs
import stem.process
import stem.control
import requests
import socks
import socket
import json
@mIcHyAmRaNe
mIcHyAmRaNe / divide-list.py
Created May 11, 2019 17:22
divide list python
num = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
list(zip(num[0::3], num[1::3], num[2::3]))
#output: [('1', '2', '3'), ('4', '5', '6'), ('7', '8', '9'), ('10', '11', '12')]
parts = []
for start_index in range(0, len(num), len(num) // 4):
end_index = start_index + len(num)//4
parts.append(num[start_index:end_index])
@mIcHyAmRaNe
mIcHyAmRaNe / api-proxy-list
Created May 1, 2019 22:52
get random proxy from proxy-list.download
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
import random
rq = requests.get('http://www.proxy-list.download/api/v1/get?type=http&anon=elite').text.splitlines()
prox = random.choice(rq)
proxies = {
@mIcHyAmRaNe
mIcHyAmRaNe / args-proxy-tor.py
Created October 23, 2017 21:24
argparse , tor & proxy http requests
#!/usr/bin/env python3
import argparse
import requests
import socket
import socks
import urllib.request, urllib.error, urllib.parse
from urllib.request import urlopen
parser = argparse.ArgumentParser()
@mIcHyAmRaNe
mIcHyAmRaNe / int&noZero2.py
Created September 23, 2017 22:44
python3: script that accept only integer and refuse 0 only accept even numbers for some odd reason. no pun intended
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
while True:
try:
x = int(input('enter a number'))
except ValueError:
print('this is not a number')
continue
@mIcHyAmRaNe
mIcHyAmRaNe / int&noZero.py
Created September 23, 2017 22:39
python3: script that accept only integer and refuse 0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
while True:
try:
x = int(input('enter a number'))
if x == 0:
print('we dont accept 0')
continue
break
@mIcHyAmRaNe
mIcHyAmRaNe / tor-proxy.py
Created September 22, 2017 18:44
Python3: choice between tor , http/https proxies or direct connections to execute instructions
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
try:
import os
os.path.abspath(__file__) #just to remember it :D (i have a bad memory ^^)
import urllib.request, urllib.error, urllib.parse
import requests
import socket
import socks