Skip to content

Instantly share code, notes, and snippets.

View nalmeida's full-sized avatar

Nicholas nalmeida

View GitHub Profile
@nalmeida
nalmeida / status.sh
Last active June 15, 2023 17:58
Test HTTP Status Code using cURL
#!/bin/bash
# status.sh
# source: https://stackoverflow.com/questions/6136022/script-to-get-the-http-status-code-of-a-list-of-urls
while read LINE; do
curl -o /dev/null --silent --head --write-out "%{http_code} $LINE\n" "$LINE"
done < url-list.txt
@nalmeida
nalmeida / docker-help.md
Created November 13, 2020 20:29 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@nalmeida
nalmeida / Class.js
Last active November 4, 2022 15:54
Node / JS
// from: https://medium.com/backticks-tildes/understanding-method-chaining-in-javascript-647a9004bd4f
class Arithmetic {
constructor() {
this.value = 0;
}
sum(...args) {
this.value = args.reduce((sum, current) => sum + current, 0);
return this;
}
@nalmeida
nalmeida / twittermute.txt
Created January 27, 2020 17:58 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
# Increase PDF font size for Kindle
1. Download k2pdfopt from https://www.willus.com/k2pdfopt
2. Change the chmod: $ chmod 755 ./k2pdfopt
3. $ ./k2pdfopt ./shape-up-to-opt.pdf -ds 1.4
(Press ENTER after entering in the CLI menu to run)
Source:
* https://www.youtube.com/watch?v=ddilW4cK08s
* Using Amazon / Kindle Editor for .docx files: https://www.amazon.com/Kindle-Create/b?ie=UTF8&node=18292298011
@nalmeida
nalmeida / machine-setup
Last active October 16, 2015 14:01
Setting up a new Mac
# Based on @mcarneiro setup: https://gist.github.com/mcarneiro/fba0e7f68ada9cf48108#file-machine-setup
# Install the following software manually via App Atore
# - Xcode
# - Microsoft remote desktop
# - Sonicwall mobile connect (VPN)
# - Evernote
# Configuration
# ---------------
@nalmeida
nalmeida / gist:cc57495cd963f42147c7
Created February 13, 2015 14:36
Browser Support Table
## Browser Support
<table>
<tbody>
<tr>
<td><img src="http://ie.microsoft.com/testdrive/ieblog/2010/Sep/16_UserExperiencesEvolvingthebluee_23.png" height="40"></td>
<td><img src="http://img3.wikia.nocookie.net/__cb20120330024137/logopedia/images/d/d7/Google_Chrome_logo_2011.svg" height="40"></td>
<td><img src="http://media.idownloadblog.com/wp-content/uploads/2014/06/Safari-logo-OS-X-Yosemite.png" height="40"></td>
<td><img src="http://th09.deviantart.net/fs71/200H/f/2013/185/e/b/firefox_2013_vector_icon_by_thegoldenbox-d6bxsye.png" height="40"></td>
<td><img src="http://upload.wikimedia.org/wikipedia/commons/d/d4/Opera_browser_logo_2013.png" height="40"></td>

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
var $ = (function (dollar) {
if (dollar) {
return dollar;
}
return function (selector) {
return Array.prototype.slice.call(document.querySelectorAll(selector));
};
}(window.$));
<style type="text/css">
.title {
color:red;
}
.square {
background:yellow;
border:1px solid red;
text-align:center;
}