Skip to content

Instantly share code, notes, and snippets.

View herrjemand's full-sized avatar

Ackermann Yuriy herrjemand

View GitHub Profile
herrjemand /
Created August 25, 2013 11:05 — forked from dtrce/
echo "body {-webkit-transform: rotate(1deg); -webkit-filter: blur(1px);}" >> ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
* Intro.js v0.3.0
* MIT licensed
* Copyright (C) 2013 - A weekend project by Afshin Mehrabani (@afshinmeh)
(function (root, factory) {
if (typeof exports === 'object') {
.introjs-overlay {
position: absolute;
z-index: 999999;
background-color: #000;
opacity: 0;
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
# name: это строка которую транслитим
def transliterate(name):
Автор: LarsKort
Дата: 16/07/2011; 1:05 GMT-4;
Не претендую на "хорошесть" словарика. В моем случае и такой пойдет,
вы всегда сможете добавить свои символы и даже слова. Только
это нужно делать в обоих списках, иначе будет ошибка.
# Слоаврь с заменами
herrjemand /
Last active August 29, 2015 14:06
import json
x = {}
with open('countries.json') as f:
x = json.loads(
jzon = ''
for i in x:
codes = {
"name": "\"name\":",
herrjemand / harrythespells.json
Created October 4, 2014 08:20
Harry Potter list of all spells
"Accio (Summoning Charm)",
"(Age Line)",
"Aguamenti (Aguamenti Charm)",
"(Anti-Cheating Spell)",
"(Anti-Disapparition Jinx)",
"Avada Kedavra (Killing Curse)",
herrjemand / harrythespells.filtered.json
Created October 4, 2014 08:28
Harry Potter spells filtered.
"Avada Kedavra",
"Cave Inimicum",
#<IfDefine PHP4>
#LoadModule php4_module modules/
#<IfDefine PHP5>
#LoadModule php5_module modules/
# We will enable it by default
#<IfDefine PHP>
LoadModule php5_module modules/

Git. Basics.

As I discovered through my career, beginning developers usually not using git for two main reasons:

  • They think that git is complicated, because they never tried it.
  • They think that git is complicated, because they used other version control system.

This article will explain basics of git, and how you can benefit from it.

If you have not install git yet ->

for file in *.JPG; do convert $file -quality 50 50q-$file; echo "Done compression of "$file; done #50% quality of the original
for file in *.JPG; do convert $file -resize x1024 resized-$file; echo "Done resize of "$file; done #resize to 1024px height
for file in *.JPG; do git add $file; echo "Done git add "$file; done #add to git
for file in *.JPG; do realpath $file; done #print real path of the image
for file in *.JPG; do cat "/home/niemand/Timelapse/c/"$file > `readlink -e $file`; done #fuckup fix
convert -delay 10 -loop 0 *.JPG animation.gif
for D in *; do
if [ -d "${D}" ]; then
cd "${D}"