This file contains hidden or 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
We have 2 versions of program foo in /usr/bin/. We want to use foo-v1 in | |
project_a and foo-v2 in project_b. | |
$ foo-v1 | |
This is version 1 | |
I am located at /usr/bin/foo-v1 | |
$ foo-v2 | |
This is version 2 |
This file contains hidden or 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
{ | |
"editor.tabSize": 8, | |
"editor.insertSpaces": false, | |
"editor.detectIndentation": false, | |
"editor.renderWhitespace": "all", | |
"editor.rulers": [80,120] | |
} |
This file contains hidden or 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":"[email protected]","username":"mmeffie"},"patchSet":{"number":"2","revision":"1e562f8760c0dfa9c037bb3f9b64668ae9e847a1","parents":["39272929fc528a4c6af05e74b98518a3bae18462"],"ref":"refs/changes/11/13411/2","uploader":{"name":"Michael Meffie","email":"[email protected]","username":"mmeffie"},"createdOn":1545299856,"author":{"name":"Mark Vitale","email":"[email protected]","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":"[email protected]","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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
all: emit scan parse | |
emit.o: emit.c | |
gcc -c emit.c -g -O0 -Wall | |
emit: emit.o | |
gcc -o emit emit.o -lyaml | |
scan.o: scan.c |
This file contains hidden or 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 hidden or 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 hidden or 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 |
NewerOlder