Skip to content

Instantly share code, notes, and snippets.

View herrjemand's full-sized avatar
🎯

Ackermann Yuriy herrjemand

🎯
View GitHub Profile
@herrjemand
herrjemand / prank.sh
Created August 25, 2013 11:05 — forked from dtrce/prank.sh
#!/bin/bash
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
* https://github.com/usablica/intro.js
* MIT licensed
*
* Copyright (C) 2013 usabli.ca - 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
herrjemand / processor.py
Last active August 29, 2015 14:06
SHITCODED COUNTRIES.JSON STYLER! PLEASE KILL THE AUTHOR!!!
import json
x = {}
with open('countries.json') as f:
x = json.loads(f.read())
jzon = ''
for i in x:
codes = {
"name": "\"name\":",
@herrjemand
herrjemand / harrythespells.json
Created October 4, 2014 08:20
Harry Potter list of all spells
[
"Accio (Summoning Charm)",
"(Age Line)",
"Aguamenti (Aguamenti Charm)",
"Alohomora",
"Anapneo",
"(Anti-Cheating Spell)",
"(Anti-Disapparition Jinx)",
"Aparecium",
"Avada Kedavra (Killing Curse)",
@herrjemand
herrjemand / harrythespells.filtered.json
Created October 4, 2014 08:28
Harry Potter spells filtered.
[
"Accio",
"Aguamenti",
"Alohomora",
"Anapneo",
"Aparecium",
"Avada Kedavra",
"Avis",
"Cave Inimicum",
"Colloportus",
#<IfDefine PHP4>
#LoadModule php4_module modules/libphp4.so
#</IfDefine>
#<IfDefine PHP5>
#LoadModule php5_module modules/libphp5.so
#</IfDefine>
# We will enable it by default
#<IfDefine PHP>
LoadModule php5_module modules/libphp5.so

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 -> http://git-scm.com/book/en/v2/Getting-Started-Installing-Git

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}"