Skip to content

Instantly share code, notes, and snippets.

function XMLHttpRequest() {
var progIDs = [
"Msxml2.ServerXMLHTTP.6.0",
"Msxml2.ServerXMLHTTP.5.0",
"Msxml2.ServerXMLHTTP.4.0",
"Msxml2.ServerXMLHTTP.3.0",
"Msxml2.ServerXMLHTTP",
"Microsoft.ServerXMLHTTP",
"Msxml2.XMLHTTP.6.0",
"Msxml2.XMLHTTP.5.0",
function sendmail(from, to, sub, text, server, port, auth, user, pass) {
var obj = WScript.CreateObject("CDO.Message");
var str = "http://schemas.microsoft.com/cdo/configuration/";
obj.Configuration.Fields.Item(str + "sendusing") = 2;
if (typeof(server) != "undefined") {
obj.Configuration.Fields.Item(str + "smtpserver") = server;
}
if (typeof(port) != "undefined") {
obj.Configuration.Fields.Item(str + "smtpserverport") = port;
{
"builders": [
{
"type": "virtualbox",
"vm_name": "freebsd64-92r",
"boot_wait": "15s",
"disk_size": 4096,
"guest_os_type": "FreeBSD_64",
"iso_checksum": "cde180e3c5e3e370c97598a4feccb5b4",
"iso_checksum_type": "md5",
{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "freebsd64-100r",
"boot_wait": "15s",
"hard_drive_interface": "sata",
"disk_size": 4096,
"guest_os_type": "FreeBSD_64",
"iso_checksum": "fd25619fa0d69c29bea8347b1070ac75",
{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "debian32-wheezy",
"boot_wait": "5s",
"hard_drive_interface": "sata",
"disk_size": 4096,
"guest_os_type": "Debian",
"iso_checksum": "528e1a7315da1bbf50bd4d187880a519",
{
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "freebsd64-101rc1",
"boot_wait": "15s",
"hard_drive_interface": "sata",
"disk_size": 4096,
"guest_os_type": "FreeBSD_64",
"iso_checksum": "694b7415a0ec11b34374f51682358fed",
#!/bin/sh
#
# Run Script
# wget -qO - "https://git.io/vUGQt" | sudo sh
# Edit Script
# wget -q --content-disposition "https://git.io/vUGQt"
#
set -e
@takumin
takumin / patch-2.5.4-w32.diff
Created August 23, 2015 03:49
GNU Patch 2.5.4 for W32 Dos Version.
diff --git backupfile.c backupfile.c
index 7f4da17..029bd7a 100644
--- backupfile.c
+++ backupfile.c
@@ -65,8 +65,10 @@ char *malloc ();
#endif
#ifndef HAVE_DECL_GETENV
+#ifndef WIN32
char *getenv ();
package main
import (
"log"
"net/http"
"regexp"
"strconv"
"time"
"github.com/PuerkitoBio/goquery"
# Maintainer: Thomas Krug <t.krug@elektronenpumpe.de>
# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
pkgname=pulseview
pkgver=0.3.0
pkgrel=1
pkgdesc="A Qt based logic analyzer GUI for sigrok."
arch=('i686' 'x86_64')
url="http://sigrok.org/wiki/Main_Page"
license=('GPL3')