Skip to content

Instantly share code, notes, and snippets.

View kivlor's full-sized avatar

Andrew Gallagher kivlor

View GitHub Profile
@kivlor
kivlor / main.ts
Created September 29, 2023 09:31
deno + transformers.js
import {
env,
pipeline,
} from "https://cdn.jsdelivr.net/npm/@xenova/transformers";
env.backends.onnx.wasm.numThreads = 1;
const classifier = await pipeline(
"text-classification",
"Xenova/distilbert-base-uncased-finetuned-sst-2-english",
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Andrew Gallagher 🧔🏻‍♂️",
"label": "Maker, Coder, Tourist, Geek",
"email": "[email protected]",
"url": "https://kivlor.com",
"profiles": [
@kivlor
kivlor / keybase.md
Created September 11, 2019 05:27
keybase.md

Keybase proof

I hereby claim:

  • I am kivlor on github.
  • I am kivlor (https://keybase.io/kivlor) on keybase.
  • I have a public key ASDYz9fyf5ROxnPPuQKTKbwafJk8VbRffIJIwCBc4sbrcQo

To claim this, I am signing this object:

@kivlor
kivlor / Terminus.sublime-settings
Created April 11, 2019 23:54
Terminus.sublime-settings
{
"theme": "user",
"user_theme_colors": {
"background": "#0F1419",
"foreground": "#E6E1CF",
"caret": "white",
"selection": "#121E27",
"selection_foreground": "#E6E1CF",
"00": "#000000", // black
"01": "#F5878B", // red
@kivlor
kivlor / Default (OSX).sublime-keymap
Created April 11, 2019 23:53
Default (OSX).sublime-keymap
[
{ "keys": ["alt+`"], "command": "toggle_terminus_panel" },
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
@kivlor
kivlor / ayu-dark.terminal
Last active November 27, 2024 22:22
Ayu Dark theme for Terminal.app
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4wNTg4MjM1Mjk0IDAuMDc4NDMxMzcy
NSAwLjA5ODAzOTIxNTcAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@kivlor
kivlor / Preferences.sublime-settings
Last active January 9, 2024 06:51
Sublime Preferences
{
"bold_folder_labels": true,
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store",
"._.DS_Store"
],
"folder_exclude_patterns":
@kivlor
kivlor / ticker.php
Created June 16, 2015 01:07
Silly little ticker...
<?php
$iteration = 0;
$ttl = 5;
$tickerCharacters = ['|','\\','-','/'];
while ($ttl > 0) {
$ttl -= 0.05;
time_nanosleep(0, 50000000);
echo "\033[1D";
<?php
use Illuminate\Console\Command;
class DebugCommand extends Command
{
/**
* The console command name.
*
* @var string

After an apt-get upgrade on my Forge box, both php and nginx got upgraded, and while browsing my sites, PHP FPM was being hit by nginx, but it returned nothing, zilch, nada.

Nothing on laravel.log.

Something in the nginx log:

10.10.10.10 - - [23/Sep/2014:11:52:09 -0300] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"