- vim: https://github.com/sickill/vim-monokai
- if doesn't applied right after starting vim, add this to .vimrc: "set t_Co=256" before loading colorscheme
- xterm: https://gist.github.com/vreon/845878
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
! Molokai theme | |
*xterm*faceName: "Liberation Mono" | |
*xterm*faceSize: 9 | |
*xterm*background: #272822 | |
*xterm*foreground: #f8f8f2 | |
*xterm*cursorColor: #f8f8f2 | |
*xterm*color0: #101010 | |
*xterm*color1: #ed2169 | |
*xterm*color2: #66aa11 | |
*xterm*color3: #c47f2c |
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
function hg_prompt_update | |
set -e -g __hg_branch | |
set -e -g __hg_book | |
end | |
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
# Just calculate these once, to save a few cycles when displaying the prompt |
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/perl | |
# vim: expandtab ts=2 sw=2 | |
=pod | |
=head1 Docker Inspect utility | |
usage: | |
docker inspect I<container_name> | di I<todo> |
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
cp myCA.crt /usr/share/pki/ca-trust-source/anchors | |
update-ca-trust extract |
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/fish | |
env GNOME_DESKTOP_SESSION_ID=1 /usr/bin/google-chrome |
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/perl | |
# vim: expandtab ts=2 sw=2 | |
use warnings; | |
use strict; | |
use File::Slurp qw{read_file}; | |
my $remote = $ARGV[0]; | |
my $client= $ARGV[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
-- Problem 1 | |
sum [x | x <- [0..999], x `mod` 3 == 0 || x `mod` 5 == 0 ] |
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/bash | |
CURRENT=`setxkbmap -query | grep layout | awk '{print $2}'` | |
if [ "$CURRENT" == "us" ]; then | |
setxkbmap hu | |
else | |
setxkbmap us | |
fi |
OlderNewer