Skip to content

Instantly share code, notes, and snippets.

View pacohigh's full-sized avatar
🎯
Focusing

Pascal Lanoix pacohigh

🎯
Focusing
View GitHub Profile
fr:
admin:
js:
true: Vrai
false: Faux
is_present: Est présent
is_blank: Est vide
date: Date ...
between_and_: Entre le ... et le ...
today: "Aujourd'hui"
@pacohigh
pacohigh / puma_systemd_setup.md
Last active May 16, 2020 10:35 — forked from PelagicDev/puma_systemd_setup.md
Ubuntu Rails & Puma Server setup
@pacohigh
pacohigh / sha256-hmac.md
Created February 18, 2020 05:04 — forked from jasny/sha256-hmac.md
Hashing examples in different languages

Example inputs:

Variable Value
key the shared secret key here
message the message to hash here

Reference outputs for example inputs above:

| Type | Hash |

@pacohigh
pacohigh / clean.sh
Created August 14, 2019 05:57 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@pacohigh
pacohigh / slack_notify.rake
Created July 11, 2017 09:36 — forked from davestevens/slack_notify.rake
Capistrano Slack integration.
# Capistrano Task that hooks into `deploy:finished` to send a message to Slack
#
# 1. Setup a Slack Incoming Webhook Integration (https://api.slack.com/incoming-webhooks)
# 2. Put the Webhook URL in an Environment variable (SLACK_WEBHOOK_URL)
# 3. Place this file in `lib/capistrano/tasks`
#
# This will then create a new message in the channel on deployment, including who, what and where information
require "net/http"
require "json"