Skip to content

Instantly share code, notes, and snippets.

@foull
foull / ping_servers.sh
Last active February 29, 2024 22:00
ping_servers.sh
#!/bin/bash
# Ensure at least one server is provided
if [ "$#" -eq 0 ]; then
echo "Please provide at least one server as an argument."
exit 1
fi
# Loop through all provided servers
for server in "$@"

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@foull
foull / mongo-create-user.js
Last active May 6, 2021 07:59
NodeJS - MongoDB - creating new user with admin privileges
var MongoClient = require('mongodb').MongoClient
//
// config
//
var mongoPort = '27017'
var mongoHost = 'localhost'
var dbName = 'dbName'
@foull
foull / keybase.md
Created June 15, 2016 06:58
keybase.md

Keybase proof

I hereby claim:

  • I am foull on github.
  • I am fou (https://keybase.io/fou) on keybase.
  • I have a public key whose fingerprint is 984B 1A23 1383 37BE 2833 441A FA43 23B7 9A37 0257

To claim this, I am signing this object:

@foull
foull / gist:47eee227ec383ad118e3
Created November 15, 2015 15:58 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
Handlebars.registerHelper('t', function(i18n_key) {
i18n_key = Handlebars.Utils.escapeExpression(i18n_key);
var result = I18n.t(i18n_key);
return new Handlebars.SafeString(result);
});