Skip to content

Instantly share code, notes, and snippets.

Avatar
🎵
Music, the great communicator; use two sticks to make it in the nature

Kevin López Brante kddlb

🎵
Music, the great communicator; use two sticks to make it in the nature
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am kddlb on github.
  • I am kddlb (https://keybase.io/kddlb) on keybase.
  • I have a public key whose fingerprint is 5125 3B78 4B7D 0BAA 29D5 12E7 D162 A457 5D64 3105

To claim this, I am signing this object:

View dl.txt
This file has been truncated, but you can view the full file.
https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-06-19.gif
out=1978\06\19.gif
allow-overwrite=false
auto-file-renaming=false
https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-06-20.gif
out=1978\06\20.gif
allow-overwrite=false
auto-file-renaming=false
https://d1ejxu6vysztl5.cloudfront.net/comics/garfield/1978/1978-06-21.gif
View gist:2b83944b5d99dbcb090910fb5f433242
.\Streamlink.exe hls://91.215.156.52:1935/tv/ZsxGnmx0IA20170826/chunklist_w892750870_tkdGtl
bmR0aW1lPTE1MDM3OTgyODAmdGtzdGFydHRpbWU9MCZ0a2hhc2g9dkctYkYyaHI5MnVOZTJhQk9WSmRjOGhKN3FIOHlvV1RHSFEtckFJQXU1ND0=.m3u8 be
st
View tryjsil.cs
// Decompiled with JetBrains decompiler
// Type: SillyDate.Program
// Assembly: SillyDate, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 7D76919F-64D5-414B-8485-4C75047D30F9
// Assembly location: C:\Users\kevin\source\repos\SillyDate\SillyDate\bin\Debug\SillyDate.exe
using System;
using System.Collections.Generic;
using System.Text;
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace SillyDate
{
class Program
@kddlb
kddlb / thermalparser.js
Created Aug 15, 2017
JSON "markup" to ESC/POS
View thermalparser.js
exports.parseToControlCommands = function (ob) {
let ns = "";
ob.input.forEach(function (t, number, ts) {
if (typeof(t) === "string") {
ns = ns.concat(t)
} else {
switch (t.command) {
case "tab":
ns = ns.concat("\x09");
break;
View ZNCLog-Regex.md

Message: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] <(?'Nickname'.*)> (?'Message'.*)$

Notice: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] -(?'Nickname'.*)- (?'Message'.*)$

Joins: ^\[(?'Date'\d{2}:\d{2}:\d{2})\] \*\*\* (?'Happening'Joins): (?'Nickname'.*) \((?'Hostmask'(?'Username'.*)@(?'Hostname'.*))\)$

PartsOrQuits:

@kddlb
kddlb / README.txt
Created Jun 17, 2016
SoundFont List, as JSON
View README.txt
patchMappings:
[0 ,2]
^-Bank, ^-Program
@kddlb
kddlb / recipe.conf
Created May 13, 2016
NGINX recipe for Polr and PHP 7
View recipe.conf
location / {
try_files $uri $uri/ /index.php?$query_string;
rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1;
}
location ~ \.(php|phar)$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
View api_oneliner.php
<?php
if ($argc > 1) {
date_default_timezone_set("UTC");
function udate($format, $utimestamp = null) {
if (is_null($utimestamp)) {
$utimestamp = microtime(true);
}
You can’t perform that action at this time.