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 / fedora_zram.sh
Last active August 29, 2015 14:21
Enable&autoload zram on fedora
#!/bin/bash
# http://mystilleef.blogspot.ru/2011/10/enable-zram-in-fedora.html
if [ `whoami` != "root" ]; then
echo "Sudo required"
exit
fi
RED='\033[0;31m'
NC='\033[0m' # No Color
@Enelar
Enelar / semanticui_container.css
Created May 22, 2015 15:03
Semantic ui analog of bootstrap container class
.ui.container {
position: relative;
width: 915px;
margin: 0px auto;
}
@media only screen and (max-width : 600px) {
.ui.container {
width: auto;
margin: 0em 1rem;
# Service Interruption Debrief
## Brief Executive Summary
EXECUTIVE SUMMARY HERE
***On Call during outage***:
***Time outage started***:
@Enelar
Enelar / ngnix.conf
Last active August 29, 2015 14:23
Using nginx as forward proxy for bad connection locations
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@Enelar
Enelar / lazy_git.sh
Last active October 20, 2015 12:43
Git shortcuts for lazy developers
alias status='git status'
alias commit='git commit'
alias commitall='git commit -a'
alias amend='git commit --amend'
alias amendall='git commit -a --amend'
alias push='git push'
alias pull='git pull'
alias pushforce='git push -f'
alias submodule='git submodule'
alias add='git add'
@Enelar
Enelar / squid_cache.conf
Created July 5, 2015 23:48
Force cache cdn squid (32GB of cache)
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
@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
@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 / 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 / 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