This file contains 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
setTimeout(function() {}, 1000); | |
var snmp = require ("./git/node-net-snmp/lib/"); | |
var target = '127.0.0.1'; | |
var version = snmp.Version3; | |
var oids = ['1.3.6.1.2.1.1.1.0']; | |
var session = snmp.createSession (target, { |
This file contains 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
############################################################################ | |
# TARGET: Target build directory | |
# INSTALL_DIR: Arduino IDE installation directory | |
# PORT: Arduino board port | |
# | |
# Retrieve the following data from: | |
# $(INSTALL_DIR)/hardware/arduino/avr/boards.txt | |
# | |
# UPLOAD_SPEED, UPLOAD_PROTOCOL, BUILD_MCU, BUILD_F_CPU, VARIANT | |
############################################################################ |
This file contains 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
/* | |
// Only use this one to get SVG codes from the captcha image, and populate the below codes list | |
(function() { | |
var paths = document.querySelectorAll("path:not([fill='none'])"); | |
var code = ""; | |
for (var p in paths) { | |
if (!paths.hasOwnProperty(p)) continue; | |
var idx = paths[p].getAttribute('d'); | |
idx = idx.replace(/[^A-Z]+/g, ''); |
This file contains 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
# Set these variables to the desired values | |
$SqlServer="SqlHost" # Server Hostname | |
$InstanceName="DbInst" # Database Instance | |
$Username="MyUser" # Username with backup permissions | |
$Database="EpicDB" # Name of database to backup | |
$LocalDir="C:\DB" # Local directory to use whilst creating backup | |
$Location="\\storage\EpicDB" # Location to move backup file to. Can be UNC or file path | |
############################################# | |
# Don't touch anything beyond this point... # |
This file contains 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() { | |
var formats = ytplayer.config.args.raw_player_response.streamingData.adaptiveFormats; | |
formats.sort(function(a, b) { | |
if (a.width > b.width) return -1; | |
if (a.width < b.width) return +1; | |
return 0; | |
}); | |
window.open(formats[0].url); |
This file contains 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
<?php | |
// This code is released into the public domain. | |
// I will not be held responsible for what this code does. | |
// I release myself of all legal responsibilites to this code. | |
/** These links helped in figuring this all out :) | |
* wp_xmlrpc_server::login | |
* https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-includes/class-wp-xmlrpc-server.php#L182 | |
* | |
* Support Forum link |
This file contains 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
/*** | |
* This will create 2 separate files: | |
* - Vimeo Rip.mp4 - The video file | |
* - Vimeo Rip.mp4a - The associated audio | |
* | |
* This is by Vimeo's design. These files simply need to be merged. | |
* The following ffmpeg command may be used: | |
* | |
* ffmpeg -i ".\Vimeo Rip.mp4" -i ".\Vimeo Rip.mp4a" -c copy output.mp4 | |
*/ |
This file contains 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(){ | |
// Quick check to make sure we are in a vimeo document | |
if (window.location.host !== 'player.vimeo.com') { | |
console.error('Not in a vimeo player document. Try again...'); | |
return; | |
} | |
if (!window.playerConfig) { | |
// Vimeo URLs are stored in a script tag after the player element in the body | |
var s = document.getElementById("player").nextElementSibling; |
This file contains 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
<?php | |
/** | |
* Ensure you define the following constants - for example: | |
* | |
* define('SMTP_FROM', 'noreply@example.com'); | |
* define('MAIL_TO', 'rcpt@example.com'); | |
* | |
* // If using SMTP transport: | |
* define('SMTP_HOST', 'smtp.example.com'); | |
* define('SMTP_PORT', '25'); // 25, 465, 587, 2525 are common options |
OlderNewer