-
Install mingw32 compilation tools
sudo apt-get install mingw32
-
Download and extract latest pthreads-win32 (pthreads-w32-2---release.tar.gz)
wget -o - ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.tar.gz | tar xfz
| #! /bin/bash | |
| # | |
| # Program : mingw32-node-configure | |
| # Authors : Nathan Rajlich (nathan@tootallnate.net) | |
| # Michael Aaron Safyan (michaelsafyan@gmail.com) | |
| # Adam Malcontenti-Wilson (adman.com@gmail.com) | |
| # Synopsis : This program runs the "configure" script for Node.js. | |
| # An install prefix of "/usr/i586-mingw32msvc" is assumed. |
Install mingw32 compilation tools
sudo apt-get install mingw32
Download and extract latest pthreads-win32 (pthreads-w32-2---release.tar.gz)
wget -o - ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.tar.gz | tar xfz
| /* | |
| * Omegle Command Prompt Chat Client | |
| * ================================= | |
| * Version 1.0 by adammw111 | |
| * Requires Node.JS | |
| */ | |
| var net = require('net'); | |
| var OMEGLE_HOST = 'cardassia.omegle.com'; | |
| var OMEGLE_PORT = 1365; |
| #!/usr/bin/env node | |
| var http = require('http'); | |
| var state = 1; | |
| http.createServer(function(req, res) { | |
| if (req.url == '/redirme') res.writeHead(302, {'Location':'/redir' + state}); | |
| if (req.url == '/cacheme') res.writeHead(302, {'Location':'/redir' + state, 'Cache-Control': 'max-age=120'}); | |
| if (req.url == '/changestate') state++; |
| #define BASE2DIGITS_TO_BASE10DIGITS(a) (unsigned)((a * 2.40823997) + 1) | |
| #define NUMDIGITS(type) BASE2DIGITS_TO_BASE10DIGITS(sizeof(type)) | |
| #define UINTBUFFERSIZE (NUMDIGITS(unsigned int) + 2) |
| #!/usr/bin/env python | |
| import xml.dom.minidom | |
| import feedparser | |
| import re | |
| import subprocess | |
| import sys | |
| import os | |
| import urllib2 | |
| PLAYLIST_ID = sys.argv[1] |
| var http = require('http'), | |
| net = require('net'), | |
| url = require('url'), | |
| util = require('util'); | |
| var server = http.createServer(); | |
| server.listen(8080); | |
| server.on('request', function(request, response) { | |
| console.log(request); | |
| try { |
| import curses | |
| import time | |
| ch = ord("#") | |
| symbols = { | |
| '0': [(0,0),(0,1),(0,2),(0,3),(1,0),(2,0),(3,0),(4,0),(4,1),(4,2),(4,3),(3,3),(2,3),(1,3)], | |
| '1': [(1,1),(0,2),(1,2),(2,2),(3,2),(4,2),(4,1),(4,3)], | |
| '2': [(1,0),(0,1),(0,2),(1,3),(2,2),(3,1),(4,0),(4,1),(4,2),(4,3)], | |
| '3': [(0,0),(0,1),(0,2),(1,3),(2,1),(2,2),(2,3),(3,3),(4,0),(4,1),(4,2)], | |
| '4': [(0,0),(1,0),(2,0),(2,1),(2,2),(2,3),(0,3),(1,3),(3,3),(4,3)], | |
| '5': [(0,3),(0,2),(0,1),(0,0),(1,0),(2,0),(2,1),(2,2),(3,3),(4,2),(4,1),(4,0)], |
| #!/usr/bin/env node | |
| var net = require('net'), | |
| spawn = require('child_process').spawn; | |
| var server = net.createServer(function(socket) { | |
| socket.write("Connected to <insert program here> Server\r\n"); | |
| var proc = spawn("<insert program here>"); | |
| socket.pipe(proc.stdin); | |
| proc.stdout.pipe(socket); | |
| proc.on('end', function() { | |
| socket.end(); |
| /* | |
| * CLI Tool to download streamable songs from SoundCloud API | |
| * Requires Node.js, Flow-JS and cli libraries | |
| */ | |
| var cli = require('cli').enable('status'), | |
| fs = require('fs'), | |
| flow = require('flow'), | |
| path = require('path'), | |
| SC = require('./node-soundcloud.js'); |