Skip to content

Instantly share code, notes, and snippets.

@synchrone
synchrone / proxmox on schedule.md
Last active September 13, 2021 14:46
Proxmox settings
cat <<EOF > /etc/systemd/system/wol.service
[Unit]
Description=Configure Wake On LAN

[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp2s0 wol g

[Install]
@synchrone
synchrone / index.ts
Last active July 11, 2019 12:32
TypeDI Inject conflict repro
import 'reflect-metadata'
import {Container, Inject, Service} from "typedi";
@Service()
export class Bla {}
const testconfig = {}
type ConfigType = typeof testconfig
@Service()
#!/usr/bin/env bash
set -eu
[ -z "$4" ] && echo "Usage: $0 <gc-project> <zone-name> <domain-name> <value>" && exit 1
TYPE=A
PROJECT=$1
ZONE=$2
TARGET=$3
IP=$4
@synchrone
synchrone / burgerbot.rb
Last active May 25, 2023 00:58 — forked from daxadax/burgerbot.rb
burgerbot
#!/usr/bin/env ruby
# encoding: utf-8
require 'watir-webdriver' #requires v 0.9.1
require 'uri'
require 'cgi'
def log (message) puts " #{message}" end
def success (message) puts "+ #{message}" end
def fail (message) puts "- #{message}" end
@synchrone
synchrone / ocshot.sh
Last active September 4, 2018 09:42
turns owncloud into gyazo
#!/bin/bash
#############################################
# sudo apt-get install scrot curl libxml2-utils
#############################################
. ~/.ocshotrc
SCREENSHOT_URL=$BASEURL/remote.php/webdav/$SCREENSHOT_DIR
if [ "$1" == '' ]; then
notify-send -u normal -i info --expire-time 1000 "ownCloud Screenshot" "Select the area now"
TMPPATH=/tmp/wdsshot.png
@synchrone
synchrone / dyndns53.py
Last active August 29, 2015 14:07
Use Route53 as your dyndns
#!/usr/bin/env python
from area53 import route53
from boto.route53.exception import DNSServerError
import requests
import sys
from datetime import datetime
# Modified from https://markcaudill.me/blog/2012/07/dynamic-route53-dns-updating-with-python/
domain = 'my.domain'
@synchrone
synchrone / .gitignore
Last active May 25, 2017 10:42
A transmission-daemon utility to wrap all http trackers in using https wraper service
vendor
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Mnemonic encoding wordlist</TITLE>
</HEAD>
<BODY>
<H1>About the wordlist</H1>
The most time-consuming part in this project has been the compilation of the
@synchrone
synchrone / vk.js
Created July 6, 2014 15:12
Kill the wall
// Use with http://vk.com/dev/execute
var owner = ; //your id or public id * -1
var items = API.wall.get({owner_id: owner, count: 100}).items;
var c = 0;
while(c < items.length){
API.wall.delete({owner_id: owner, post_id: items[c].id});
c = c + 1;
}
return items.length;

Keybase proof

I hereby claim:

  • I am synchrone on github.
  • I am synchrone (https://keybase.io/synchrone) on keybase.
  • I have a public key whose fingerprint is 67C2 9A55 5411 FC93 8D07 FF7E 9FB1 575A CF58 CE59

To claim this, I am signing this object: