View install_postman.sh
#!/bin/bash
cd /tmp || exit
echo "Downloading Postman ..."
wget https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
echo "Installing to opt..."
if [ -d "/opt/Postman" ];then
sudo rm -rf /opt/Postman
View Contributing to Open Source
Why should I contribute?
Students gain:
- skills
- real world experience
- understanding of programming disciplines and best practices
- contacts
- exposure
organizations gain:
- new contributions & contributors
View links.txt
View .tmux.conf
# 0 is too far from ` ;)
# set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
View .editorconfig
[*.js]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2
View Preferences.sublime-settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
{
"Seti_ClosedFolder_remove": true,
"Seti_show_group_arrows": true,
"always_show_minimap_viewport": true,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"auto_complete_triggers":
[
{
View subl2.sh
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
/usr/local/sublime-text-2/sublime_text --help
else
/usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 &
fi"
echo "${SCRIPT}" > "/usr/local/bin/subl2"
chmod +x "/usr/local/bin/subl2"
ln -s /usr/local/sublime-text-2/sublime_text /usr/bin/sublime-text2
View node-express-cors-middleware.js
app.use(express.methodOverride());
// ## CORS middleware
//
// see: http://stackoverflow.com/questions/7067966/how-to-allow-cors-in-express-nodejs
var allowCrossDomain = function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization');
View sublime-text-3.sh
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime_text_3/sublime_text
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
View controllersSpec.js
describe('Unit: Testing Owner PublicationListCtrl', function() {
beforeEach(angular.mock.module('incidentapp_worker'));
var publicationListCtrl, scope, publicationList;
beforeEach(angular.mock.inject(function ($controller, $rootScope, $location) {
publicationList = {};
scope = $rootScope.$new();
publicationListCtrl = $controller('PublicationListCtrl', {