Skip to content

Instantly share code, notes, and snippets.

View LastDreamer's full-sized avatar

Oleg Kravchenko LastDreamer

View GitHub Profile
([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][(![]+[])[+[]]+(!![]+[])[+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+((+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!

Digital Ocean Promo Code for Winter January 2018

Save $25 for your Cloud Computing Solution with Digital Ocean.

How to get the Discount?

1.) Use this link to Sign Up and save your first $10.

2.) Enter the Promocode LOWENDBOX when you choose your payment method and get another $15 discount.

@LastDreamer
LastDreamer / nginx.sh
Created June 2, 2016 09:29
Установка NGINX с PageSpeed на Ubutnu 16.04
#/bin/bash
NPS_VERSION=1.11.33.2
NGINX_VERSION=1.11.1
UBUNTU_VERSION="$(lsb_release -cs)"
# Обновление, установка необходимого софта
apt-get update
apt-get upgrade -y
apt-get install -y build-essential zlib1g-dev libpcre3 libpcre3-dev unzip git wget
#! /bin/sh
#----------------------- KeyBoard Confing VimLike ------------------------#
# disable screensaver
gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver "[]"
# workspaces and windows
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize 4
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<Shift><Primary><Alt>h']"
@LastDreamer
LastDreamer / tmux.md
Last active September 13, 2015 11:09 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

set nocompatible
filetype off
set scrolloff=3
set ai
set showcmd
set nobackup
set number
set relativenumber
set ruler
@LastDreamer
LastDreamer / gnome-terminal-zenburn.sh
Last active August 29, 2015 14:27 — forked from planbnet/gnome-terminal-zenburn.sh
Zenburn color scheme for gnome-terminal
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@LastDreamer
LastDreamer / translit_ya.php
Created September 17, 2014 14:32
yandex transliteration function
<?php
function translit_ya($str)
{
$dict = array('а'=>'a','б'=>'b','в'=>'v','г'=>'g','д'=>'d','е'=>'e','ё'=>'yo','ж'=>'zh','з'=>'z','и'=>'i','й'=>'j','к'=>'k','л'=>'l','м'=>'m','н'=>'n','о'=>'o','п'=>'p','р'=>'r','с'=>'s','т'=>'t','у'=>'u','ф'=>'f','х'=>'h','ц'=>'c','ч'=>'ch','ш'=>'sh','щ'=>'sch','ъ'=>'','ы'=>'y','ь'=>'','э'=>'e','ю'=>'yu','я'=>'ya',' '=>'_','–'=>'-','—'=>'-','&'=>'_','"'=>'','<'=>'','>'=>'','…'=>'','′'=>'','″'=>'','‘'=>'','’'=>'','‚'=>'','“'=>'','”'=>'','„'=>'','«'=>'','»'=>'', ' '=>'_');
return preg_replace("/_+/", "_", strtr(mb_strtolower($str, mb_detect_encoding($str)), $dict));
}
@LastDreamer
LastDreamer / hl.php
Last active February 26, 2019 08:48
hl - syntax highlight print_r analog
<?php
/**
* hl - syntax highlight print_r analog
* @author Oleg Kravchenko <lex69@list.ru>
*/
static function hl($value, $return = false)
{
// color_theme for hl
ini_set('highlight.string', '#99CF50');
ini_set('highlight.keyword', '#F8F8F8');