Skip to content

Instantly share code, notes, and snippets.

View Enelar's full-sized avatar
💭
https://www.linkedin.com/in/offenso

Kirill Berezin Enelar

💭
https://www.linkedin.com/in/offenso
View GitHub Profile
@Enelar
Enelar / xlsx_to_csv.sh
Created July 25, 2016 16:02
Convert xlsx/xls to csv in directory recursive
find . -type f -iname "*.xlsx" -print0 | while IFS= read -r -d $'\0' line; do
echo "$line"
ssconvert -S "$line" "${line%.xlsx}.%s.csv"
# rm "$line"
done
@Enelar
Enelar / sysctl.conf
Created April 4, 2016 16:04
sysctl.conf
vm.swappiness=90
vm.dirty_ratio=50
vm.dirty_background_ratio=30
vm.dirty_writeback_centisecs=60000
vm.vfs_cache_pressure=150
vm.laptop_mode=1
vm.page-cluster=1
vm.min_free_kbytes=2048
vm.memory_failure_recovery=1
vm.panic_on_oom=1
@Enelar
Enelar / sublime.conf.json
Last active March 29, 2016 14:09
My sublime text default settings
{
"auto_match_enabled": false,
"draw_minimap_border": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_size": 14,
"gutter": true,
"highlight_line": true,
"hot_exit": true,
"ignored_packages":
@Enelar
Enelar / photoshop.php
Last active January 30, 2016 02:30
Cut photoshop 100-200 MB psd files into 50KB jpeg.
<meta http-equiv="refresh" content="5"/>
<?php
include('phpa2o.php');
include('phpsql/oneline.php');
phpsql\OneLineConfig("pgsql://postgres@localhost/plov");
$trans = db::Begin();
@Enelar
Enelar / app.yaml
Created October 18, 2015 19:08 — forked from darktable/app.yaml
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
@Enelar
Enelar / .gitconfig
Last active October 2, 2015 15:54
My default git config
[user]
name = Kirill Berezin
email = [email protected]
[url "ssh://[email protected]"]
insteadOf = https://github.com
[url "ssh://[email protected]"]
insteadOf = https://gitlab.com
[core]
editor = nano
[push]
@Enelar
Enelar / telegram.sh
Last active September 13, 2015 08:19
Install telegram into rpm based system
#!/bin/bash
# http://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
RED='\033[0;31m'
NC='\033[0m' # No Color
printf "${RED}Check&install required utility${NC}\n"
rpmqa=`rpm -qa`
echo $rpmqa | grep -qw wget || sudo dnf install wget
echo $rpmqa | grep -qw tar || sudo dnf install tar
@Enelar
Enelar / nginx-phoxy.conf
Created August 25, 2015 15:07
Nginx reverse proxy for phoxy
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
@Enelar
Enelar / adblock
Last active October 4, 2015 10:56
Vk procrastination ban
vk.com###apps_cat
vk.com###apps_friends_wrap
vk.com###apps_genre10_wrap
vk.com###apps_genre11_wrap
vk.com###apps_genre12_wrap
vk.com###apps_genre13_wrap
vk.com###apps_genre14_wrap
vk.com###apps_genre15_wrap
vk.com###apps_genre16_wrap
vk.com###apps_genre17_wrap
@Enelar
Enelar / id_rsa.pub
Created July 11, 2015 18:56
My public key
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAhQFRE5FW/pGe4wU/f6bCqtW+wZy9bEiB9aqGyymS7VVbAkm7xfBE8pwDXOr+wc53XXuVGGcwhZJPKJKeK0/m1bVkrhXFlffmdcsGtDA+HbM7VyW4qmSPG5fuw9RZJSKswLq7bd6JJhJbClBd8LGWfeuNOhJx5nxNNCrjeaRQJK8Vcf8x0bdX6olOrn70NYpd2I40md1C0Oo9XQbEOzrlCH0Pqii8b2QOQNwG16QkW7+2UtOEXcLnpck6/aUqZIa4G3C28Ga2kjV7L/B0v7uilqQV7ULXfEouFJ/MQxefRZCxX6fmgOE/Ps/3qTQNzQgQ7r2pS3rL5kAadOUvybJCWQ== kberezin.v.exsul.net