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 | |
class Auth extends TestCase | |
{ | |
private $auth_token; | |
// verify API response if invalid credentials | |
function test_invalid_credentials() | |
{ | |
$this->post('/authenticate', ['email' => 'false', 'password' => 'false']) |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my ( $csv, $date_low, $date_high ) = @ARGV; | |
# my $counter = 0; | |
open( my $csv_fh, '<', $csv ) or die "open $csv: $!\n"; | |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Getopt::Long; | |
use Pod::Usage; | |
$|=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
function Person( first, last ) { | |
this.firstName = first; | |
this.lastName = last; | |
} | |
Person.prototype.getInitials = function() { | |
let firstInitial = this.firstName.substring( 0, 1 ).toUpperCase(); | |
let lastInitial = this.lastName.substring( 0 , 1 ).toUpperCase(); | |
return firstInitial + lastInitial; | |
}; |
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
const request = require( 'request' ); | |
let options = { | |
url: 'https://api.propublica.org/congress/v1/115/senate/bills/passed.json', | |
headers: { | |
'X-API-Key': 'apikeygoeshere' | |
}, | |
json: true | |
}; |
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
Host github.com | |
IdentityFile ~/.ssh/id_rsa | |
User git |
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
### Keybase proof | |
I hereby claim: | |
* I am renderorange on github. | |
* I am renderorange (https://keybase.io/renderorange) on keybase. | |
* I have a public key ASBLxJ15x3md42ou3JxrLUzHyLtWAkVXRNc4QwJYHuoH8wo | |
To claim this, I am signing this object: |
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
# Mikrotik RouterOS Script to do proper uplink failover/failback (more reliable than Netwatch). | |
# Supports both Generic and PPPoE interfaces. | |
# Policy: read, write, policy, test | |
### Configuration ### | |
# Define Names of all Interfaces that will be checked: | |
:local "interface-names" { "internet-speedy";"internet-biznet" }; |
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
#!/usr/bin/env bash | |
progname=$(basename $0) | |
version="1.0 (2014-08-17)" | |
step=2 | |
function create_hash { | |
openssl dgst -sha1 -binary <<< "$1" | xxd -p | |
} |