Skip to content

Instantly share code, notes, and snippets.

View lichti's full-sized avatar
👨‍💻
🏊🏻🚴🏻🏃🏻

Gustavo Lichti lichti

👨‍💻
🏊🏻🚴🏻🏃🏻
View GitHub Profile
@lichti
lichti / gdrive-linux.txt
Created September 1, 2018 16:31
Google Drive no linux
*google-drive-ocamlfuse*
https://github.com/astrada/google-drive-ocamlfuse/
https://github.com/astrada/google-drive-ocamlfuse/wiki
https://www.edivaldobrito.com.br/monte-google-drive-no-linux-com-o-google-drive-ocamlfuse/
https://github.com/astrada/google-drive-ocamlfuse/issues/288
https://software.opensuse.org/package/google-drive-ocamlfuse
@lichti
lichti / k8s-pi.md
Created February 15, 2018 14:34 — forked from alexellis/k8s-pi.md
K8s on Raspbian

K8s on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system Raspbian. Carry on using all the tools and packages you're used to with the officially-supported OS.

Pre-reqs:

  • You must use an RPi2 or 3 for Kubernetes
  • I'm assuming you're using wired ethernet (Wi-Fi also works)

Master node setup

@lichti
lichti / install-flameshot.sh
Created January 7, 2018 17:54
Install flameshot
GIT_URL=https://github.com/lupoDharkael/flameshot.git
GIT_BRANCH=v0.5.0
SRC_DIR=$(mktemp -d)
BIN_DIR=/usr/bin
xPWD=$(pwd)
sudo apt update \
&& sudo apt install -y git g++ build-essential qt5-qmake qt5-default qttools5-dev-tools \
@lichti
lichti / install_ts3.sh
Created October 30, 2017 19:14
Script to install Team Speak Client 3
#!/bin/bash
MAIN() {
VERSION=3.1.6
URLTS=http://dl.4players.de/ts/releases/${VERSION}/TeamSpeak3-Client-linux_amd64-${VERSION}.run
TMPFILE=$(mktemp).run
INSTALLDIR=${HOME}/.local/ts3
wget "$URLTS" -O ${TMPFILE}
@lichti
lichti / Description.md
Created September 9, 2017 00:04 — forked from juanje/Description.md
Limit Chrome from eating all the memory and CPU

I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.

As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:

group browsers {
    cpu {
#       Set the relative share of CPU resources equal to 25%
        cpu.shares = "256";
 }
@lichti
lichti / Warsaw-brwser.txt
Created June 26, 2017 13:28
warsaw-browser - Itau, CEF, BB e outros.
Imagem Docker para rodar um firefox com o warsaw configurado para acesso a bancos brasileiros.
É uma boa opção para acessar bancos através de GNU/Linux.
Have a nice day.
More Info:
https://hub.docker.com/r/lichti/warsaw-browser/
https://github.com/lichti/containers4docker/tree/master/warsaw-browser
@lichti
lichti / dply.co.md
Last active December 30, 2017 04:50
https://dply.co Your Linux Cloud Server in seconds

Your Linux Cloud Server in seconds Sign in with your GitHub account and create a cloud server. Use the ssh-keys in your Github account to log into your server. No credit card required.

1 CPU 512MB RAM 20 GB SSD DISK

https://dply.co

Share your project with the world!

@lichti
lichti / openssl.md
Created April 20, 2017 13:21
General OpenSSL Commands

General OpenSSL Commands

These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.

Generate a new private key and Certificate Signing Request

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info)

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt