Skip to content

Instantly share code, notes, and snippets.

View cocoastorm's full-sized avatar
😤
Doing my best to be unphased

Khoa Nguyen cocoastorm

😤
Doing my best to be unphased
  • Surrey, BC, Canada
View GitHub Profile
@cocoastorm
cocoastorm / go.lua
Created February 6, 2024 06:36
NeoVim Format & Goimports
-- formatting
vim.api.nvim_create_autocmd('BufWritePre', {
pattern = { "*.go" },
callback = vim.lsp.buf.format,
})
-- goimports
vim.api.nvim_create_autocmd('BufWritePre', {
pattern = '*.go',
callback = function ()
@cocoastorm
cocoastorm / gist:cee729da3b4a19c9fdf44160459965bb
Created February 5, 2024 00:43
replay-sorcery-void-package-template
# Template file for 'replay-sorcery'
pkgname=replay-sorcery
version=0.6.0
revision=1
hostmakedepends="pkg-config"
makedepends="ffmpeg-devel"
depends="ffmpeg libdrm"
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=Release"
make_cmd=make
@cocoastorm
cocoastorm / elfster-real-wishlist-urls.js
Last active November 25, 2023 05:16
Elfster Real Wishlist URLs
// ==UserScript==
// @name Replace Wishlist Links - elfster.com
// @namespace Violentmonkey Scripts
// @match https://www.elfster.com/profile/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=elfster.com
// @version 0.1
// @description strip elfster wishlist links so it doesn't die with an adblocker :skull:
// @author cocoastorm <[email protected]>
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2
// ==/UserScript==
@cocoastorm
cocoastorm / lord-coco-todo.md
Last active April 9, 2024 17:13
coco says he will do at some point

Coco To Do

Books to Read

Anime to Watch

  • Serial Experiments Lain
  • Haikyuu
  • Re:Zero S2 and onwards
  • Boku no Hero
@cocoastorm
cocoastorm / clips.js
Created October 3, 2022 05:38
twitch clips manager - grab download urls of clips
(function() {
function findClips() {
const rows = document.querySelectorAll('[data-a-target=clips-manager-table-row-container]');
if (!rows.length) {
console.error('no clip rows found');
}
const clips = [];
@cocoastorm
cocoastorm / init.vim
Last active May 11, 2022 23:51
neovim config
" =================================================================
" settings
" =================================================================
" middle-click paste with mouse
set mouse=v
" number of columns occupied by tab character
set tabstop=2
" multiple spaces as tabstops so <BS> does the right thing
@cocoastorm
cocoastorm / humble-download-list.js
Created April 9, 2021 05:44
humble bundle export download links to a list
// ==UserScript==
// @name humble export downloads as a text file
// @version 1
// @match https://www.humblebundle.com/downloads*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js
// ==/UserScript==
(function() {
'use strict';
@cocoastorm
cocoastorm / .gitignore
Last active April 1, 2020 23:24
Toast UI Editor Widget (Test) Example
.cache/
dist/
node_modules/
@cocoastorm
cocoastorm / better.go
Last active November 9, 2019 00:10
Dumb Golang Month "Parse"
package main
import (
"fmt"
"time"
)
func main() {
const (
input = "November 2019"
@cocoastorm
cocoastorm / rtake
Created October 9, 2019 21:26
Random Take
rtake () {
dirname=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
dirname="$(date +%Y-%m-%d)_$1_$dirname"
fulldir="$HOME/junk/$dirname"
echo $fulldir
mkdir -p "$fulldir"
cd "$fulldir"
}