note: I converted this script into the much easier to install joinopenwifi module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title> | |
| <script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script> | |
| <script type="text/javascript" charset="utf-8"> | |
| $(function () { | |
| var extractToken = function(hash) { |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| #!/bin/sh | |
| # 初期設定 | |
| WORK=$HOME/Builds/build-essential | |
| PREFIX=$HOME/local | |
| export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
| # ソースコードのダウンロード | |
| if [ ! -d $WORK/src ] ; then | |
| mkdir src |
| ./node_modules/.bin/$@ |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| # memcached requires libevent | |
| cd /usr/local/src | |
| curl -L -O http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.17-stable.tar.gz | |
| tar -xvzf libevent-2.0.17-stable.tar.gz | |
| cd libevent-2.0.17-stable* | |
| ./configure | |
| make | |
| sudo make install | |
| # Compile memcached utility |
note: I converted this script into the much easier to install joinopenwifi module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
| <?php | |
| /** | |
| * Changelog Markdown | |
| * | |
| * This is a script to transform GIT LOG into a cute format Changelog.md | |
| * | |
| * To use, set executable permissions to this file and execute: | |
| * $ php changelog.php > CHANGELOG.md | |
| * | |
| * Copyright (c) 2014 João Pinto Neto |
| # Put .bashrc_ps1 in your home (~/) and at the end of your .bashrc add follow lines: | |
| # if [ -f ~/.bashrc_ps1 ]; then | |
| # . ~/.bashrc_ps1 | |
| # fi | |
| RED='\[\e[0;31m\]' | |
| BRED='\[\e[1;31m\]' | |
| BLUE='\[\e[0;34m\]' | |
| BBLUE='\[\e[1;34m\]' | |
| CYAN='\[\e[0;36m\]' |
| # Delete the possibly existing autocomplete test index | |
| curl -X DELETE localhost:9200/autocomplete_test | |
| # Put the config of the autocomplete index | |
| curl -X PUT localhost:9200/autocomplete_test -d ' | |
| { | |
| "settings" : { | |
| "index" : { | |
| "analysis" : { | |
| "analyzer" : { |