Skip to content

Instantly share code, notes, and snippets.

@MIvanchev
MIvanchev / article.md
Last active April 4, 2023 13:39
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@AdrianKoshka
AdrianKoshka / make_ipxe_uefi_usb.md
Last active March 31, 2024 23:36
Making a UEFI bootable iPXE USB drive

Making a UEFI bootable iPXE USB drive

Build the UEFI executable for iPXE

# First we'll clone iPXE
$ git clone git://git.ipxe.org/ipxe.git
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active February 25, 2024 13:47
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@saljam
saljam / init.go
Last active January 22, 2017 20:36
Camlistore-booting Init in Go.
// +build linux
package main
import (
"log"
"time"
"syscall"
"errors"
"os"
"os/exec"
@surjikal
surjikal / prediction-io-ubuntu-precise.md
Last active March 24, 2017 11:33
Prediction IO Install Notes on Ubuntu Precise (12.04)
@barrucadu
barrucadu / xkcd.c
Last active December 15, 2015 16:19
HackSoc's attempt on the XKCD challenge
/* This needs the Skein functions from the NIST distribution. You can
* get the zip file from http://www.schneier.com/skein.html ("Source
* code and test vectors for Skein and Threefish (12 MB)"), and then
* you need to stick the contents of NIST/CD/Reference_Implementation
* in the same directory as this file.
*
* Compile with clang -std=c99 *.c -lcurl -lpthread -O3 -o xkcd-skein
*/
#include <time.h>
import sys
import HTMLParser
import re
htmlparser = HTMLParser.HTMLParser()
numwords = 2
def main(filename):
with open(str(filename)) as infile:
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@nictuku
nictuku / sshd.go
Created April 8, 2012 15:43
Go SSH server complete example
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"