Skip to content

Instantly share code, notes, and snippets.

View pierot's full-sized avatar
🏠
Working from home

Pieter Michels pierot

🏠
Working from home
View GitHub Profile
@pierot
pierot / test.md
Created September 5, 2022 14:36
Markdown test

Lijnen met harde enters:

A

B

C


@pierot
pierot / README.md
Created February 25, 2022 08:13 — forked from okaufmann/README.md
Fix `warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` error on Raspberry PI

Run the following:

echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-line'
Plug 'andyl/vim-textobj-elixir'
" Snippets
if has('nvim')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'rstacruz/vim-ultisnips-css'
endif
@pierot
pierot / Cowboy.erl
Last active October 20, 2020 12:55
Cowboy error
Ranch listener AppWeb.Endpoint.HTTP had connection process started with :cowboy_clear:start_link/4 at #PID<0.31303.0> exit with reason:
{
:function_clause,
[
{
:cowboy_http,
:commands,
[
{
:state,
@pierot
pierot / datadog.yml
Created October 31, 2019 09:50
datadog docker
- name: Datadog installation production
hosts: prod
become: yes
roles:
- datadog
vars:
datadog_api_key: "xxxx"
datadog_site: "datadoghq.eu"
datadog_agent_version: "1:6.13.0-1"
datadog_checks:
@pierot
pierot / keybase.md
Last active September 9, 2019 19:02
keybase.md

Keybase proof

I hereby claim:

  • I am pierot on github.
  • I am pierot (https://keybase.io/pierot) on keybase.
  • I have a public key whose fingerprint is CFB5 D11D A76A FE46 A548 AF2B 98A1 DDF2 02A3 B53B

To claim this, I am signing this object:

@pierot
pierot / Reset Postgres sequence auto increment.sql
Last active July 25, 2019 07:25
Reset Postgres sequence auto increment
ALTER SEQUENCE name_id_seq RESTART WITH 10000;
SET @rank:=0;
UPDATE users SET email = CONCAT('test+', @rank:=@rank+1, '@test.be') WHERE id > 3
@pierot
pierot / Redis.conf
Created March 27, 2019 07:16
Redis config
daemonize yes
pidfile /var/run/redis/redis_6377.pid
port 6377
bind 127.0.0.1
timeout 180
# TCP keepalive.
#
# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence
# of communication. This is useful for two reasons:

Local

SSH to remote server

Remote

Exec command

netstat -ntlap | grep LISTEN

Discover two ports: epmd (eg 4369) and beam.smp (eg 33397)

Disconnect from remote server