Skip to content

Instantly share code, notes, and snippets.

@alo9507
alo9507 / deploy.js.yml
Created April 30, 2021 16:57
Use GitHub Actions and Kubeconfig to deploy to Kubernetes
name: Deploy to Kubernetes
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
deploy:
@fqxp
fqxp / lastpass2pass
Last active August 11, 2017 14:20
Export LastPass passwords to pass (https://www.passwordstore.org/)
#!/usr/bin/env python3
#
# Prerequisites:
# * Install lpass command (ArchLinux: lastpass-cli package)
# and run `lpass login` once
# * or export passwords from Lastpass in CVS format.
# * Create a file `.lastpass2pass.blacklist` in your $HOME and optionally
# enter group names to be blacklisted, one per line.
#
# Usage:
@kennwhite
kennwhite / Letsencrypt_Debian_CentOS_GCE_AWS_notes.md
Last active March 18, 2016 16:25
Notes from using Letsencrypt with Debian & CentOS/RedHat on GCE and AWS

UPDATE 10-31-2015: I finally got Cent6.x working, skip to bottom.

These are my notes from getting the LetsEncrypt beta client running on Debian and CentOS using Google Compute Engine (GCE) and AWS.

Preface

@phantomwhale
phantomwhale / Command Line
Created March 20, 2014 04:14
Passing command line arguments into Vagrant to configure Ansible Provisioning
# with a space, this doesn't work...
$ ANSIBLE_ARGS='-t elasticsearch' vagrant provision
==> default: Running provisioner: ansible...
ERROR: tag(s) not found in playbook: elasticsearch. possible values: apache,common,elasticsearch,java,passenger,postgresql,ruby
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.
# without the space, it now works...
$ ANSIBLE_ARGS='-telasticsearch' vagrant provision
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@cwarden
cwarden / Misc.pm.patch
Created February 22, 2012 01:04
logitech media server fix for git annex
--- /usr/share/perl5/Slim/Utils/Misc.pm
+++ /usr/share/perl5/Slim/Utils/Misc.pm
@@ -857,7 +857,9 @@
$target = ($target =~ /^\// ? $target : catdir($dirname, $target));
if (-f $target) {
- return 0 if $target !~ $validRE;
+ # ignore the extension for symlinks. allows use of git annex repos
+ # [email protected] - 2012-02-06
+ # return 0 if $target !~ $validRE;