🤷♂️
- GitHub Staff
- https://derpops.bike
- @iamjkeating
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
// Perform snapshot of domain console | |
func DomainVNCSnapshot(w http.ResponseWriter, r *http.Request) { | |
ruuid := chi.URLParam(r, "uuid") | |
errstr := "Failure retrieving VM details" | |
domobj, err := GetDomObj(ruuid) | |
if err != nil { | |
http.Error(w, errstr, http.StatusInternalServerError) | |
return | |
} | |
defer domobj.Free() |
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
--- | |
- name: do a thing | |
hosts: localhost | |
gather_facts: false | |
tasks: | |
- name: do my dynamic things | |
include_tasks: "{{ item }}" | |
with_fileglob: | |
- "derp/*.yaml" |
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
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue | |
return Queue(maxsize) | |
File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__ | |
self._rlock = Lock() | |
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__ | |
SemLock.__init__(self, SEMAPHORE, 1, 1) | |
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__ | |
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) |
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
mdadm_assemble() { | |
# mdadm will return '2' if the arrays already exist | |
set +e | |
mdadm --assemble --scan | |
ret="${?}" | |
set -e | |
if ! [[ "${ret}" == "0" || "${ret}" == "2" ]]; then | |
echo "Error assembling raid" >&2 | |
exit "${ret}" | |
fi |
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
~> http get https://api.github.com/repos/omgjlk/demoapp | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Origin: * | |
Access-Control-Expose-Headers: ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval | |
Cache-Control: public, max-age=60, s-maxage=60 | |
Content-Encoding: gzip | |
Content-Security-Policy: default-src 'none' | |
Content-Type: application/json; charset=utf-8 | |
Date: Wed, 20 Jun 2018 01:07:48 GMT | |
ETag: W/"f1bf469c7de03b6afc720d63a319bf36" |
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
In [84]: xmlconfig = """ | |
....: <domain type='kvm'> | |
....: <name>omgjlk</name> | |
... | |
In [93]: xmlconfig | |
Out[93]: "\n<domain type='kvm'>\n <name>omgjlk</name>\n..." | |
In [134]: xmlconfig.split('<domian') |
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
8676df8b (HEAD -> test-branch) HEAD@{0}: rebase finished: returning to refs/heads/test-branch | |
8676df8b (HEAD -> test-branch) HEAD@{1}: rebase: More words | |
c5c46c6b HEAD@{2}: rebase: more content | |
59df554b (tag: 1.1.0, origin/develop, origin/HEAD, develop) HEAD@{3}: rebase: checkout develop | |
2f28edae HEAD@{4}: commit: More words | |
9c10dbb8 HEAD@{5}: commit: more content | |
0dea7034 HEAD@{6}: checkout: moving from develop to test-branch |
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
> http https://api.github.com/repos/ansible/ansible/pulls/35920/reviews | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Origin: * | |
Access-Control-Expose-Headers: ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval | |
Cache-Control: public, max-age=60, s-maxage=60 | |
Content-Encoding: gzip | |
Content-Security-Policy: default-src 'none' | |
Content-Type: application/json; charset=utf-8 | |
Date: Wed, 11 Apr 2018 22:30:22 GMT | |
ETag: W/"c9c9d41c3abe1077978e38da5844dcaa" |
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
#content |
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
Building dell_rbu... | |
cp: cannot stat '/opt/dell/srvadmin//src/srvadmin-hapi/dks/dell_rbu/*.c': No such file or directory | |
cp: cannot stat '/opt/dell/srvadmin//src/srvadmin-hapi/dks/dell_rbu/*.h': No such file or directory | |
cp: cannot stat '/opt/dell/srvadmin//src/srvadmin-hapi/dks/dell_rbu/kernel26/*.h': No such file or directory | |
make: Entering directory '/usr/src/linux-headers-4.9.0-0.bpo.5-amd64' | |
CC [M] /opt/dell/srvadmin/var/lib/openmanage/drivers/x86_64/dks/build/esm/dell_rbu.o | |
/opt/dell/srvadmin/var/lib/openmanage/drivers/x86_64/dks/build/esm/dell_rbu.c:37:26: fatal error: linux/config.h: No such file or directory | |
#include <linux/config.h> | |
^ | |
compilation terminated. |