This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| made by Sharky - https://sharky.pw/ | |
| """ | |
| import os, re, shutil | |
| from requests import get | |
| r = get('http://api.steampowered.com/ISteamApps/GetAppList/v2') | |
| apps = r.json()['applist']['apps'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash -e | |
| cat /var/lib/misc/dnsmasq.leases | awk '{split($0,a," "); if (a[4] != "*") { print a[3],"\t",a[4]}}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install -y pbzip2 pigz pixz | |
| for f in gzip gunzip gzcat; do | |
| ln -sv "`which pigz`" "/usr/local/bin/$f" | |
| done | |
| for f in bzip2 bunzip bzcat; do | |
| ln -sv "`which pbzip2`" "/usr/local/bin/$f" | |
| done | |
| for f in xz xzcat; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| DRIVES=`ls -l /dev/disk/by-id/ata* | grep -v part | cut -d ' ' -f 10` | |
| for d in $DRIVES; do | |
| NAME=`echo $d | cut -d '/' -f 5` | |
| echo $NAME | |
| smartctl --xall $d > $NAME.txt | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash -e | |
| # | |
| ## LVM backup script by Hendrik 'Sharky' Schumann | |
| # | |
| GROUP="vg0" | |
| VOLUMES="lxc-xana lxc-githost" | |
| BACKDIR="/mnt/autoback" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash -e | |
| apt update && apt install pigz pixz pbzip2 | |
| cd /usr/local/bin | |
| for f in gzip gunzip gzcat; do | |
| ln -sv "`which pigz`" "$f" | |
| done | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required (VERSION 2.8.11) | |
| project (dumb) | |
| LIST(APPEND SourceFiles | |
| src/core/atexit.c | |
| src/core/duhlen.c | |
| src/core/duhtag.c | |
| src/core/dumbfile.c | |
| src/core/loadduh.c | |
| src/core/makeduh.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required (VERSION 3.0) | |
| project (ufmod) | |
| add_custom_command(OUTPUT ufmod.o | |
| COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && nasm -O4 -t -fwin32 -df48000 -dSTRONG -dUNICODE -dNORMAL -dOBJ -I ${CMAKE_CURRENT_SOURCE_DIR}/ufmod -dWINMM -o ${CMAKE_CURRENT_BINARY_DIR}/ufmod.o nasm.asm | |
| ) | |
| add_library(ufmod STATIC ufmod.o) | |
| SET_SOURCE_FILES_PROPERTIES( | |
| ufmod.o | |
| PROPERTIES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env python3 | |
| """ | |
| Print IP's of LXC containers in a hostfile compatible way. | |
| by Hendrik 'Sharky' Schumann - https://schumann.pw/ | |
| """ | |
| import os, sys | |
| LXC_PATH = r'/var/lib/lxc/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Python script to export all quassel (sqlite) database buffers to a human-readable username_network_buffer.txt | |
| """ | |
| import sqlite3 | |
| from datetime import datetime | |
| db = sqlite3.connect("quassel-storage.sqlite") |