Create a ~/.zshenv
file with content ZDOTDIR=/opt/config/zsh
-
CTRL + A
— Move to the beginning of the line -
CTRL + E
— Move to the end of the line -
CTRL + [left arrow]
— Move one word backward (on some systems this is ALT + B) -
CTRL + [right arrow]
— Move one word forward (on some systems this is ALT + F) -
CTRL + U
— (bash) Clear the characters on the line before the current cursor position -
CTRL + U
—(zsh) If you're using the zsh, this will clear the entire line -
CTRL + K
— Clear the characters on the line after the current cursor position -
ESC + [backspace]
— Delete the word in front of the cursor
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
func main() { | |
b := []byte(`{"key":"value"}`) |
I hereby claim:
- I am vincentvdk on github.
- I am vincentvdk (https://keybase.io/vincentvdk) on keybase.
- I have a public key whose fingerprint is 5CF6 F20A 0D0C 6F75 CF5B D4CA 350E 608F 48A2 73A3
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
select concat(d.name, '.', if (b.name is null, '', b.name + '.'), a.name) from `dns` d, `domains` a | |
left join `domains` b on b.id = a.parent_id | |
where d.domain_id = a.id | |
limit 0, 500; |
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
host_var | |
======== | |
--- | |
storage_vg: vg_vms | |
vms: | |
node-00008: | |
disksize: 10000 | |
lvsize: 10G | |
memory: 1024 | |
cpu: 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
running from Ansible works : | |
→ ansible 192.168.13.42 -m shell -a "update-alternatives --display java | grep currently | awk '{print \$5}'" -u root -k [master] | |
SSH password: | |
192.168.13.42 | success | rc=0 >> | |
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java | |
running from playbook |
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
dn: cn=ansible,cn=schema,cn=config | |
objectClass: olcSchemaConfig | |
cn: ansible | |
olcAttributeTypes: {0}( 1.3.6.1.4.1.7637.70.1.2.1 NAME 'ansibleVar' DESC 'A va | |
riable=value setting for an Ansible host' EQUALITY caseIgnoreMatch SUBSTR cas | |
eIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ) | |
olcObjectClasses: {0}( 1.3.6.1.4.1.7637.70.1.1.1 NAME 'ansibleHost' DESC 'Ansi | |
ble host entry' SUP top AUXILIARY MAY ansibleVar ) |
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
for system in systems: | |
if system.get('name') == host: | |
#print system['name'] | |
sys_id = system.get('id') | |
#id2 = int(idken) | |
print sys_id | |
#get the system name and print it | |
print "%s" % (system.get('name')) | |
#basechan = client.system.listBaseChannels(session, int(sys_id)) |