cat <<EOF > /etc/systemd/system/wol.service
[Unit]
Description=Configure Wake On LAN
[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s enp2s0 wol g
[Install]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.argv.length>1 && import.meta.url.endsWith(process.argv[1]) && Promise.resolve().then(async () => { | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'reflect-metadata' | |
import {Container, Inject, Service} from "typedi"; | |
@Service() | |
export class Bla {} | |
const testconfig = {} | |
type ConfigType = typeof testconfig | |
@Service() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
NewerOlder