Skip to content

Instantly share code, notes, and snippets.


AndreAntonov frizbee

Block or report user

Report or block frizbee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Deploy a Rails App with Puma and Nginx on Ubuntu

install nodejs

sudo apt-get update
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn
frizbee / ctags.setup
Last active Dec 30, 2019 — forked from nazgob/ctags.setup
ctags setup on mac
View ctags.setup
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
> ctags: illegal option -- R
> usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
frizbee /
Last active Nov 5, 2019
Regex for password must contain

Minimum eight characters, at least one letter and one number:


Minimum eight characters, at least one letter, one number and one special character:


Minimum eight characters, at least one uppercase letter, one lowercase letter and one number:

frizbee /
Created Sep 23, 2019
Some of the calls to elastic search



curl -X GET "localhost:9200/twitter"

More complicated

curl -X GET "localhost:9200/_search" -H 'Content-Type: application/json' -d'
frizbee /
Last active Sep 11, 2019
easy lock screen one line command for your mac

Add following line into your .zshrc or .bash_profile

alias lock='/System/Library/CoreServices/Menu\ Extras/ -suspend'

type lock in your terminal to lock screen

frizbee /
Last active Sep 10, 2019
Setup new Mac dev environment Mojave

Setup new Mac dev env


Setup brew:

/usr/bin/ruby -e "$(curl -fsSL"

You can’t perform that action at this time.