This file contains hidden or 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
| """ | |
| Script to post a code snippet to PyBites CodeImag.es | |
| If you see other use cases (e.g. process a csv file with snippets), | |
| contact @bbelderbos on Twitter, thanks. | |
| """ | |
| from pprint import pprint as pp | |
| # pip install requests python-decouple | |
| import requests | |
| from decouple import config |
This file contains hidden or 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
| import concurrent.futures | |
| import os | |
| import re | |
| from timeit import timeit | |
| import requests | |
| URLS = 'urls' |
This file contains hidden or 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
| function Send-UdpDatagram | |
| { | |
| Param ([string] $EndPoint, | |
| [int] $Port, | |
| [string] $Message) | |
| $IP = [System.Net.Dns]::GetHostAddresses($EndPoint) | |
| $Address = [System.Net.IPAddress]::Parse($IP) | |
| $EndPoints = New-Object System.Net.IPEndPoint($Address, $Port) | |
| $Socket = New-Object System.Net.Sockets.UDPClient |
This file contains hidden or 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
| var request = require("request"), | |
| cheerio = require("cheerio"), | |
| url = "https://www.google.com/search?q=data+mining", | |
| corpus = {}, | |
| totalResults = 0, | |
| resultsDownloaded = 0; | |
| function callback () { | |
| resultsDownloaded++; |
This file contains hidden or 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 python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| A script to get the version of Python by which the file was compiled | |
| """ | |
| from __future__ import print_function | |
| import binascii | |
| import os |
This file contains hidden or 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
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
This file contains hidden or 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
| // Photoshop Script to Create iPhone Icons from iTunesArtwork | |
| // | |
| // WARNING!!! In the rare case that there are name collisions, this script will | |
| // overwrite (delete perminently) files in the same folder in which the selected | |
| // iTunesArtwork file is located. Therefore, to be safe, before running the | |
| // script, it's best to make sure the selected iTuensArtwork file is the only | |
| // file in its containing folder. | |
| // | |
| // Copyright (c) 2010 Matt Di Pasquale | |
| // Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
This file contains hidden or 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/ruby | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'nokogiri' | |
| require 'net/http' | |
| require 'uri' | |
| require 'amazon/aws/search' | |
| include Amazon::AWS |
This file contains hidden or 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
| ############################################################################# | |
| # Procedure: Watch-MoveRequests.PS1 | |
| # Author: Scott Vintinner | |
| # Last Edit: 4/30/2011 | |
| # Purpose: This script will monitor the mailbox move process. Moves should | |
| # be added to the queue using the following command: | |
| # | |
| # new-MoveRequest -Identity $identity -BadItemLimit 5 -Suspend:$true | |
| # | |
| # Alternately you could use my Start-SuspendedMoveRequests.PS1 script |
NewerOlder