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
Setting up a Ubuntu 14.04 or Debian 8 (jessie) arm64 VM | |
This is mainly a notes dump and should be used for reference. This guide assumes: | |
*Ubuntu 14.04 (or Debian 8) hypervisor/host with bridge networking | |
*Knowledge of qemu | |
*Knowledge of debootstrap | |
Limitations of the qemu-system-aarch64 emulator on x86 include only being able to emulate one CPU and no KVM support. |
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
DOT files for "Replacing Objects in Python" |
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/sh | |
# | |
# Rename a domain. | |
# Note: The domain must be shutdown. | |
# | |
die() { | |
echo $1 >&2 | |
exit 1 | |
} |
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/sh | |
# | |
# Get the ipv4 address of a domain. | |
# | |
# Note: This script is obsoleted by modern versions of virsh. | |
# | |
name=$1 | |
if [ "x$1" = "x" ]; then | |
echo "usage: virsh-domipaddr <name>" >&2 |
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
$ afstuil build | |
... | |
$ sudo afsutil install \ | |
> --dist transarc \ | |
> --comp client \ | |
> --cell sinenomine.net \ | |
> --realm SINENOMINE.NET \ | |
> --hosts afsdb1.sinenomine.net afsdb4.sinenomine.net afsdb5.sinenomine.net | |
Looking up ip address of hostname afsdb1.sinenomine.net. | |
Looking up ip address of hostname afsdb4.sinenomine.net. |
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
#!/usr/bin/python | |
import re | |
import pprint | |
import urllib2 | |
from sh import rxdebug | |
def get_csdb(): | |
response = urllib2.urlopen('https://grand.central.org/dl/cellservdb/CellServDB') | |
return response.read() |
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/sh | |
git clean -d -f -q -x | |
git fetch https://gerrit.openafs.org/openafs refs/changes/44/12844/3 | |
git checkout FETCH_HEAD | |
git log -n1 --oneline | |
echo 0.0.0 >.version # avoid false hunks in diff | |
./regen.sh -q | |
mv configure configure.new | |
mv configure-libafs configure-libafs.new |
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
/* | |
* Example libyaml emitter. | |
* | |
* This is a basic example to demonstrate how to convert raw data to a yaml | |
* stream using the libyaml emitter API. The example data to be converted is | |
* is a simple array of structs, | |
* | |
* struct fruit data[] = { | |
* {"apple", "red", 12}, | |
* {"orange", "orange", 3}, |
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
#!/usr/bin/python3 | |
# | |
# List the gerrits in descending order on wiki.openafs.org. | |
# | |
import os | |
import tempfile | |
import git_gerrit | |
from sh.contrib import git | |
from sh import ErrorReturnCode, ErrorReturnCode_1 |
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
{"uploader":{"name":"Michael Meffie","email":"mmeffie@sinenomine.net","username":"mmeffie"},"patchSet":{"number":"2","revision":"1e562f8760c0dfa9c037bb3f9b64668ae9e847a1","parents":["39272929fc528a4c6af05e74b98518a3bae18462"],"ref":"refs/changes/11/13411/2","uploader":{"name":"Michael Meffie","email":"mmeffie@sinenomine.net","username":"mmeffie"},"createdOn":1545299856,"author":{"name":"Mark Vitale","email":"mvitale@sinenomine.net","username":"mvitale"},"isDraft":false,"kind":"REWORK","sizeInsertions":2,"sizeDeletions":-2},"change":{"project":"openafs","branch":"openafs-stable-1_8_x","topic":"1.8.3","id":"Ie264fbd0064a3e22b1c474cea59040ecb0804b73","number":"13411","subject":"viced: fix typo in help for option -unsafe-nosalvage","owner":{"name":"Stephan Wiesand","email":"stephan.wiesand@desy.de","username":"wiesand"},"url":"https://gerrit.openafs.org/13411","commitMessage":"viced: fix typo in help for option -unsafe-nosalvage\n\nReviewed-on: https://gerrit.openafs.org/13367\nReviewed-by: Stephan Wiesand \u003c |
OlderNewer