$ docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# --------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = (function (dollar) { | |
if (dollar) { | |
return dollar; | |
} | |
return function (selector) { | |
return Array.prototype.slice.call(document.querySelectorAll(selector)); | |
}; | |
}(window.$)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.title { | |
color:red; | |
} | |
.square { | |
background:yellow; | |
border:1px solid red; | |
text-align:center; | |
} |
NewerOlder