[Unit]
Description=FRP Server Daemon
[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
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
######################################################## | |
## CROSS COMPILING TRANSMISSION 2.82 FOR WD MY CLOUD ## | |
######################################################## | |
This is a guide to compile transmission 2.82 for the WD MyCloud 2/3/4 TB. | |
Because I didn't want to install the build tools and dependencies on my NAS I chose to | |
setup a cross-compiler toolchain on my x86_64 Ubuntu 12.04 machine and create a .deb package | |
that can be installed on the NAS. Furthermore the cross compiler can be used to compile anything for the My Cloud (printer drivers, etc.) |
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
subroutine readin | |
! | |
use param, only: mnmol, mnat, mnsurf, mngauss, mntmod, mntor, & | |
mnfrag, mnmol, mntraj, mnfrag, mnoutcome, & | |
mnbond, pi, amutoau, autoatm, autofs, autoev, kb, & | |
autoang | |
use c_output, only: idebug, minprinticon, minprinttrapz, maxprint, & | |
lwrite, nprint | |
use c_dd, only: lreadin | |
use c_struct, only: cell, nvibmods, bdfmthr, rijco, nattype, xx0, & |
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
[Unit] | |
Description=Shadowsocks-Libev Server Service With Standalone Simple Obfusacting Service | |
After=network.target | |
BindsTo=simple-obfs-server@%i.service | |
After=simple-obfs-server@%i.service | |
[Service] | |
Type=simple | |
User=nobody | |
CapabilityBoundingSet=CAP_NET_BIND_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
var stringify = function(obj, prop) { | |
var placeholder = '____PLACEHOLDER____'; | |
var fns = []; | |
var json = JSON.stringify(obj, function(key, value) { | |
if (typeof value === 'function') { | |
fns.push(value); | |
return placeholder; | |
} | |
return value; | |
}, 2); |
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
notifications: | |
email: false | |
services: | |
- postgresql | |
- docker | |
addons: | |
postgresql: "9.4" | |
language: go | |
go_import_path: "miniflux.app" | |
go: |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
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
const {spawnSync} = require("child_process"); | |
const path = require("path"); | |
const gitLog = function(cwd, obj, magicKey) { | |
magicKey = "^^" || magicKey; | |
cwd = cwd || "."; | |
const args = ["log"]; | |
let logFormat = { | |
commit: "%H", |
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
// ==UserScript== | |
// @name OwO, whats this :D | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author Christopher König | |
// @include * | |
// @connect api.awau.moe | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue |
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 | |
BITLOCKER_PARTITION="${1}" | |
BITLOCKER_PASSWORD="${2}" | |
function usage() { | |
echo "$(basename ${0}) <partition> <password>" | |
echo "Unlocks and mounts a bitlocker partition as read-only" | |
echo "Get by lsblk -f" | |
} |
OlderNewer