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
$ ag '(ctrl|caps):' /usr/share/X11/xkb/rules/base.lst | |
755: ctrl:nocaps Caps Lock as Ctrl | |
756: ctrl:lctrl_meta Left Ctrl as Meta | |
757: ctrl:swapcaps Swap Ctrl and Caps Lock | |
758: ctrl:ac_ctrl At left of 'A' | |
759: ctrl:aa_ctrl At bottom left | |
760: ctrl:rctrl_ralt Right Ctrl as Right Alt | |
761: ctrl:menu_rctrl Menu as Right Ctrl | |
762: ctrl:ctrl_ralt Right Alt as Right Ctrl | |
763: ctrl:swap_lalt_lctl Swap Left Alt key with Left Ctrl key |
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
--- | |
- hosts: localhost | |
sudo: True | |
tasks: | |
- apt: pkg={{ item }} state=latest update_cache=yes | |
with_items: | |
- binutils | |
- build-essential | |
- curl | |
- htop |
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
def getfqdn(name=''): | |
"""Get fully qualified domain name from name. | |
An empty argument is interpreted as meaning the local host. | |
First the hostname returned by gethostbyaddr() is checked, then | |
possibly existing aliases. In case no FQDN is available, hostname | |
from gethostname() is returned. | |
""" | |
name = name.strip() |
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
file_client: local | |
file_roots: | |
base: | |
- /srv/salt/states |
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
ubuntu@precise:~$ ls -la virtualenv/bin/ | |
total 6720 | |
drwxr-xr-x 2 ubuntu ubuntu 4096 Aug 26 15:18 . | |
drwxr-xr-x 5 ubuntu ubuntu 4096 Aug 26 15:18 .. | |
-rw-r--r-- 1 ubuntu ubuntu 2132 Aug 26 15:18 activate | |
-rw-r--r-- 1 ubuntu ubuntu 1045 Aug 26 15:18 activate.csh | |
-rw-r--r-- 1 ubuntu ubuntu 2864 Aug 26 15:18 activate.fish | |
-rw-r--r-- 1 ubuntu ubuntu 1129 Aug 26 15:18 activate_this.py | |
-rwxr-xr-x 1 root root 144 Aug 26 15:18 django-admin.py | |
-rwxr-xr-x 1 ubuntu ubuntu 343 Aug 26 15:18 easy_install |
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
_='_=%r;print _%%_';print _%_ |
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 python | |
import sys | |
from subprocess import call | |
def main(): | |
args = sys.argv | |
return call(args) | |
if __name__ == '__main__': |
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 part of the libopencm3 project. | |
* | |
* Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de> | |
* | |
* This library is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* |
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 part of the libopencm3 project. | |
## | |
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de> | |
## | |
## This library is free software: you can redistribute it and/or modify | |
## it under the terms of the GNU Lesser General Public License as published by | |
## the Free Software Foundation, either version 3 of the License, or | |
## (at your option) any later version. | |
## |
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
$ dircolors >> ~/.zshrc | |
$ echo "zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}" >> ~/.zshrc |