-
Add to
.gitignore:node_modules public -
Add to your app
dependenciesofpackage.json:
| // api/controllers/AuthController.js | |
| var passport = require('passport'); | |
| var AuthController = { | |
| login: function (req,res) | |
| { | |
| res.view(); | |
| }, |
| // api/controllers/TestController.js | |
| var TestController = { | |
| // since the policy will have run, we can now use req.form as "normal" | |
| formtest: function(req, res) | |
| { | |
| if (!req.form.isValid) | |
| { | |
| // Handle errors |
| // vim: ft=javascript: | |
| /*jslint sloppy: true, vars: true, white: true, nomen: true, browser: true */ | |
| /*global SpreadsheetApp, UiApp, UrlFetchApp, Utilities */ | |
| /* | |
| * A script to automate requesting data from an external url that outputs CSV data. | |
| * | |
| * Adapted from the Google Analytics Report Automation (magic) script. | |
| * @author nickski15@gmail.com (Nick Mihailovski) | |
| * @author ianmlewis@gmail.com (Ian Lewis) | |
| */ |
| sudo -i | |
| cd | |
| apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y | |
| wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz | |
| tar xzvf ImageMagick-6.8.9-1.tar.gz | |
| cd ImageMagick-6.8.9-1/ | |
| ./configure --prefix=/opt/imagemagick-6.8 && make | |
| checkinstall |
Add to .gitignore:
node_modules
public
Add to your app dependencies of package.json:
| SET foreign_key_checks = 0; | |
| -- Last 5 Search Terms / Top 5 Search Terms | |
| TRUNCATE TABLE catalogsearch_fulltext; | |
| TRUNCATE TABLE catalogsearch_query; | |
| TRUNCATE TABLE catalogsearch_result; | |
| -- Dashboard stats (e.g. "Most Viewed Products" etc) | |
| TRUNCATE TABLE report_compared_product_index; | |
| TRUNCATE TABLE report_event; |
| #!/bin/sh | |
| HAMACHI_DST=/opt/logmein-hamachi | |
| if [ -x /opt/logmein-hamachi/uninstall.sh ] ; then | |
| echo Removing previous version .. | |
| /opt/logmein-hamachi/uninstall.sh | |
| fi | |
| echo Copying files into $HAMACHI_DST .. |
| function whois_query($domain) { | |
| // fix the domain name: | |
| $domain = strtolower(trim($domain)); | |
| $domain = preg_replace('/^http:\/\//i', '', $domain); | |
| $domain = preg_replace('/^www\./i', '', $domain); | |
| $domain = explode('/', $domain); | |
| $domain = trim($domain[0]); | |
| // split the TLD from domain name |
| Description='Eduroam York' | |
| Interface=wlp4s0 | |
| Connection=wireless | |
| Security=wpa-configsection | |
| IP=dhcp | |
| Priority=1 | |
| ESSID=eduroam | |
| WPAConfigSection=( | |
| 'ssid="eduroam"' | |
| 'key_mgmt=WPA-EAP' |
| #!/usr/bin/env ruby | |
| ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__) | |
| require 'bundler/setup' | |
| require 'dbus' | |
| class Wicd | |
| NOT_CONNECTED = 0 | |
| CONNECTING = 1 | |
| WIRELESS = 2 | |
| WIRED = 3 |