Skip to content

Instantly share code, notes, and snippets.

Avatar

Dmitri Maximovich maximdim

  • Toronto, Canada
View GitHub Profile
@nobodypb
nobodypb / move_syno_pkgs.sh
Created Feb 8, 2017
Script for moving packages on a synology disk station from one volume to another - EXPERIMENTAL!
View move_syno_pkgs.sh
#!/bin/bash
SOURCE=/volume1
DEST=/volume2
APPDIR=\@appstore
ASK=true
while getopts ":y" opt; do
case $opt in
@Yawning
Yawning / orhttp_example.go
Created Apr 29, 2015
How to dispatch HTTP requests via Tor in Go.
View orhttp_example.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"
@ryankennedy
ryankennedy / Audited.java
Created Sep 24, 2013
Example of adding audited REST endpoints to a Dropwizard service.
View Audited.java
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Audited {
}