Skip to content

Instantly share code, notes, and snippets.

View sgnl's full-sized avatar
Do you agree to share your cookies?

Ray Farias sgnl

Do you agree to share your cookies?
  • Honolulu, Hawaii
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sgnl on github.
  • I am sgnl ( on keybase.
  • I have a public key ASDIs__WPhdiU_6GI9-vhTAff-pwxdo-OAzH5mt3p8wg9go

To claim this, I am signing this object:

sgnl /
Last active August 17, 2021 21:25
Bug Report Format

Bug Report format

Describe what is wrong?

some description that

Describe what is the expected behavior?

some description of good behavior!

Include a "Steps to Reproduce" section describe:

  1. Go to URL
sgnl / .startup_check_swapfile
Created April 29, 2021 23:59
Ubuntu Check for Swapfile or Create it (4096 default)
swapon_results=$(swapon -s)
if [[ $swapon_results != 0]]; then
dd if=/dev/zero of=/swapfile count=4096 bs=1M
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
sgnl /
Last active February 10, 2022 11:25
Telegraf MySQL Plugin Installation Guide


The [MySQL Input Plugin][8] for Telegraf gathers data from a MySQL server.


Create user for the Telegraf agent to connect with

For connections that are local to the MySQL server, use localhost as your hostname:

sgnl /
Last active April 9, 2020 09:48
Jenkins Dashboard Process Notes (WIP)
sgnl /
Created September 19, 2018 20:41
Better POSTMAN app installation on Ubuntu
  1. Download the fucking *.tar.gz file from their site
  2. do this shit...
sudo tar -xzf postman.tar.gz -C /opt
rm postman.tar.gz
sudo ln -s /opt/Postman/Postman /usr/bin/postman

launch postman via your favorite fucking launcher

terraform init
- initializes
- installs modules
- aws
- gce
terraform plan
- test
- audit mode
sgnl /
Last active March 28, 2018 22:26
Wootric webhooks data shapes

Decline event shape

  "timestamp": "2018-03-28 15:06:23 -0700",
  "event_name": "created",
  "decline": {
    "updated_at": "2018-03-28 15:06:20 -0700",
    "survey_id": "XXXXXXXXX",
 "origin_url": "http://localhost:3000/",
window.onload = _ => {
pumpTheJam(randomItemList, 500)
const pumpTheJam = (randomItemList, initalValue) => {
setTimeout(function() {
const elementToRemove = placeRandomTextOnScreen(randomItemList)
setTimeout(_ => {
pumpTheJam(randomItemList, 500)
osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title" subtitle "subtitle"'