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.Collections.ObjectModel; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Mono.Linq.Expressions { | |
public static class PredicateBuilder { |
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
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
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 | |
// Same approach as of `fizzbuzz_short.php` but with some generators love so you | |
// can fizzbuzz all you want without blowing up you memory. HOW GREAT IS IT? | |
$fbrange = function ($start, $stop) { | |
if ($start > 0) { | |
for ($n = $start; $n < $stop; $n++) { | |
yield (($f=!($n%3))|($b=!($n%5)))?($f?'Fizz':'').($b?'Buzz':''):"$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
<?php | |
namespace Nrk\Monolog\Handler; | |
use Predis\Client; | |
use Monolog\Logger; | |
use Monolog\Formatter\JsonFormatter; | |
use Monolog\Handler\AbstractProcessingHandler; | |
/** |
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
require 'Win32API' | |
module NetworkDrive | |
CONNECT_UPDATE_PROFILE = 0x1 | |
RESOURCE_CONNECTED = 0x1 | |
RESOURCE_GLOBALNET = 0x2 | |
RESOURCETYPE_DISK = 0x1 | |
RESOURCEDISPLAYTYPE_SHARE = 0x3 | |
RESOURCEUSAGE_CONNECTABLE = 0x1 | |
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
-- A function in Lua similar to PHP's print_r, from http://luanet.net/lua/function/print_r | |
function print_r ( t ) | |
local print_r_cache={} | |
local function sub_print_r(t,indent) | |
if (print_r_cache[tostring(t)]) then | |
print(indent.."*"..tostring(t)) | |
else | |
print_r_cache[tostring(t)]=true | |
if (type(t)=="table") then |
Export your public key:
keybase pgp export > keybase-public.key
Export your private key:
keybase pgp export --secret > keybase-private.key
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
NewerOlder