- ssh in to your Synology
$ vi /root/.profile
- prepend /opt/bin:/opt/sbin: to PATH so it looks like
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
replace the standard rdiff packages with symlinks: $ ln -s /opt/bin/rdiff-backup-2.6 /usr/bin/rdiff-backup
$ ln -s /opt/bin/rdiff-backup-statistics-2.6 /usr/bin/rdiff-backup-statistics
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
<script type="text/javascript"> | |
(function ($) { | |
$(function () { | |
var descriptionTemplate = "What URL were you on? Who were you logged in as? Is there anything else about your environment that is important (Browser, Browser Version)?\n\nh3. What did you expected it to do?\n\nh3. What did it actually do?\n\nh3. What are the detailed steps to recreate this behavior?\n\n# Step 1\n# Step 2\n# Step 3\n# ..."; | |
var updateDescription = function updateDescription($issueTypeField, $description) { | |
if ($issueTypeField.length > 0 && $description.length > 0) { | |
var issueType = $issueTypeField.get('selector') === '#issue-create-issue-type' ? $issueTypeField.html() : $issueTypeField.val(); | |
// Update description |
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
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} } |
This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.
- Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
- Run
npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react
from your project root. - Add
"extends": "eslint-config-airbnb"
to your .eslintrc
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
add-apt-repository -y ppa:ondrej/apache2 | |
apt-key update | |
apt-get update && apt-get upgrade | |
apt-get install apache2 |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
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
node --max-old-space-size=1024 my-node-script.js # increase to 1gb | |
node --max-old-space-size=2048 my-node-script.js # increase to 2gb | |
node --max-old-space-size=3072 my-node-script.js # increase to 3gb | |
node --max-old-space-size=4096 my-node-script.js # increase to 4gb | |
node --max-old-space-size=5120 my-node-script.js # increase to 5gb | |
node --max-old-space-size=6144 my-node-script.js # increase to 6gb | |
node --max-old-space-size=7168 my-node-script.js # increase to 7gb | |
node --max-old-space-size=8192 my-node-script.js # increase to 8gb |
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
# Taken from http://www.tekrevue.com/tip/how-to-completely-disable-notification-center-in-mac-os-x/ | |
# disable | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist | |
# enable | |
launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist |
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
#!/usr/bin/env ruby | |
# A quick script to download all your files from CloudApp. | |
# To run this just run the script passing your e-mail & password | |
# to the script, for example: | |
# | |
# gem install cloudapp_api | |
# ruby cloudapp-export.rb [email protected] mypassword | |
# |