Skip to content

Instantly share code, notes, and snippets.

View brupm's full-sized avatar
👋
Say hi! @brupm

Bruno Miranda brupm

👋
Say hi! @brupm
View GitHub Profile
@brupm
brupm / linux-setup.sh
Created May 23, 2024 21:54 — forked from dhh/linux-setup.sh
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl fzf eza \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
http://localhost:8080/px.png?tracking_data={"events":[{"identifier":"colleagues::my_colleagues::profile","uid":726015,"sequence":0,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":723679,"sequence":1,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":4675426,"sequence":2,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":963658,"sequence":3,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":1268440,"sequence":4,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":1864260,"sequence":5,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":988316,"sequence":6,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":3867977,"sequence":7,"event_type":"track-view"},{"identifier":"colleagues::my_colleagues::profile","uid":3867984,"sequence":8,"event_type":"track-view"},{"identifier":"colleagues::my
@brupm
brupm / cors-nginx.conf
Last active August 29, 2015 14:27 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
#!/bin/sh
test_document="{
\"text\": \"HEAR the sledges with the bells, / Silver bells! / What a world of merriment their melody foretells! / How they tinkle, tinkle, tinkle, / In the icy air of night! / While the stars, that oversprinkle / All the heavens, seem to twinkle / With a crystalline delight; / Keeping time, time, time, / In a sort of Runic rhyme, / To the tintinnabulation that so musically wells / From the bells, bells, bells, bells, / Bells, bells, bells— / From the jingling and the tinkling of the bells.\"
}"
if curl -fs -X HEAD localhost:9200/top-terms; then
echo "Clear the old test index"
curl -X DELETE localhost:9200/top-terms; echo "\n"
fi