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
[{A4BB2687-E63E-F424-F9F3-18D739053798}-DlgOrder] | |
Dlg0={A4BB2687-E63E-F424-F9F3-18D739053798}-SdWelcome-0 | |
Count=6 | |
Dlg1={A4BB2687-E63E-F424-F9F3-18D739053798}-SdAskDestPath-0 | |
Dlg2={A4BB2687-E63E-F424-F9F3-18D739053798}-SdStartCopy2-0 | |
Dlg3={A4BB2687-E63E-F424-F9F3-18D739053798}-SdAskDestPath-1 | |
Dlg4={A4BB2687-E63E-F424-F9F3-18D739053798}-SdStartCopy2-1 | |
Dlg5={A4BB2687-E63E-F424-F9F3-18D739053798}-SdFinish-0 | |
[{A4BB2687-E63E-F424-F9F3-18D739053798}-SdWelcome-0] | |
Result=1 |
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
[pagelink page="8" title="Link Title" class="link-class"] |
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 | |
/** | |
* PHP Anonymous Object | |
*/ | |
class AnObj | |
{ | |
protected $methods = array(); | |
public function __construct(array $options) |
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
#!/bin/sh | |
# shell script to rename a virtual machine in ESXi | |
VOLNAME=$1 | |
DIRNAME=$2 | |
OLDNAME=$3 | |
NEWNAME=$4 | |
VM_DIRPATH="/vmfs/volumes/$VOLNAME/$DIRNAME" | |
f_OK() { |
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
#include "dynamicarray.h" | |
using namespace std; | |
DynamicArray::DynamicArray() { | |
DynamicArray::DynamicArray(5); | |
} | |
DynamicArray::DynamicArray(int initSize) { | |
size = initSize; |
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
/* Small */ | |
@media (max-width: @breakpoint-small-max) { | |
[class*='uk-push-small-'], | |
[class*='uk-pull-small-'] { position: relative; } | |
/* | |
* Push | |
*/ |
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
# Fail2Ban filter for SoftEther authentication failures | |
# Made by quixrick and Nobody | |
# Thanks to quixrick from Reddit! https://reddit.com/u/quixrick | |
# Further reference: http://www.vpnusers.com/viewtopic.php?f=7&t=6375&sid=76707e8a5a16b0c9486a39ba34763901&view=print | |
[INCLUDES] | |
# Read common prefixes. If any customizations available -- read them from | |
# common.local | |
before = common.conf |
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
/* Given table 'zipcodes' with columns: | |
zipcode, latitude, longitude. | |
Find zipcodes within radius from given zipcode. | |
EXAMPLE: | |
Coordinates for zip 91326 and radius 25 mi: | |
*/ | |
SET @location_lat = 34.2766, | |
@location_lon = -118.544; | |
SELECT zipcode, ( 3959 * acos( cos( radians(@location_lat) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(@location_lon) ) + sin( radians(@location_lat) ) * sin( radians( latitude ) ) ) ) AS distance |
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
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity.Migrations; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
/// <summary> |
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 sendXmlOverPost($url, $xml) { | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
// For xml, change the content-type. | |
curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); |
OlderNewer