I hereby claim:
- I am kphrx on github.
- I am kpherox (https://keybase.io/kpherox) on keybase.
- I have a public key whose fingerprint is 55A2 8362 FE57 05D3 FF27 0136 C047 51C2 BFA2 F62D
To claim this, I am signing this object:
const OTPAuth = require('otpauth'); | |
require('dotenv').config(); | |
module.exports = function(issuer) { | |
let secrets = process.env.TOTP_SECRETS.split(' ') | |
, secretsDict = secrets.reduce((previous, current) => { | |
let secret = current.split(':'); | |
previous[secret[0]] = secret[1]; | |
return previous; | |
}, {}) |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Arr; | |
class IsAssocForCollectionServiceProvider extends ServiceProvider | |
{ |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Collection; | |
class RejectWithKeyCollectionServiceProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ |
#!/bin/bash | |
# Need scope: public_repo | |
GITHUB_TOKEN=<token> | |
GITHUB_USER=<username> | |
# Get latest version from git repository | |
#cd $(dirname $0) | |
# |
// ==UserScript== | |
// @name Set scroll position to game of KanColle | |
// @namespace https://gist.github.com/kPherox | |
// @version 1.1.1 | |
// @description Jump to game frame top of KanColle. | |
// @author kPherox <[email protected]> | |
// @match http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854* | |
// @run-at document-end | |
// @grant GM_addStyle | |
// @updateURL https://gist.github.com/kphrx/fb4f21c1bbfa6bcbb484c74824866e65/raw/jump-to-game-of-kancolle.user.js |
DELETE FROM map_image_2nd | |
WHERE EXISTS ( | |
SELECT 1 | |
FROM map_image_2nd AS m | |
WHERE map_image_2nd.area_id = m.area_id | |
AND map_image_2nd.info_no = m.info_no | |
AND map_image_2nd.suffix = m.suffix | |
AND map_image_2nd.version < m.version | |
); |
I hereby claim:
To claim this, I am signing this object:
#!/usr/local/bin/fontforge | |
i=1 | |
while ( i<$argc ) | |
Open($argv[i]) | |
Print($argv[i]) | |
Select("`") | |
beforeClass = GlyphInfo("Class") | |
SetGlyphClass("base") |
#!/bin/sh | |
OLD_CONTAINER=$(docker ps --all --format "{{.Names}}" --filter name=web) | |
docker-compose pull web | |
docker-compose up -d --no-deps --scale web=2 --no-recreate web | |
NEW_CONTAINER=$(docker ps --all --format "{{.Names}}" --filter name=web | grep -v "$OLD_CONTAINER") | |
echo -n "Starting $NEW_CONTAINER ... " |