Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
o/

João Silva Xplouder

:octocat:
o/
View GitHub Profile
@sergeyklay
sergeyklay / journalctl-cheatsheet.md
Last active Sep 8, 2021
Journalctl Cheat Sheet
View journalctl-cheatsheet.md

Journalctl Cheat Sheet

Configuration

Permissions

To see messages from other users and the system as well as performing various log operations from a regular user add it to the group:

sudo usermod -aG systemd-journal $USER
@voxxit
voxxit / USING-VAULT.md
Last active Apr 19, 2021
Consul + Vault + MySQL = <3
View USING-VAULT.md
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200

Initializing a vault:

vault init
@ChuckJHardy
ChuckJHardy / gource.md
Last active Apr 5, 2021
Gource Recording for Git
View gource.md

Install Gource

brew install gource

Convert Quicktime Movie to Animated Gif

ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

Record Gource

@theDisco
theDisco / Vagrantfile
Created Sep 17, 2012
Vagrant setup for phalcon projects
View Vagrantfile
Vagrant::Config.run do |config|
config.vm.box = "squeeze32"
config.vm.network :hostonly, "192.168.50.100"
config.vm.forward_port 80, 8080
end
@fideloper
fideloper / app.js
Last active Oct 17, 2016
Using Event Emitter in your node modules
View app.js
var Fancy = require('FancyModule');
var mod = new Fancy();
mod.on('success', function(data) {
console.log(data); // { this_is_fancy:'indubitably' }
});