Skip to content

Instantly share code, notes, and snippets.

@jinglemansweep
jinglemansweep / helper.sh
Created October 29, 2015 11:05
GPG Script
#!/bin/bash
subkey_id="abc123"
gpg -a --export-secret-subkeys ${subkey_id}! > /tmp/subkey.gpg
gpg --homedir /tmp/gpg --import /tmp/subkey.gpg
gpg --homedir /tmp/gpg --edit-key <user-id>
# enter "passwd", change password, enter "save"
### Keybase proof
I hereby claim:
* I am jinglemansweep on github.
* I am jinglemansweep (https://keybase.io/jinglemansweep) on keybase.
* I have a public key whose fingerprint is EA04 C61D 2C44 25ED BD57 1C6F F964 7639 135C 99EE
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jinglemansweep on github.
  • I am jinglemansweep (https://keybase.io/jinglemansweep) on keybase.
  • I have a public key whose fingerprint is EA04 C61D 2C44 25ED BD57 1C6F F964 7639 135C 99EE

To claim this, I am signing this object:

version: "2"
services:
openhab:
image: "tdeckers/openhab"
restart: "always"
devices:
- "/dev/ttyUSB0"
ports:
- "5001:8080"
@jinglemansweep
jinglemansweep / pet-snippet.toml
Last active March 16, 2017 12:09
description
[[snippets]]
description = "List all files"
command = "ls -al"
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 console=tty0 page_poison=1"
init:
- linuxkit/init:42fe8cb1508b3afed39eb89821906e3cc7a70551
- linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
- linuxkit/containerd:60e2486a74c665ba4df57e561729aec20758daed
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
onboot:
- name: sysctl
{
"always_move": true,
"always_rename": true,
"batch": false,
"filename_with_episode": "S%(seasonno)02dE%(episode)02s - %(episodename)s%(ext)s",
"move_files_confirmation": false,
"move_files_destination": "/mnt/media/tvseries/%(seriesname)s/Series %(seasonnumber)02d/",
"move_files_enable": true,
"recursive": true,
"replace_invalid_characters_with": "_",
{
test: /\.scss/,
use: [
'style-loader',
'css-loader',
'sass-loader',
{
loader: 'postcss-loader',
options: {
plugins: function() {
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: {
app: './src/app/index.js'
},
plugins: [
new webpack.DefinePlugin({
ENV: JSON.stringify(process.env.NODE_ENV === 'production' ? 'production' : 'development')
const path = require('path');
const webpack = require('webpack');
const Merge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');
module.exports = Merge(CommonConfig, {
plugins: [
new webpack.HotModuleReplacementPlugin({
multiStep: false // https://github.com/jantimon/html-webpack-plugin/issues/533