Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Werner Buck wernerb

🏠
Working from home
View GitHub Profile
View gist:3d195cfdb640ec66d9029197e3be91b8
UEFI firmware (version UEFI Firmware (DEBUG) built at 20:27:27 on Mar 7 2021)
Board Rev: 0xD03114
RAM < 1GB: 0x00000000 (Size 0x3B400000)
VideoCore: 0x3B400000 (Size 0x04C00000)
Total RAM: 0x200000000
FD:
PhysicalBase: 0x0
VirtualBase: 0x0
Length: 0x1D0000
FD Variables:
View gist:6c824eaa0b96e9e3c5ac18462ad787ac
$ cat ~/.sway.log | grep output.c
2018-11-30 12:42:54 - [sway/sway/config/output.c:114] Adding non-wildcard output config
2018-11-30 12:42:54 - [sway/sway/config/output.c:135] Config stored for output eDP-1 (enabled: -1) (-1x-1@-1.000000Hz position -1,-1 scale 2.000000 transform -1) (bg (null) (null)) (dpms 0)
2018-11-30 12:42:54 - [sway/sway/config/output.c:108] Merging on top of existing output config
2018-11-30 12:42:54 - [sway/sway/config/output.c:135] Config stored for output eDP-1 (enabled: -1) (-1x-1@-1.000000Hz position 5120,1440 scale 2.000000 transform -1) (bg (null) (null)) (dpms 0)
2018-11-30 12:42:54 - [sway/sway/config/output.c:114] Adding non-wildcard output config
2018-11-30 12:42:54 - [sway/sway/config/output.c:135] Config stored for output Lenovo Group Limited LT2252p Wide 6V8ABBP1 (enabled: -1) (-1x-1@-1.000000Hz position 5120,390 scale -1.000000 transform -1) (bg (null) (null)) (dpms 0)
2018-11-30 12:42:54 - [sway/sway/config/output.c:114] Adding non-wildcard output config
2018-11-30 12:42
View gist:6d8350c4dfb646f3f5c8ee3fef7430f4
2016/05/29 20:30:48 [INFO] Packer version: 0.10.1
2016/05/29 20:30:48 Packer Target OS/Arch: linux amd64
2016/05/29 20:30:48 Built with Go Version: go1.6.2
2016/05/29 20:30:48 Detected home directory from env var: /root
2016/05/29 20:30:48 Using internal plugin for googlecompute
2016/05/29 20:30:48 Using internal plugin for virtualbox-ovf
2016/05/29 20:30:48 Using internal plugin for file
2016/05/29 20:30:48 Using internal plugin for null
2016/05/29 20:30:48 Using internal plugin for parallels-iso
2016/05/29 20:30:48 Using internal plugin for qemu
@wernerb
wernerb / wbuck.zsh-theme
Last active Feb 12, 2016
Theme for ZSH based on bureau theme. 2 lines, features time and git status / branch.
View wbuck.zsh-theme
# oh-my-zsh w-buck Bureau Theme
### CUSTOM
_COL="red"
_HR="(" #
_HL=")" #
_LEFT="%{$fg[$_COL]%}$_HR%{$reset_color%}"
_RIGHT="%{$fg[$_COL]%}$_HL%{$reset_color%}"
### NVM
@wernerb
wernerb / gist:6a52e77b0b8974714263
Last active Aug 28, 2015 — forked from evandrix/gist:1076041
Using bcrypt to secure passwords in a Perl application
View gist:6a52e77b0b8974714263
#!/usr/bin/perl
use Crypt::Eksblowfish::Bcrypt;
use Crypt::Random;
$password = 'bigtest';
$encrypted = encrypt_password($password);
print "$password is encrypted as $encrypted\n";
print "Yes the password is $password\n" if check_password($password, $encrypted);
print "No the password is not smalltest\n" if !check_password('smalltest', $encrypted);
View gist:4533078196d284c97588
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
sleep 1
done
@wernerb
wernerb / wbuck.zsh-theme
Created Dec 18, 2014
Theme for oh-my-zsh.
View wbuck.zsh-theme
# oh-my-zsh w-buck Bureau Theme
### CUSTOM
_COL="red"
_HR="(" #
_HL=")" #
_LEFT="%{$fg[$_COL]%}$_HR%{$reset_color%}"
_RIGHT="%{$fg[$_COL]%}$_HL%{$reset_color%}"
### NVM
View desiredstate.yaml
---
clusters:
#Static website running nginx and displaying the
smallweb:
state:
provider: private
instance-template: small-centos-6.5
nodes: 3
dependencies: []
cluster-groups: []
@wernerb
wernerb / genssh.scala
Created Jul 15, 2014
Generate SSH public keypair from SSH RSA/DSA/EC private key in Scala
View genssh.scala
import java.io.{DataOutputStream, ByteArrayOutputStream, StringReader}
import java.security.interfaces.{ECPublicKey, DSAParams, DSAPublicKey, RSAPublicKey}
import java.security._
import java.security.spec.X509EncodedKeySpec
import org.apache.commons.codec.binary.Base64
import org.bouncycastle.openssl.{PEMKeyPair, PEMParser}
object genPubSSHKey {
/**
@wernerb
wernerb / jclouds_posix.sh
Last active Aug 29, 2015
This is a POSIX compatible init script for jclouds
View jclouds_posix.sh
#!/bin/sh
export INSTANCE_NAME="test"
export INSTANCE_HOME="/tmp/test"
export LOG_DIR="$INSTANCE_HOME"
forget () {
mkdir -p "$LOG_DIR"
if test ! -f "$LOG_DIR/pid" ; then
nohup "$INSTANCE_HOME/$INSTANCE_NAME.sh" > "$LOG_DIR/stdout.log" 2> "$LOG_DIR/stderr.log" &
echo $! > "$LOG_DIR/pid"
else