You can set up a server on a VPS somewhere, or run one on your own network on a VM.
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
/** | |
* @author Juliano Castilho <[email protected]> | |
* ES6 conversion by [email protected] | |
*/ | |
import React from 'react'; | |
import ClassNames from 'classnames'; | |
class AffixWrapper extends React.Component { | |
constructor() { |
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
#!/usr/bin/env node | |
var Qs = require('qs'), | |
params = 'params=goHere', | |
parse = Qs.parse(params); | |
console.log(parse); |
Find that process thats using the port you want:
lsof -i :4000
If you don't care and just want to kill it:
sudo fuser -k 80/tcp
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, |
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
#!/usr/bin/env node | |
console.log('this is a growl test script to play with node and growl'); | |
if (process.argv[3]) { | |
// how to grab arguments from the command line | |
console.log('The arguments are: ', process.argv); | |
} else { | |
console.log('No arguments. Try running growlfun with some arguments'); | |
} |
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
# nodejs http server | |
```javascript | |
var http = require('http'); | |
var path = require('path'); | |
var url = require('url'); | |
var fs = require('fs'); | |
var port = 4020; | |
var extensions = { |
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
# pip should only run in when virtualenv is currently activated | |
export PIP_REQUIRE_VIRTUALENV=true | |
# cache pip-installed packages to avoid re-downloading | |
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache | |
alias profile='vim ~/.bash_profile' | |
alias rehash='source ~/.bash_profile' | |
alias show='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder' |