Skip to content

Instantly share code, notes, and snippets.

View 537's full-sized avatar
🎯
Focusing

537

🎯
Focusing
View GitHub Profile
@danielecook
danielecook / swot.py
Created February 1, 2018 11:14
Generate swot (domain --> school/university)
import os
import shutil
import pickle
from subprocess import Popen, PIPE
from collections import defaultdict
out, err = Popen(['git','clone','https://github.com/leereilly/swot'],
stdout=PIPE,
stderr=PIPE).communicate()
school_directory = defaultdict()
@KittyKatt
KittyKatt / pomf
Last active March 24, 2018 14:49
pomf.se BASH script to upload images
#!/usr/bin/env bash
# pomf.se uploader
# requires: curl
dest_url='http://pomf.se/upload.php'
return_url='http://a.pomf.se'
if [[ -n "${1}" ]]; then
file="${1}"
if [ -f "${file}" ]; then
@shizmob
shizmob / pomfload
Last active July 5, 2018 14:08
simple pomf uploader
#!/bin/sh
downpomf="https://a.pomf.cat/"
uppomf="https://pomf.cat/upload.php"
if test $# -lt 1 ; then
echo "Usage: `basename $0` FILE [FILE...]"
exit 1
fi
set=
@flying-press
flying-press / Undocumented-Documentation.md
Last active May 18, 2019 22:28
Incomplete documentation of Tumblr's blocks and variables based on the personal experimentation of bychloethemes on Tumblr. Original link here: https://bychloethemes.tumblr.com/undocs . Will update whenever or ifever bychloethemes updates the documentation.

Undocumented Documentation

This is a list of tumblr blocks and variables that are un-documented. Most were found in the new Optica default theme. You can find the official tumblr documentation here.

This is by no means comprehensive and is only from my personal experimentation. I take no responsibility for anything.

All that being said, this has taken me quite a few hours to put together. If you would like to donate to my paypal as a show of appreciation, it would be greatly appreciated. You can find my paypal here.

Examples are primarily taken from tumblr's Optica theme.

from github import Github # pip install github
# Github API Token
ACCESS_TOKEN= ''
# Github Users stars you want to hoard
githubUser = 'stankye'
# File name you want to save as
fileName = 'myStars.txt'
@dusk0r
dusk0r / gist:3d5b46b3ed43aae88b2d
Last active September 3, 2020 16:55
Changing Background Images using jQuery
<html>
<head>
<style type="text/css">
.bgimage {
position: fixed;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-color: black;
width: 100%;
As noted by @murdats below, there are more URLs than just these 1440 ones, depending on the argument values
that are hashed (as the filenames below are MD5 hashes of a few arguments: red/blue pill color, HHMM time, etc.)
You can read details about the algorithm used to generate these URLs here:
https://news.ycombinator.com/item?id=28448335
---
00:00 https://thechoiceisyours.whatisthematrix.com/generated/v7/high/d43725991d28ffcab04aa716762cf6af.mp4
@gmolveau
gmolveau / twitter_reset.md
Last active January 23, 2023 14:49
Twitter reset scripts

Twitter Reset

Ces scripts permettent de vider le flux d'activité d'un compte twitter : RT, likes, tweets.

Those scripts will flush your twitter activity feed : likes, RT, tweets...

Ces scripts ne fonctionnent que pour twitter en langue anglaise. (https://twitter.com/settings/language)

Those scripts only work for twitter in english.

Well, I suppose its `safe' to release this, it seems everyone and their dog has
it and apparantly (and to my surprise) it still works.
The `smurf' attack is quite simple. It has a list of broadcast addresses which
it stores into an array, and sends a spoofed icmp echo request to each of those
addresses in series and starts again. The result is a devistating attack upon
the spoofed ip with, depending on the amount of broadcast addresses used,
many, many computers responding to the echo request.
Before I continue may I first say that this code was a mistake. When it was
@alisdair
alisdair / kill-sticky.js
Created May 29, 2013 13:43
Kill sticky headers.
(function () {
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (getComputedStyle(elements[i]).position === 'fixed') {
elements[i].parentNode.removeChild(elements[i]);
}
}
})();