Started building sites ...
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "/"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "/"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags/frontend"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags/frontend"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags/javascript"
ERROR 2017/01/13 12:15:21 Failed to normalize URL string. Returning in = "tags/javascript"
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
[Unit] | |
Description=Raddit application | |
After=network.target | |
[Service] | |
Type=simple | |
User=ubuntu | |
WorkingDirectory=/home/ubuntu/raddit | |
ExecStart=/bin/bash -lc 'puma' | |
Restart=always |
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
# Switch to workspace or directly into a workspace directory if any is found | |
function ws() { | |
# $1 is the target directory | |
target_dir=$1 | |
# We start searching from the workspace dir, you need to adjust this when | |
# adding the script to your own .bash_profile or .bashrc | |
cd ~/workspace | |
# -maxdepth is the max directories to go "down" | |
# head -n1 gives back the first result | |
workspace_path=$(find -maxdepth 3 -type d -name "*$target_dir*" | head -n1) |
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
_git_prompt() { | |
local ref="$(command git symbolic-ref -q HEAD 2>/dev/null)" | |
if [ -n "$ref" ]; then | |
echo " (${ref#refs/heads/})" | |
fi | |
} | |
_failed_status() { | |
[ "$PIPESTATUS" -ne 0 ] && printf "$" | |
} |
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
###################################################################### | |
# convert_posts # | |
# # | |
# A bash script to convert Jekyll-style files into Handlebar files. # | |
# # | |
# Reads the current directory, searches for all *.md files and # | |
# then replaces the first line with # | |
# --- # | |
# date: $DATE # | |
# # |
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 | |
# | |
# Display usage info | |
vhost-usage() { | |
cat <<"USAGE" | |
Usage: vhost [OPTIONS] <name> | |
-h|--help this screen | |
-pub to create the webhost root in ~/www/name/public/ | |
-url to specify a local address, default is http://name.local |
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
A collection of useful Links. | |
### VIM | |
[Fixing Solarized Color Sheme for Ubutun](http://www.reversiblean.com/vim-ubuntu-color-scheme-fix/) | |
### Node/NPM/etc. | |
[Creating and Publishing a Node Module](https://quickleft.com/blog/creating-and-publishing-a-node-js-module/) | |
A curated list by Eric Elliott and friends. Suggest links in the comments below.
This is a very exclusive collection of only must-have JavaScript links. I'm only listing my favorite links. Nothing else makes the cut. Feel free to suggest links if you think they're good enough to make this list. The really curious should feel free to browse the comments to find other links. I can't guarantee the quality of links in the comments.
Some of these links are affiliate links, meaning that if you make a purchase, I might earn a little money. This has absolutely no bearing on whether or not links make the list. None, whatsoever. However, it does allow me more resources to fight poverty with code. Every little bit counts.
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
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//; s/[;&|]\s*alert$//'\'')"' | |
# | |
# Example Usage: | |
# sudo apt-get update; alert | |
# | |
# will sent a notification when the update is finished. |
NewerOlder