Skip to content

Instantly share code, notes, and snippets.

View thalysonalexr's full-sized avatar
:electron:
Coding solutions

Thalyson Rodrigues thalysonalexr

:electron:
Coding solutions
View GitHub Profile
@thalysonalexr
thalysonalexr / install_monaco_font.sh
Created January 9, 2018 21:41 — forked from rogerleite/install_monaco_font.sh
Install Monaco font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
@thalysonalexr
thalysonalexr / composer.json
Created April 25, 2019 15:44 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
@thalysonalexr
thalysonalexr / settings.json
Last active August 20, 2020 12:29
Minhas configurações atuais do VSCode 🚀
{
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.tabSize": 2,
"editor.lineHeight": 26,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"explorer.compactFolders": false,
@thalysonalexr
thalysonalexr / cron-docker-prune.sh
Last active January 21, 2023 16:18
Cron to prune dangling images and trash of docker
#!/bin/sh
0 */2 * * * /usr/bin/docker rmi $(docker images -f dangling=true -a -q) && /usr/bin/docker system prune -f
@thalysonalexr
thalysonalexr / alter-start-sequence.sql
Created January 21, 2023 16:17
Change initial sequence to last value of Oracle table
ALTER TABLE ROLES MODIFY ID GENERATED BY DEFAULT ON NULL AS IDENTITY (START WITH LIMIT VALUE);
@thalysonalexr
thalysonalexr / expose-wsl-port.ps1
Created January 21, 2023 16:19
Expose port in Windows from WSL2
netsh interface portproxy set v4tov4 listenport=6379 listenaddress=0.0.0.0 connectport=6379 connectaddress=$(wsl hostname -I)
@thalysonalexr
thalysonalexr / gen-pub-priv-key.sh
Created January 21, 2023 16:21
Generate public and private key RSA with ssh-keygen
#!/bin/sh
# $1 argument for filename
ssh-keygen -t rsa -b -f $1
@thalysonalexr
thalysonalexr / init-swarm.sh
Created January 21, 2023 16:31
Init docker swarm with default IP address
#!/bin/sh
docker swarm init --advertise-addr 172.16.0.24 --default-addr-pool 172.61.1.0/24
@thalysonalexr
thalysonalexr / start-docker-on-boot.sh
Created January 21, 2023 16:33
Start Docker Service on system boot
#!/bin/sh
sudo systemctl enable docker.service
sudo systemctl enable containerd.service