Skip to content

Instantly share code, notes, and snippets.

@iGlitch
iGlitch / wifi.py
Created October 18, 2017 14:38
Code for testing krackattack
#!/usr/bin/env python2
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import sys, socket, struct, time, subprocess, atexit, select
from datetime import datetime
IEEE_TLV_TYPE_RSN = 48
IEEE_TLV_TYPE_FT = 55
@ageis
ageis / YubiKey-GPG-SSH-guide.md
Last active July 5, 2024 09:20
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate). I've published a Bash function which automates this slightly special key generation process.

@vadviktor
vadviktor / nginx.conf
Created May 17, 2016 15:34
Nginx config for folder based static documentation reading, using a private domain resolved by local dns proxy (dnsmasq).
server {
listen 80 default_server;
server_name ~^(?<docroot>.+).lodocs$;
root /var/www/html/$docroot;
autoindex on;
index index.html index.htm;
@pedrohdz
pedrohdz / PythonistaFileServer.py
Created January 17, 2016 11:54
Pythonista File Server
#! /usr/bin/env python
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from and to Pythonista via
# local Wifi. It starts a basic HTTP server that you can access as a web page
# from your browser. When you upload a file that already exists, it is renamed
# automatically. From Pythonista's settings, you can add this script to the
# actions menu of the editor for quick access.
#
# Get Pythonista for iOS here:
@wilfreddekok
wilfreddekok / keybase.md
Created December 4, 2015 21:32
keybase.io/wilfred

Keybase proof

I hereby claim:

  • I am wilfreddekok on github.
  • I am wilfred (https://keybase.io/wilfred) on keybase.
  • I have a public key whose fingerprint is 3B3E 2BEC 3CB2 EE2A DD88 DC6C 66AB 61DB 0A7C D172

To claim this, I am signing this object:

@zamboOlino
zamboOlino / autoHijackSpotify.scpt
Last active November 9, 2018 17:15
Now you can get the ALBUM ARTWORK -- set track_artwork_path to update_artwork(track_album, track_artwork, folder_path)
set output_folder to (choose folder with prompt "Please choose an output directory")
set folder_path to POSIX path of output_folder
property file_extension : ".mp3"
-- property file_extension : ".m4a" (* If format is changed to AAC *)
property check_delay : 0.1 (* How often to check for a new track *)
property write_delay : 2 (* How long to wait before updating file name *)
property stop_delay : 1 (* How long to wait before updating final file after playback stops *)
@umidjons
umidjons / web-service-soap-client-server-php.md
Last active July 25, 2024 07:45
Simple Web service - SOAP Server/Client in PHP

Simple Web service - SOAP Server/Client in PHP

Implementation of the SOAP server - server.php:

<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");

// model, which uses in web service functions as parameter
@sorbits
sorbits / every
Last active July 4, 2024 03:28
Run «command» only every «number» time invoked
#!/usr/bin/env bash
progname=$(basename $0)
version="1.0 (2014-08-17)"
step=2
function create_hash {
openssl dgst -sha1 -binary <<< "$1" | xxd -p
}
@duggi
duggi / Spot the Hijack
Last active February 15, 2018 14:56 — forked from tiffanygwilson/Spot the Hijack
Spot the Hijack
(* Script to record and tag spotify tracks, by Lloyd Moore *)
(* Modified by Tiffany G. Wilson to resolve audio splitting issues, automate starting/stopping, and add recording customization *)
(* Modified by github.com/duggi on 7/18/2014 -- replace slash with dashin new filename to prevent directory write errors *)
(* Snippets for controlling Spotify are from Johnny B on tumblr (http://johnnyb.tumblr.com/post/25716608379/spotify-offline-playlist) *)
(* The idea of using delayed tagging/filename updating is from a guest user on pastebin (http://pastebin.com/rHqY0qg9) *)
(* The only thing to change in the script is the output format; you must change the file extension and the recording format to match *)
(* Run this script once a song you want to record is queued (stopped at beginning) or playing *)
(* Running the script will initiate hijacking, recording and audio playback *)
(* To stop script, pause Spotify or wait for album/playlist to end*)
(* To set id3 tags, use application Kid3 (http://sourceforge.net/pr