Skip to content

Instantly share code, notes, and snippets.

@alextakitani
alextakitani / post_install.sh
Last active March 15, 2024 15:59
Montagem de ambiente dev linux #linux
#atualizado para Tuxedo OS 2 ( Ubuntu 22.04 )
# como usar:
# Clique ali em cima no botão raw
# salve o arquivo no seu disco.
# abra o terminal na pasta onde vc baixou o arquivo.
# de permissão de execução chmod +x post_install.sh
# rode:
# ./post_install.sh
# coloque sua senha
@alextakitani
alextakitani / gist:6413691
Last active March 10, 2019 22:25
cedilha em taclado us-internacional, no mint 18
Editar
sudo xed /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache
sudo xed /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache
Adicionar :en na linha "cedilla"
sudo xed /usr/share/X11/locale/en_US.UTF-8/Compose
substituir "ć" por "ç" e "Ć" por "Ç". ( Contrl + h )
@alextakitani
alextakitani / up_postgres.sh
Last active October 5, 2016 19:29
Upgrade postgres ubuntu
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-9.6 postgresql-contrib-9.6 libpq-dev
cd /tmp
@alextakitani
alextakitani / alias.txt
Created March 14, 2014 22:38
Alias ZSH
alias dm='rake db:migrate'
alias dmt='rake db:migrate && rake db:test:prepare'
alias dmp='RAILS_ENV=production rake db:migrate'
alias rc='rails c'
alias rg='rails g'
alias rcp='RAILS_ENV=production rails c'
alias rs='rails s'
alias rsp='RAILS_ENV=production rails s'
alias zdm='zeus rake db:migrate'
alias zdmt='zeus rake db:migrate && zeus rake db:test:prepare'
@alextakitani
alextakitani / upgrade-postgres-11-to-12.md
Last active March 17, 2021 05:22 — forked from delameko/upgrade-postgres-9.5-to-9.6.md
Upgrading PostgreSQL from 10 to 11 on Ubuntu 18.04

TL;DR

sudo apt-get install -y postgresql-12 postgresql-server-dev-12 postgresql-contrib-12 libpq-dev postgresql-12-hypopg
sudo pg_dropcluster 12 main --stop
sudo pg_upgradecluster 11 main
sudo pg_dropcluster 11 main
@alextakitani
alextakitani / cloudSettings
Last active February 28, 2020 18:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-28T18:54:45.200Z","extensionVersion":"v3.4.3"}
@alextakitani
alextakitani / link.txt
Created April 29, 2019 18:46
Client Fortinet Linux
@alextakitani
alextakitani / demo_data.json
Created November 23, 2019 22:17
demo_data
{'2017-05-13': 2, '2017-05-14': 5}
@alextakitani
alextakitani / gist:b430958327bc44954f2a1b486141d64d
Last active December 26, 2023 14:40
Upgrade postgresql 14 to 16
# remember to remove old dbs, old extensions and stuff like that, it all adds up to the time it's going to take
# this works fine for 15 also
sudo apt-get install postgresql-16 postgresql-server-dev-16
# mine neededs hypopg
cd /tmp
curl -L https://github.com/HypoPG/hypopg/archive/1.1.4.tar.gz | tar xz
cd hypopg-1.1.4