To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Simple async crawler/callback queue based on gevent.""" | |
| import traceback | |
| import logging | |
| import httplib2 | |
| import gevent |
| server { | |
| listen 80; | |
| server_name www.yupyupnope.com; | |
| rewrite ^/(.*) https://yupyupnope.com/$1 permanent; | |
| } | |
| server { | |
| listen 80; | |
| server_name yupyupnope.com; | |
| rewrite ^/(.*) https://yupyupnope.com/$1 permanent; |
| import java.io.*; | |
| import java.util.*; | |
| import sun.jvm.hotspot.memory.*; | |
| import sun.jvm.hotspot.oops.*; | |
| import sun.jvm.hotspot.debugger.*; | |
| import sun.jvm.hotspot.runtime.*; | |
| import sun.jvm.hotspot.tools.*; | |
| import sun.jvm.hotspot.utilities.*; | |
| public class DirectMemorySize extends Tool { |
| #!/usr/bin/env python | |
| from __future__ import division | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy import optimize | |
| from numpy import newaxis, r_, c_, mat, e | |
| from numpy.linalg import * | |
| def plotData(X, y): | |
| #pos = (y.ravel() == 1).nonzero() |
| #!/usr/bin/env python | |
| from __future__ import division | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy import optimize | |
| from numpy import newaxis, r_, c_, mat, e | |
| from numpy.linalg import * | |
| def plotData(X, y): | |
| pos = (y.ravel() == 1).nonzero() |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| import os, time, random | |
| from collections import defaultdict | |
| from System import Console, ConsoleColor, ConsoleKey | |
| from System.Threading import Thread, ThreadStart | |
| class Screen(object): | |
| red = ConsoleColor.Red; green = ConsoleColor.Green; blue = ConsoleColor.Blue;black = ConsoleColor.Black | |
| dimension = (21,39) | |
| def __update_input(self): | |
| mapping = defaultdict(lambda: None, |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask_httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |