Skip to content

Instantly share code, notes, and snippets.

View paulozagaloneves's full-sized avatar

Paulo Jorge Zagalo das Neves paulozagaloneves

View GitHub Profile
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA-1 1920x1080
xrandr --output VGA-1 --mode 1920x1080
// This file was initially generated by Windows Terminal (Dev Build) 0.0.1.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://raw.githubusercontent.com/microsoft/terminal/master/doc/cascadia/profiles.schema.json",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"copyOnSelect": false,
@paulozagaloneves
paulozagaloneves / images.zip
Last active May 26, 2020 13:36
My Windows Terminal Configuration
This file has been truncated, but you can view the full file.
@paulozagaloneves
paulozagaloneves / settings.json
Created May 25, 2020 09:16
Windows Terminal Original Configuration
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@paulozagaloneves
paulozagaloneves / settings.json5
Created May 23, 2020 13:49 — forked from giggio/settings.json5
My Windows terminal config
// This file was initially generated by Windows Terminal (Dev Build) 0.0.1.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://raw.githubusercontent.com/microsoft/terminal/master/doc/cascadia/profiles.schema.json",
"defaultProfile": "{2606165a-a7a0-4ac4-8e8c-36dd487fc9cb}",
"copyOnSelect": false,
1 hostname elliot-01
2 echo elliot-01 > /etc/hostname
3 bash
4 vim /etc/modules-load.d/k8s.conf
5 curl -fsSL https://get.docker.com | bash
6 docker version
7 docker ps
8 apt-get update && apt-get install -y apt-transport-https
9 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
10 echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
@paulozagaloneves
paulozagaloneves / deploy-swarm.sh
Created March 9, 2020 21:46 — forked from lloydmeta/deploy-swarm.sh
Small bash script to make it easier to deploy/update a Docker Swarm cluster.
#!/usr/bin/env bash
set -e;
# Ths script
me="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")";
# Args
MANAGER_IP=$1
STACK_NAME=$2;
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@paulozagaloneves
paulozagaloneves / pom.xml
Created March 9, 2020 10:09 — forked from nwinkler/pom.xml
Combining the git-flow branching model and the Maven Release Plugin to play nice. Based on info found here: http://vincent.demeester.fr/2012/07/maven-release-gitflow/
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>group</groupId>
<artifactId>dummy</artifactId>
<name>Dummy Project</name>
<version>1.0.12</version>
<packaging>pom</packaging>
<scm>
<connection>scm:git:https://......</connection>
<tag>HEAD</tag>
version: '2.1'
services:
mysql:
image: mysql
restart: unless-stopped
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-pWp770521", "--silent"]
interval: 5s
timeout: 3s
retries: 5