Skip to content

Instantly share code, notes, and snippets.

https://github.com/d3417/Microsoft-Activation-Scripts
#!/bin/bash
"""
Put it in /usr/sbin/ or $HOME/.bashrc exactly was named in gist and run after chmod o+x add-apt-repository && chown root:root add-apt-repository
in this way>
sudo ./add-apt-repository ppa:unsupported/repolol
Ripped by Denis Sossich, but really it's not my code. ^_^
"""
@d3417
d3417 / add-apt-repository
Created August 19, 2020 22:50
Force add-apt-repository to add all Repos in Linux with this fantastic SH Script ;) You can add it in .bashrc or /usr/sbin
#!/bin/bash
"""
Put it in /usr/sbin/ or $HOME/.bashrc exactly was named in gist and run after chmod o+x add-apt-repository && chown root:root add-apt-repository
in this way>
sudo ./add-apt-repository ppa:unsupported/repolol
Ripped by Denis Sossich, but really it's not my code. ^_^
"""
[Adblock Plus 2.0]
! Title: Filters by hant0508
! Version: 3.10.6
! Homepage: https://github.com/hant0508/uBlock-filters
! Recommended to use with:
! - EasyList
! - EasyPrivacy
! - Fanboy’s Enhanced Tracking List
! - Adblock Warning Removal List
@d3417
d3417 / .bashrc.sh
Created October 31, 2018 06:32
wheater into your bashrc
function meteo {
ip=`curl icanhazip.com 2> /dev/null`
city=`curl cli.fyi/$ip 2> /dev/null|grep "city"|cut -c 17-|sed s/,//g`
curl wttr.in/$city 2> /dev/null
}
meteo|head -n7
@d3417
d3417 / chrootandfix.sh
Created October 17, 2018 22:22
Stupid utility for mounting encrypted partitions and chroot into for fixing some problems.
#!/bin/bash
echo "Encrypted ArchLinux Fixing Utility"
echo "Copyright d3417_"
echo ""
function start {
echo "Mounting Disk ..."
udisksctl unlock -b /dev/lvm/lvroot
udisksctl mount -b /dev/dm-3 /mnt
echo ""
@d3417
d3417 / fix.sh
Created September 5, 2016 14:18
fix
nomefile="/usr/share/xerosploit/xerosploit.py"
ricerca="\/opt\/xerosploit\/"
sostituisci="\/usr\/share\/xerosploit\/"
if cat $nomefile | grep $ricerca; then
echo "XeroSploit Fixed"
sed -i "s/$ricerca/$sostituisci/" $nomefile
fi