Skip to content

Instantly share code, notes, and snippets.

Avatar

Oleg Kravchenko LastDreamer

View GitHub Profile
View хорошо
([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][(![]+[])[+[]]+(!![]+[])[+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+((+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!
View digital-ocean-promo-2018.md

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 Jun 2, 2016
Установка NGINX с PageSpeed на Ubutnu 16.04
View nginx.sh
#/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
View init.sh
#! /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 Sep 13, 2015 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

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

View .nvimrc
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 Aug 29, 2015 — forked from planbnet/gnome-terminal-zenburn.sh
Zenburn color scheme for gnome-terminal
View gnome-terminal-zenburn.sh
#!/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 Sep 17, 2014
yandex transliteration function
View translit_ya.php
<?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 Feb 26, 2019
hl - syntax highlight print_r analog
View hl.php
<?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');