Skip to content

Instantly share code, notes, and snippets.

View fuomag9's full-sized avatar
🥝
Available

fuomag9

🥝
Available
View GitHub Profile
@fuomag9
fuomag9 / space2underscore.py
Last active September 6, 2018 08:29
Replace spaces with underscores for files in execution folder
# coding=utf-8
import os
from os import listdir
from os.path import isfile, join
bot_path=os.getcwd()
lista_cibo=[f for f in listdir(bot_path) if isfile(join(bot_path, f))]
for x in lista_cibo:
os.rename(x,x.replace(" ","_"))
@fuomag9
fuomag9 / script.js
Created February 3, 2019 15:33
DNSDUMPSTER -> console
// ==UserScript==
// @name DNSDUMPSTER -> console
// @namespace http://tampermonkey.net/
// @version 0.1
// @description DNSDUMPSTER -> console
// @author fuomag9
// @match https://dnsdumpster.com/
// @grant none
// ==/UserScript==
@fuomag9
fuomag9 / script.js
Created March 21, 2019 13:40
rimpiazza timeevent (roba di periscope)
// ==UserScript==
// @name rimpiazza timeevent (roba di periscope)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.pscp.tv/*
// @grant none
// ==/UserScript==
@fuomag9
fuomag9 / autoclickperiscope.js
Last active March 21, 2019 14:55
clicca cuore auto periscope
// ==UserScript==
// @name clicca cuore auto periscope
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match https://www.pscp.tv/*
// @grant none
// ==/UserScript==
@fuomag9
fuomag9 / cssperiscope.css
Created March 21, 2019 14:19
cssperiscope.css
/* Normal white Button as seen on Google.com*/
button {
color: #444444;
background: #F3F3F3;
border: 1px #DADADA solid;
padding: 5px 10px;
border-radius: 2px;
font-weight: bold;
font-size: 9pt;
outline: none;
import sympy
from sympy import *
X = sympy.Symbol('x')
#f=parse_expr(str(input("inserisci la tua funzione\n")))
f=sin(X)-X**2
a=float(input("inserisci il minore dell'intervallo\n"))
@fuomag9
fuomag9 / script.ps1
Created June 25, 2019 11:21
powershell autosubdomain
$domain_path="D:\fuomag9\Documents\hacking\results\$domain\"
$domain_txt_1="$domain"+"_1.txt"
$domain_txt_2="$domain"+"_2.txt"
$domain_txt_3="$domain"+"_3.txt"
$domain_result="$domain"+"_result.txt"
$domain_result_temp="$domain"+"_result_temp.txt"
$domain_txt_1_path="$domain_path\$domain_txt_1"
@fuomag9
fuomag9 / mimetypes.txt
Created August 28, 2020 16:41
mimetypes list
application/andrew-inset
application/applixware
application/atom+xml
application/atomcat+xml
application/atomsvc+xml
application/ccxml+xml,
application/cdmi-capability
application/cdmi-container
application/cdmi-domain
application/cdmi-object
@fuomag9
fuomag9 / gist:84637e44a0f96c947188d35b7aee4f55
Created October 10, 2020 09:34
delete duplicate files by md5
find . -type f \
| xargs md5sum \
| sort -k1,1 \
| uniq -Dw32 \
| while read hash file; do
[ "${prev_hash}" == "${hash}" ] && rm -v "${file}"
prev_hash="${hash}";
done
@fuomag9
fuomag9 / clean-kubernetes-images.py
Last active March 18, 2021 12:25
Delete/cleanup all containerd kubernetes images on microk8s
import subprocess
a = subprocess.getoutput('microk8s.ctr i ls')
a = a.split("\n")
b = [x.split(" ")[0] for x in a]
del b[0]
ii = str(input(f"Do you want to delete {len(b)} images?"))
if ii == "yes" or ii=="y":
for x in b:
print(subprocess.getoutput(f'microk8s.ctr i rm {x}')+" has been deleted")