Skip to content

Instantly share code, notes, and snippets.

View frizbee's full-sized avatar
🎯
Focusing

Andre frizbee

🎯
Focusing
View GitHub Profile
@frizbee
frizbee / ctags.setup
Last active December 30, 2019 03:41 — forked from nazgob/ctags.setup
ctags setup on mac
# 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
frizbee / elastic_common_used.md
Created September 23, 2019 06:16
Some of the calls to elastic search

GET

Simple

curl -X GET "localhost:9200/twitter"

More complicated

curl -X GET "localhost:9200/_search" -H 'Content-Type: application/json' -d'
{
@frizbee
frizbee / lock_screen_mac.md
Last active September 11, 2019 04:53
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/user.menu/Contents/Resources/CGSession -suspend'

type lock in your terminal to lock screen

@frizbee
frizbee / setup_new_mac_env.md
Last active September 10, 2019 06:50
Setup new Mac dev environment Mojave

Setup new Mac dev env

Homebrew

Setup brew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"