Skip to content

Instantly share code, notes, and snippets.

View smileart's full-sized avatar
:octocat:
Work In Progress

Serge Bedzhyk smileart

:octocat:
Work In Progress
View GitHub Profile
@smileart
smileart / spellcheck.rb
Created March 5, 2012 13:26
Spell check plugin for earthquake.gem
# encoding: UTF-8
# Spell check plugin for earthquake.gem
#
# written by Smile @rT, https://github.com/smileart, smileart@mail.ru
#
# INSTALL:
#
# 1. Resolve dependencies of raspell.gem:
# https://github.com/evan/raspell/blob/master/README.rdoc
#
@smileart
smileart / scale.rb
Created July 5, 2012 19:17
Scale plugin for earthquake.gem
# encoding: UTF-8
# Scale plugin for earthquake.gem
#
# written by Smile @rT, https://github.com/smileart
#
# WARNING: Works properly only with monospaced fonts!
# PROTIP: Type under "=" symbol to avoid exceeding the limit
#
Earthquake.init do
@smileart
smileart / dabblet.css
Created September 13, 2012 12:29 — forked from anonymous/dabblet.css
Untitled
body{
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
-webkit-transform:translate3d(0,0,0);
}
#cover, #backcover
{
position:absolute;
@smileart
smileart / dabblet.css
Created September 13, 2012 13:27
Untitled
body{
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
-webkit-transform:translate3d(0,0,0);
}
.inset { text-shadow:#fff 0px 1px 0, #000 0 -1px 0;}
#cover {
@smileart
smileart / dabblet.css
Created September 13, 2012 15:33
Untitled
body{
-webkit-perspective: 1000;
-webkit-backface-visibility: hidden;
-webkit-transform:translate3d(0,0,0);
}
.inset { text-shadow:#fff 0px 1px 0, #000 0 -1px 0;}
#cover {
@smileart
smileart / README.md
Last active March 16, 2024 15:42 — forked from agnoster/README.md
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

@smileart
smileart / key.sh
Last active December 25, 2015 14:19
Little shell script to manage (enable/disable) keyboard on Mac WARNING! To enable keyboard, use Keyboard Viewer from keyboard layout menu
# Add ’alias key='~/key.sh'’ to .bashrc or .zshrc
case "$1" in
"off") sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
echo "Keyboard is temporary disabled"
;;
"on") sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1
echo "Keyboard is enabled again"
;;
"easy") sudo -K
@smileart
smileart / gopher
Last active February 11, 2017 11:13
Gopher — Go lang mascot!
===== Gopher =====
-- Go lang mascot --
⊂( ⓄϖⓄ)っ
⊂( ◐ϖ◑ )っ
⊂( ❍ϖ❍ )っ
⊂( ⦿ϖ⦿ )っ
⊂( ⊚ϖ⊚ )っ
⊂( ⊙ϖ⊙ )っ
⊂( ⚆ ϖ⚆ )っ
@smileart
smileart / catim
Created January 9, 2014 15:44
Improved cat alias with automatic pygments syntax highlight
# Install http://pygments.org/download/ to use this improved cat!
cat() {
if command -v pygmentize > /dev/null; then
pygmentize $1 > /dev/null 2>&1
if [ $? -eq 0 ]; then
pygmentize $1
else
command cat $1
fi
else
@smileart
smileart / online_offline.sh
Created January 13, 2014 09:19
Aliases for easy switching the network on and off on OS X systems
alias offline='networksetup -setairportpower en1 off'
alias online='networksetup -setairportpower en1 on'