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
### Keybase proof | |
I hereby claim: | |
* I am xen0l on github. | |
* I am xenol (https://keybase.io/xenol) on keybase. | |
* I have a public key whose fingerprint is 00EF 547B 63CC 8FB0 02F4 C654 6843 7E0C F3E7 FCC1 | |
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
[root@smartos ~]# UUID="afe2f552-4a35-4c44-8855-a9bac10f27d2" | |
[root@smartos ~]# vmadm update ${UUID} qemu_extra_opts="-chardev socket,path=/tmp/vm.qga,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0" | |
Successfully updated VM afe2f552-4a35-4c44-8855-a9bac10f27d2 | |
[root@smartos ~]# vmadm boot ${UUID} | |
Successfully started VM afe2f552-4a35-4c44-8855-a9bac10f27d2 | |
[root@smartos ~]# sleep 60 # Machine needs to boot up | |
[root@smartos ~]# echo '{"execute": "guest-ping" }' | socat stdio unix-connect:/zones/${UUID}/root/tmp/vm.qga # Is GA alive? | |
{"return": {}} | |
[root@smartos ~]# echo '{"execute": "guest-info" }' | socat stdio unix-connect:/zones/${UUID}/root/tmp/vm.qga # show information about GA | |
{"return": {"version": "0.12.1", "supported_commands": [{"enabled": true, "name": "guest-set-vcpus"}, {"enabled": true, "name": "guest-get-vcpus"}, {"enabled": true, "name": "guest-network-get-interfaces"}, {"enabled": true, "name": "guest-suspend-hybrid"}, {"enabled": tru |
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
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
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 | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
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
# If you want to run this as a non-root user, assign "Zone Management" RBAC profile to non-root account. | |
root@openindiana:/root/ansible# ansible www -m ping | |
www | SUCCESS => { | |
"changed": false, | |
"ping": "pong" | |
} |
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
# dark colors | |
$colors[0][0] = "5299AD"; # blue1 | |
$colors[0][1] = "5D549A"; # violet | |
$colors[0][2] = "87B457"; # green | |
$colors[0][3] = "CF545E"; # red | |
$colors[0][4] = "CDDA13"; # lemon | |
$colors[0][5] = "5DAE99"; # turquise | |
$colors[0][6] = "DD844C"; # orange | |
$colors[0][7] = "AE5C8A"; # mauve | |
$colors[0][8] = "BD9F83"; # ltbrown |
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
# This file is managed by Ansible. Any manual changes will be overwritten! | |
# | |
# ipf.conf | |
# | |
# IP Filter rules to be loaded during startup | |
# | |
# See ipf(4) manpage for more information on | |
# IP Filter rules syntax. | |
# Do not filter loopback |
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
Linux: | |
Python 3.5.1 (default, Mar 3 2016, 09:29:07) | |
[GCC 5.3.0] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> import select | |
>>> os.uname() | |
posix.uname_result(sysname='Linux', nodename='archlinux.vagrant.vm', release='4.5.0-1-ARCH', version='#1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016', machine='x86_64') | |
>>> select.epoll(select.EPOLL_CLOEXEC).close() |
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
https://gist.github.com/f60a78d4f85675b95f6efb4ab8994d0a |
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/env bash | |
# Colors | |
NOCOLOR='\e[0m' | |
BLACK='\e[0;30m' | |
RED='\e[0;31m' | |
GREEN='\e[0;32m' | |
YELLOW='\e[0;33m' | |
BLUE='\e[0;34m' | |
PURPLE='\e[0;35m' |
OlderNewer