Skip to content

Instantly share code, notes, and snippets.

View Nanodragon999's full-sized avatar
🏠
Searching for a remote work.

Norton Nanodragon999

🏠
Searching for a remote work.
  • France
View GitHub Profile
@skeggse
skeggse / md5.sh
Created April 9, 2014 20:15
recursive md5 implementation with md5sum fallback, bash only
#!/bin/bash
if [ "$#" -eq 0 ]; then
md5sum "$@"
exit 0
fi
recursive=0
exclude=0
sum=0
@jasonkeene
jasonkeene / python_scripting.rst
Last active November 14, 2024 11:18
Get started with writing your own python scripts to automate system tasks.

Python for System Admins / Operators

Installing Python

Most Unix/Linux systems come with python pre-installed:

$ python -V
@davols
davols / Apparmor bug
Last active May 28, 2019 18:11
AppArmor bug
sudo apt-get install apparmor
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
apparmor-docs apparmor-utils
The following NEW packages will be installed:
apparmor
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/319 kB of archives.
@Konstantinusz
Konstantinusz / 1f.rb
Last active January 19, 2025 23:28
1fichier.com premium download script
#!/usr/bin/ruby
#http://premium-leechers.blogspot.com
require "cgi"
require "clipboard"
if ARGV.size != 3 then
STDERR.puts "premium-leechers.blogspot.com"
STDERR.puts "1fichier premium downloader script."
STDERR.puts "Usage: ruby 1f <email> <password> <txt file with links|1fichier link|'clipboard'>"
exit
@atomotic
atomotic / Readme.md
Last active September 9, 2022 09:39
Internet Archive Save Page Now
@stevemar
stevemar / git.md
Last active January 23, 2024 19:11
git cheatsheet

GitHub Enterprise

Clone all GHE repos

This is limited to cloning 100 repos at a time, the second command gets page 2

TOKEN=foo
ORG_NAME=developer-journey
COMPANY=IBM
@varver
varver / cookie_jar_golang.go
Last active June 7, 2022 13:04
Login to a website with this golang code using persistent cookies or cookie jar .
@mildred
mildred / download.sh
Created October 20, 2014 10:03
Download from archive.org Wayback Machine
#!/bin/bash
url=http://redefininggod.com
webarchive=https://web.archive.org
wget="wget -e robots=off -nv"
tab="$(printf '\t')"
additional_url=url.list
# Construct listing.txt from url.list
# The list of archived pages, including some wildcard url
@Schnouki
Schnouki / popcorntime-vpn.sh
Last active November 12, 2024 00:33
OpenVPN for a single application using network namespaces -- helper scripts
#!/usr/bin/env zsh
# Initialize VPN
sudo vpnns up
sudo vpnns start_vpn
# Popcorn time!
sudo ip netns exec frootvpn sudo -u $USER popcorntime
# Cleanup
@Asbra
Asbra / 4chan.py
Created December 13, 2014 17:29
4chan downloader
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author: johan
# @date: 2014-12-12
# @modified_by: johan
# @modified_at: 2014-12-12
import re # Regular expressions
import requests # To make HTTP requests
import json # To parse 4chan's JSON