Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #!/bin/sh | |
| # script to automate the load and export to CSV of an oracle dump | |
| # This script assumes: | |
| # * you have the vagrant published key available locally in your .ssh directory | |
| # * You have the Oracle VirtualBox image running locally | |
| # ** ssh port-forwarding is configured for host port 2022 -> guess port 22. | |
| set -e |
| # 1. Put this file to /etc/pf.conf | |
| # 2. Install init boot scripts using IceFloor then - http://www.hanynet.com/icefloor/ | |
| # I tried to use IceFloor to configure everything but it didn't work very well. | |
| # 3. Once done, you can confirm the rules were loaded with 'sudo pfctl -sr' | |
| # 4. At System Preferences -> Security -> Firewall -> Firewall Options, | |
| # check 'Block all incoming connections' to prevent annoying per-app dialogs. | |
| set skip on lo0 | |
| set block-policy drop |
| ''' | |
| Establish a socket connection through an HTTP proxy. | |
| Author: Fredrik Østrem <frx.apps@gmail.com> | |
| License: | |
| Copyright 2013 Fredrik Østrem | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
| documentation files (the "Software"), to deal in the Software without restriction, including without |
| license: mit |
| # Make mouse useful in copy mode | |
| setw -g mode-mouse on | |
| # Allow mouse to select which pane to use | |
| set -g mouse-select-pane on | |
| # Allow mouse dragging to resize panes | |
| set -g mouse-resize-pane on | |
| # Allow mouse to select windows |
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
| # Tutorial: http://mysshlog.co.uk/tutorials/Python-Simple-Dns-Server | |
| # Source: http://mysshlog.co.uk/download/Dns_Server_Python.py | |
| ## {{{ http://code.activestate.com/recipes/491264/ (r4) | |
| #Edited By MySSHLog.co.uk | |
| import socket | |
| import optparse | |
| import time | |
| class DNSQuery: | |
| def __init__(self, data): |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| # coding=utf-8 | |
| """ | |
| LICENSE http://www.apache.org/licenses/LICENSE-2.0 | |
| """ | |
| import datetime | |
| import sys | |
| import time | |
| import threading | |
| import traceback | |
| import SocketServer |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # rdesktop-gui | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are | |
| # met: | |
| # | |
| # * Redistributions of source code must retain the above copyright |