Skip to content

Instantly share code, notes, and snippets.

@Yawning
Yawning / orhttp_example.go
Created April 29, 2015 14:41
How to dispatch HTTP requests via Tor in Go.
// To the extent possible under law, the Yawning Angel has waived all copyright
// and related or neighboring rights to orhttp_example, using the creative
// commons "cc0" public domain dedication. See LICENSE or
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
package main
import (
// Things needed by the actual interface.
"golang.org/x/net/proxy"
@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active February 14, 2025 07:04
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@amiuhle
amiuhle / tw-simulator.js
Last active January 14, 2024 09:40
Tribal Wars building duration calculation
/*
* Installation: Save as snippet in Chrome DevTools. (Crtl + Shift + i, Tab 'Sources', Sub-Tab 'Snippets', right-click, 'New')
*
* Usage:
* 1) Go to http://<your-world>.die-staemme.de/interface.php?func=get_building_info
* 2) Adjust the 'currentMain' and 'jobs' to match your main building at start and the build jobs you want to simulate.
* 3) Run snippet.
*/
(function() {
'use strict';
; +-------------------------------------------+
; | Program ...... FASMCam |
; | Author ....... Marcus Araujo |
; | Description .. this application shows how |
; | to access webcam via FASM. |
; +-------------------------------------------+
format PE GUI 4.0
entry codestart
@netj
netj / memusg
Last active May 23, 2025 07:37
memusg -- Measure memory usage of processes
#!/usr/bin/env bash
# memusg -- Measure memory usage of processes
# Usage: memusg COMMAND [ARGS]...
#
# Author: Jaeho Shin <[email protected]>
# Created: 2010-08-16
############################################################################
# Copyright 2010 Jaeho Shin. #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #