Skip to content

Instantly share code, notes, and snippets.

View codejake's full-sized avatar

Jake Shaw codejake

View GitHub Profile
@intellectronica
intellectronica / 0.README.md
Last active December 12, 2025 06:01
Filez - Ad-Hoc File Sharing Using GitHub Pages

GitHub Pages File-Sharing

If you sometimes find yourself needing to share a file over HTTP, there are not many file-sharing solutions you can use.

This action works by publishing files via GitHub Pages behind an obscure prefix path. It updates the repository README with the URLs, so that you have links to the published files.

You can keep the repository secret, and the files are public but semi-secret, so you can share them without concern that other files will be discovered.

@ezekg
ezekg / mac.ahk
Created October 22, 2024 20:11
AutoHotKey script to help ease the pain of switching from macOS to Windows
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Docs:
; https://autohotkey.com/docs/Hotkeys.htm
; https://autohotkey.com/docs/KeyList.htm
; Ref https://autohotkey.com/board/topic/60675-osx-style-command-keys-in-windows/
@sophiawisdom
sophiawisdom / index.html
Last active December 10, 2025 22:24
Screenshot hoster. Download these two files, put your screenshots in the same directory, run lister.py, and you have a fun website that shows all your screenshots.
<html>
<title> vibe images <!-- change this to whatever you want! --> </title>
<!-- Add any text here if you so desire; the images won't be drawn over it. -->
<div id="container">
</div>
<script>
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
@dhh
dhh / linux-setup.sh
Last active October 30, 2025 22:31
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@dangle
dangle / Obsidian Todoist Script.md
Last active August 11, 2025 08:29
Script for use with Obsidian to pull in a snapshot of a day from Todoist

Obsidian Todoist Script

Description

This takes a day in YYYY-MM-DD format and can be called using the CustomJS plugin with either the Dataview plugin or the Templater plugin.

Styling

In order to get nicer styling, copy the todoist.css file to .obsidian/snippets and enable it under Settings → Appearance.

@yzdbg
yzdbg / auto-dr.md
Last active November 3, 2023 17:11

Automating Daily Reports, because fuck it, really...

Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.

So now, there's a scribe for that :

auto-dr-

Code

@githubfoam
githubfoam / fortigate - webfilter - url filter cheat sheet
Last active April 22, 2025 08:54
fortigate - webfilter - url filter cheat sheet
#=====================================================================
# Log&Report - Security Events - Web Filter, filter a specific URL. v7.2.3
#launch CLI from fortigate GUI
config webfilter profile #Configure Web filter profiles
get #list all profiles
edit profile-name
show # see current setting
set log-all-url enable
set extended-log enable
@senko
senko / toplang.py
Last active November 3, 2022 21:40
Get the most popular languages on Hacker News
#!/usr/bin/env python
#
# Calculate top list of programming languages based on HN stories/comments/points
# More info: https://blog.senko.net/relative-popularity-of-programming-languages-on-hacker-news
from datetime import datetime, timedelta
from json import dump, load
from os.path import join, exists
from tempfile import gettempdir
from typing import Optional
@marcoarment
marcoarment / S3.php
Last active July 8, 2025 17:39
A simple PHP class to perform basic operations against Amazon S3 and compatible services.
<?php
/*
A simple PHP class to perform basic operations against Amazon S3 and compatible
services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules.
Copyright 2022 Marco Arment. Released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights