Skip to content

Instantly share code, notes, and snippets.

View deltabravozulu's full-sized avatar
👌
dank memes

deltabravozulu deltabravozulu

👌
dank memes
View GitHub Profile
@deltabravozulu
deltabravozulu / howto_deb_repackage.txt
Last active January 10, 2023 08:56 — forked from axeliodiaz/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage debian package:
1: Make dirs
# mkdir extract/DEBIAN build -p
2: Extract deb package
# dpkg-deb -x <package.deb> extract/
3: Extract control-information from a package
# dpkg-deb -e <package.deb> extract/DEBIAN
if [ ! -w /var/www/html/admin/scripts/pi-hole/php/header.php ]; then
echo ROOT OR GTFO
fi
cd /var/www/html/admin || exit 1
cat <<'EOF' > pihole.uptime.patch
diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php
--- a/scripts/pi-hole/php/header.php
+++ b/scripts/pi-hole/php/header.php
@notalentgeek
notalentgeek / file_type_sorter.py
Last active March 4, 2024 13:47
My Python script to sort file based on its MIME type into separate folders.
# This is a Python script that let you arrange
# files into a folder for each extension. Actually
# I lied, this script is not about file extension
# but about a file's mime type. So, in case there
# are files that has no extension this script can
# predict what the file's extension could be.
# However, the only requirement is that file need
# to be able to be read by the computer's OS. For
# example image files usually has no problem with
# this script also with other media files. But,
@xvitaly
xvitaly / remove_crw.cmd
Last active March 16, 2024 16:12
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
#! /bin/bash
# Description: show dependency tree
# Author: damphat
if [ $# -lt 1 ]; then
echo 'Usage: apt-rdepends-tree [-r] <package>'
echo 'Required packages: apt-rdepends'
exit 1
fi
@sqordfish
sqordfish / organize.py
Created June 23, 2014 02:54
Python script for organizing files in windows into multiple folders by file type. I made this primarily to organize my downloads folder.
#Author: Jacob Rust
#Date: 7/8/2013
#Description:This script organizes downloaded files into separate folders depending
#on the file type. This was made for windows systems.
#Download directory should be the first command line argument
#New file types can be added to the dictionary in the main method
import os
import sys
import hashlib
@rtt
rtt / tinder-api-documentation.md
Last active May 5, 2024 15:28
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@TomByrne
TomByrne / MultiExporter.jsx
Last active May 5, 2024 21:54
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
@timcharper
timcharper / autoscroll.html
Created November 12, 2012 21:41
autoscroll embedded javascript with some test text
<html>
<body>
<script type="text/javascript">
javascript:/*The Autoscroll Bookmarket:Tim Harper:http://tim.theenchanter.com*/
var _ss_interval_pointer;
_ss_speed = 1;
_ss_speed_pairs = [[0, 0], [1, 200.0], [1, 120.0], [1, 72.0], [1, 43.2], [1, 25.9], [2, 31.0], [4, 37.2], [8, 44.8], [8, 26.4], [16, 32.0]];
_ss_last_onkeypress = document.onkeypress;
_ss_stop = function() {
clearTimeout(_ss_interval_pointer)