openpgp4fpr:B437D0E4933942C741352022EED46888FC3D2C07
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
<a rel="me" href="https://freeradical.zone/@jacklund">Mastodon</a> |
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
2022/01/17 17:38:40 [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64] [38/5280] | |
2022/01/17 17:38:40 [TRACE] discovering plugins in /usr/bin | |
2022/01/17 17:38:40 [TRACE] discovering plugins in /root/.config/packer/plugins | |
2022/01/17 17:38:40 [TRACE] discovering plugins in . | |
2022/01/17 17:38:40 [DEBUG] Discovered plugin: arm = /home/jack/git/rpi-k8s/build/packer-builder-arm | |
2022/01/17 17:38:40 [INFO] using external builders: [arm] | |
2022/01/17 17:38:40 [INFO] PACKER_CONFIG env var not set; checking the default config file path | |
2022/01/17 17:38:40 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig | |
2022/01/17 17:38:40 [WARN] Config file doesn |
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 | |
set -o errexit | |
set -o nounset | |
usage() { | |
echo "Usage: $0 REGION INSTANCE-ID" | |
} | |
if [ $# -lt 2 ]; then |
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
after_success: | | |
sudo add-apt-repository -y ppa:kubuntu-ppa/backports && | |
sudo apt-get update && | |
sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev binutils-dev libiberty-dev && | |
wget https://github.com/SimonKagstrom/kcov/archive/v33.tar.gz && | |
tar xzf v33.tar.gz && mkdir kcov-33/build && cd kcov-33/build && cmake .. && make && | |
sudo make install && cd ../.. && | |
kcov --verify --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov $(find target/debug -maxdepth 1 -executable -name macaroon-\*) |
I hereby claim:
- I am jacklund on github.
- I am jacklund (https://keybase.io/jacklund) on keybase.
- I have a public key whose fingerprint is 3363 DAAB 400C 9E6C B2A1 27F8 E916 6C59 DF4B 0DA8
To claim this, I am signing this object:
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
WifiManager wifiManager = (WifiManager)(getContext().getSystemService(Context.WIFI_SERVICE)); | |
if (wifiManager.isWifiEnabled()) { | |
String wifiInterface = Utils.getProp("wifi.interface"); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app version="2.5" | |
xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
<display-name>MyApp</display-name> | |
<listener> | |
<listener-class> | |
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap | |
</listener-class> |
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
# Get a list of the directories I'm not interested in | |
$ excludes=`echo $* | tr " " "|"` | |
$ files=`ls | egrep -v $excludes | tr "\\n" " "` | |
# Disconnect from remote for safety | |
$ git remote rm origin | |
# Get rid of all tags that don't fit my pattern | |
$ git tag -l | grep -v $pattern | xargs git tag -d | |
# Prune the directories I'm not interested in | |
$ git filter-branch --tag-name-filter cat --prune-empty \ | |
--tree-filter "rm -rf ${files}" -- --all |
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
$ git clone repo-url | |
$ cd repo | |
$ git filter-branch --prune-empty --subdirectory-filter subdir-name master | |
$ git remote rm origin | |
$ git remote add new-repo-url | |
$ git push -u origin --all --tags |