- Make sure you have yo installed:
npm install -g yo - Run:
yo webapp - Install grunt-contrib-jade:
npm install grunt-contrib-jade --save-dev
This file contains hidden or 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 | |
| # git-standup: find out what you did yesterday (or last friday). | |
| # | |
| # Setup: | |
| # 1. Change AUTHOR if your git user doesn't match your unix account. | |
| # 2. Save somewhere on your path, make executable. | |
| # 3. git config --global alias.standup '!git-standup' | |
| # 4. Profit. | |
| # | |
| # Original idea via @paulgreg (https://twitter.com/paulgreg/status/248686055727972352) |
This file contains hidden or 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
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.
-
Edit
/etc/ssh/sshd_configand make sure to add the following at the end of the file:Match group filetransfer
ChrootDirectory %h
This file contains hidden or 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
| # First the end result of what we want: | |
| class Foo | |
| before_hook :whoa | |
| before_hook :amazing | |
| def test | |
| puts "This is kinda cool!" | |
| end |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>author</key> | |
| <string>Lars H. Nielsen (translated by Tony Kemp)</string> | |
| <key>name</key> | |
| <string>Wombat</string> | |
| <key>settings</key> | |
| <array> |