Simple and safe random getters to copy-paste
string randomBytes( int $length )
int randomInt ( int $min , int $max )
string randomUuid ( void )
# Run | |
# wget https://gist.githubusercontent.com/dargmuesli/645a4d51ab1806ebfb3329fb05637318/raw -O hetzner-start.sh && chmod +x hetzner-start.sh && ./hetzner-start.sh | |
sudo apt-get update \ | |
&& sudo apt-get -y dist-upgrade \ | |
&& sudo apt-get -y install git vim | |
passwd | |
echo "username: " | |
read username | |
useradd -U -G users,sudo -m -s /bin/bash "$username" |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# <bitbar.title>Weather</bitbar.title> | |
# <bitbar.version>v3.5.0</bitbar.version> | |
# <bitbar.author>Daniel Seripap</bitbar.author> | |
# <bitbar.author.github>seripap</bitbar.author.github> | |
# <bitbar.desc>Detailed weather plugin powered by DarkSky with auto location lookup. Supports metric and imperial units. Needs API key from https://darksky.net/dev/.</bitbar.desc> | |
# <bitbar.image>https://cloud.githubusercontent.com/assets/683200/16276583/ff267f36-387c-11e6-9fd0-fc57b459e967.png</bitbar.image> | |
# <bitbar.dependencies>python</bitbar.dependencies> |
#!/bin/bash | |
#title: kali-linux-region-BO-wifi-txpower-unlocker.sh | |
#description: Unlocks the wifi txpower of the 2.4Ghz band of the BO region | |
#author: Hiruna Wijesinghe https://github.com/hiruna/wifi-txpower-unlocker/ | |
#date: 13/05/2017 | |
# |\ /|\__ __/( ____ \\__ __/ ( ____ )( ___ )|\ /|( ____ \( ____ ) \__ __/|\ /| | |
# | ) ( | ) ( | ( \/ ) ( | ( )|| ( ) || ) ( || ( \/| ( )| ) ( ( \ / ) | |
# | | _ | | | | | (__ | | | (____)|| | | || | _ | || (__ | (____)| | | \ (_) / |
# Sample Nginx config with sane caching settings for modern web development | |
# | |
# Motivation: | |
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
# and juicy version of your assets available. | |
# At some point, however, you want to show your work to testers, your boss or your client. | |
# After you implemented and deployed their feedback, they reload the testing page – and report | |
# the exact same issues as before! What happened? Of course, they did not have developer tools | |
# open, and of course, they did not empty their caches before navigating to your site. |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Author: Ficapy | |
# Create: '15/10/27' | |
from pyquery import PyQuery as pq | |
from operator import attrgetter | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
from operator import methodcaller | |
import requests |
#!/usr/bin/env python | |
# -*- encoding: UTF8 -*- | |
""" Store all entered bash commands ('the history') in a database | |
http://blog.philippklaus.de/2015/04/enhancing-and-enlarging-the-bash-history/ | |
""" | |
import sqlite3 | |
from os import path, makedirs | |
import sys |
{ | |
"name": "Detect if an extension installed", | |
"description": "Detect if an extension installed", | |
"version": "0.1", | |
"manifest_version": 2, | |
"permissions": [ | |
"management" | |
], | |
"browser_action": { | |
"default_popup": "popup.html" |