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
# | |
# it suits my purposes, no warranty if is suits yours | |
# Iļja Ketris | |
# | |
include "/usr/share/X11/locale/en_US.UTF-8/Compose" | |
<Multi_key> <minus> <greater> : "→" U2192 # RIGHT | |
<Multi_key> <less> <minus> : "←" U2190 # LEFT | |
<Multi_key> <period> <space> : "…" U2026 # HORIZONTAL ELLIPSIS, многоточие |
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 i in */; do | |
cd $i | |
zip $i * | |
cd .. | |
done |
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
angular.element(document.querySelector('.ng-scope')).injector().get('MyService') |
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
++ id -un | |
+ [[ root != \d\o\k\k\u ]] | |
+ [[ deploy != plugins-install* ]] | |
+ [[ deploy != \p\l\u\g\i\n\s\-\u\p\d\a\t\e ]] | |
+ sudo -u dokku -E -H /usr/local/bin/dokku deploy www | |
++ id -un | |
+ [[ dokku != \d\o\k\k\u ]] | |
+ [[ -n '' ]] | |
+ case "$1" in | |
+ APP=www |
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 i in *; do | |
((c=0)) | |
for j in $i/*; do | |
((c++)) | |
mv $j $j-$c | |
done | |
done |
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
FROM ubuntu | |
RUN apt-get update | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install postfix postfix-pcre -y --force-yes | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install syslog-ng syslog-ng-core -y --force-yes | |
ADD etc /etc/ | |
RUN cp /etc/resolv.conf /etc/services /var/spool/postfix/etc/ |
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
# | |
# responds to requests with Forsyth-Edwards notation in URL with an image: | |
# http://dia-x.info/fen/2S5/1bQKpR2/4s3/2bkpP2/Sr1p2r1/1P1R3B/1B2s3/8 | |
# | |
class FenController < ApplicationController | |
include Magick |
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
_RUBY=ruby-1.9.3 | |
_PROJECT=dia-x | |
export rvm_gem_options="--no-rdoc --no-ri" | |
if [[ -s "${rvm_path:-$HOME/.rvm}/environments/$_RUBY@$_PROJECT" ]] | |
then | |
. "${rvm_path:-$HOME/.rvm}/environments/$_RUBY@$_PROJECT" | |
else | |
rvm --create use "$_RUBY@$_PROJECT" |
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/bash | |
[[ $1 =~ ([[:alnum:]]+)-([[:alnum:]]+) ]] || exit 1 | |
[[ "$2" = suffix ]] && | |
echo ${BASH_REMATCH[2]} && exit 0 | |
echo ${BASH_REMATCH[1]} && exit 0 |
OlderNewer