Skip to content

Instantly share code, notes, and snippets.

View andmetoo's full-sized avatar
🌊
Working from home

Radik Ilin andmetoo

🌊
Working from home
View GitHub Profile
brew install cabextract -y
wget https://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe -P /tmp/consolas
cabextract --dir /tmp/consolas /tmp/consolas/PowerPointViewer.exe
cabextract --dir /tmp/consolas /tmp/consolas/ppviewer.cab
open /tmp/consolas/CONSOLA*.TTF
@andmetoo
andmetoo / README.md
Created September 22, 2016 21:36 — forked from joakimk/README.md
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.

.unselectable {
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-webkit-user-drag: none;
}
.transparent {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
@andmetoo
andmetoo / gist:707f1e3240af67c8ac6ab933f1613367
Created May 31, 2017 22:40
Golang setup in Mac OSX with HomeBrew + Fish.
# Create a GO workspace
# Create two sub directories into
# src/github.com/<user>/hello
# and bin/
#Update brew and install go + git
brew update
brew install go
brew install git
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@andmetoo
andmetoo / no-select.css
Created July 28, 2017 06:58
Disable element select only css
.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@andmetoo
andmetoo / resize.sh
Created July 28, 2017 07:00
Batch resize images on mac
sips -Z 1024 *.jpg --out /Users/metoo/Images/sample
@andmetoo
andmetoo / backup.sh
Created July 28, 2017 07:06
Mysql backup crontab
0 */6 * * * mysqldump --single-transaction --lock-tables=false -ubackup -pxp3VG9QceKMPdHYQXLqLbfigmKbn storm_pd1 | gzip -c | ./snapshot storm_pd1.sql.gz > ~/storm_pd1_dump.log
@andmetoo
andmetoo / chmod.sh
Created July 28, 2017 07:08
Rewrite web data directory chmod
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
adduser grigory
su grigory
mkdir .ssh
chmod 700 .ssh
cd .ssh
@andmetoo
andmetoo / redis.sh
Created July 28, 2017 07:08
Install Redis on Ubuntu
# Install Redis
sudo apt-add-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
#uninstall Redis
sudo apt-get purge--auto-remove redis-server