Skip to content

Instantly share code, notes, and snippets.

Trapier Marshall trapier

Block or report user

Report or block trapier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import os
import re
import subprocess
import tempfile
import time
import urllib.request
from pathlib import Path
TW_URL = ''
View gist:b5c7e8ea1695e697b921a11721cb7eed
diff --git a/components/engine/vendor/ b/components/engine/vendor/
index 914c6cdf64..8e73809cff 100644
--- a/components/engine/vendor/
+++ b/components/engine/vendor/
@@ -64,10 +64,16 @@ func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo
// empty parent and --internal are handled the same. Set here to update k/v
config.Internal = true
- err = d.createNetwork(config)
trapier /
Last active Jan 30, 2019
Mark the most-recently-focused i3 window with _last
#!/usr/bin/env python3
# Mark the most-recently-focused i3 window with _last
# Add this to your i3 config:
# exec_always --no-startup-id /path/to/script
# bindsym <your binding here> [con_mark=_last] focus
# Inspired by:
# -
trapier / gist:0cb6d2471d9254a8cdb66e29677c57ab
Created Aug 7, 2017
autokey-gtk script to copy case and account number out of salesforce classic case view in vimium into markdown format
View gist:0cb6d2471d9254a8cdb66e29677c57ab
import time
def keyboard_type(keys):
for key in keys:
def copy_next_field():
trapier / halp_cant_see_sfdc_stuff.css
Last active Jun 29, 2017 — forked from squizzi/halp_cant_see_sfdc_stuff.css
halp can't see sfdc 'cause the fonts just are so small
View halp_cant_see_sfdc_stuff.css
/*Fix Pukey Colors on Case Tabs*/
.caseTab .tertiaryPalette,
.individualPalette .caseBlock .tertiaryPalette,
.layoutEdit .individualPalette .caseBlock .tertiaryPalette {
background-color: #36a0fe;
border-color: #015ba7;
.caseTab .primaryPalette,
.individualPalette .caseBlock .primaryPalette {

Keybase proof

I hereby claim:

  • I am trapier on github.
  • I am trapier ( on keybase.
  • I have a public key ASC7Tj_NIylOeBJxSuucwWtck2s2bIJzgUfkIZJvH91U3wo

To claim this, I am signing this object:

trapier / virt-migrate
Created Nov 16, 2015
rsync based virsh migrate. minimal downtime and and avoids image bloating due to non-sparse copying.
View virt-migrate
rsync -vS --progress $vm_path root@$TARGET:$vm_path && \
virsh migrate --live --suspend --persistent --undefinesource --verbose $VM qemu+ssh://$TARGET/system && \
rsync -vS --progress $vm_image root@$TARGET:$vm_path && \
trapier /
Last active Apr 15, 2016
extract xzipped initramfs from uboot new FIT image format (itb)
declare -A word
map_word () {
trapier / fetch_grub.yml
Created Sep 15, 2015
fetch grub config from ly8 switches in ansible inventory
View fetch_grub.yml
- hosts: swdut
platform_search: ly8
- name: fetch grub config
fetch: src=/etc/default/grub dest=.
when: ansible_product_name | search(".*ly8.*") or
ansible_cmdline.cl_platform | default(omit) | search(".*ly8.*")
trapier / kernel-source-build-recipe.bash
Created Aug 17, 2015
bash script to build CumulusLinux 1.5.2 kernel
View kernel-source-build-recipe.bash
# prepare extraction directory, get and extract debian sources
mkdir cumulus
cd cumulus
tar xvf CumulusLinux-1.5.2.tar.gz
# examine installation instructions
cat patches/README
You can’t perform that action at this time.