Skip to content

Instantly share code, notes, and snippets.

from socket import *
import time
import os,sys
cport=40002
red=bytes('\xFF\x00\x00')
blue=bytes('\x00\xFF\x00')
green=bytes('\x00\x00\xFF')
black=bytes('\x00\x00\x00')

Liposomal Vitamin-C

Tools

  • Scale
  • Blender
  • Ultrasound cleaning device
  • Spoon (wooden|plastic|glas)
  • Mason jar for storage
@yrps
yrps / gs.sh
Last active November 13, 2017 17:46
Overlay image and text on a PDF with imagemagick and ghostscript
#!/bin/sh
set -eu
srcfile1="$1"
srcfile2="out.pdf"
out="${srcfile1%\.*}-signed.${srcfile1##*\.}"
gs -dBATCH -dNOPAUSE -dQUIET -sDEVICE=pdfwrite \
-dLastPage=1 -sOutputFile="$out" "$srcfile1" "$srcfile2"
@nstarke
nstarke / slowloris.js
Last active December 15, 2017 21:01
Slowloris
var net = require('net');
var tls = require('tls');
var url = require('url');
var util = require('util');
var commander = require('commander');
commander.option('-u, --url [url]', 'Url to hit')
.option('-c, --connections [connections]', 'Connections to use simultaneously', 256, parseInt)
.option('-t, --timings [timings]', 'Which set of timings to use', 'default')
@maebert
maebert / latest_topic.txt
Last active August 29, 2018 04:30
Get notified when somebody posts a new topic in a forum
71750
@monkbroc
monkbroc / usb_to_uart.ino
Last active September 21, 2018 17:32
Particle Photon USB to UART passthrough
/* Pass through all data from USB serial to UART serial (TX/RX pins)
*/
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(MANUAL);
void setup() {
Serial1.begin(9600);
Serial.begin();
}
@ameliemaia
ameliemaia / three-examples-converter.js
Last active November 26, 2018 03:32
Convert threejs examples js to es6 - slightly hacky but works
var fs = require('fs');
require('shelljs/global');
const EXAMPLES_DIR = './node_modules/three/examples/js'
const DEST_DIR = './src/js/lib/three/examples'
mkdir('-p', DEST_DIR);
const files = [
`${EXAMPLES_DIR}/loaders/GLTFLoader.js`,
@jgamblin
jgamblin / MS17010.sh
Created May 15, 2017 14:12
A simple script to check your network for MS17-010 vulnerability using NMAP.
#!/bin/bash
ip=$1
cd ~/Desktop
mkdir MS17010
cd MS17010
wget https://raw.githubusercontent.com/cldrn/nmap-nse-scripts/master/scripts/smb-vuln-ms17-010.nse
nmap -oN MS17010.txt -p 445 --script "smb-vuln-ms17-010.nse" $ip
@armudgal
armudgal / bountyscan_setup.sh
Last active August 28, 2019 03:36 — forked from random-robbie/bountyscan_setup.sh
Updating the Script [Included Golang and gobuster]
#!/bin/bash
arg DEBIAN_FRONTEND=noninteractive;
echo "[*] Starting Install... [*]"
echo "[*] Upgrade installed packages to latest [*]"
echo -e "\nRunning a package upgrade...\n"
apt-get -qq update && apt-get -qq dist-upgrade -y
apt full-upgrade -y
apt-get autoclean
echo "[*] Install stuff I use all the time [*]"
@towynlin
towynlin / set-pebble-time.py
Created July 5, 2019 07:29
I just wanted to set the time on my pebble, but there's no more app on the play store. So, after some fun searching, reading, learning, trial, and error...
import sys
import time
from libpebble2.communication import PebbleConnection
from libpebble2.communication.transports.serial import SerialTransport
from libpebble2.protocol.base import PebblePacket
from libpebble2.protocol.base.types import *
from libpebble2.protocol.system import *
pebble = PebbleConnection(SerialTransport(sys.argv[1])) # argument like /dev/cu.Pebble...
pebble.connect()