Skip to content

Instantly share code, notes, and snippets.

@agsemenov
agsemenov / uaquotes.json
Created May 11, 2024 19:29
Quotes List in JSON Format UA
{
"quotes": [
{
"quote": "Мені важко говорити про те, що важливо для мене. Мене можна побачити тільки в діях.",
"author": "Леся Українка"
},
{
"quote": "Найголовнішим є не відчуття щастя, а наше прагнення до щастя.",
"author": "Тарас Шевченко"
},
@lyshie
lyshie / config-deb-i386.json
Last active May 11, 2024 20:34
Scratch Desktop (Scratch 3.0 Offline Editor) on GNU/Linux
{
"src": "/tmp/scratch-desktop/",
"dest": "/tmp/",
"arch": "i386",
"icon": "/tmp/scratch-desktop/resources/Icon.png",
"categories": [
"Education"
]
}
@jean-leonco
jean-leonco / _index.tsx
Last active May 11, 2024 20:32
Remix Simple Authentication
import { redirect, type LoaderFunctionArgs } from '@remix-run/node'
import { Form, useLoaderData } from '@remix-run/react'
import { sessionCookie } from '../session.server'
export async function loader({ request }: LoaderFunctionArgs) {
const cookieHeader = request.headers.get('Cookie')
const cookie = await sessionCookie.parse(cookieHeader)
if (!cookie) {
return redirect('/login')
}
@Heidi-Negrete
Heidi-Negrete / deploy.yml
Created November 2, 2023 17:09
Github Workflow configuration to deploy a Godot 4 game to Github Pages
name: "Publish to GitHub Pages"
env:
GODOT_VERSION: 4.1.2
on:
workflow_dispatch:
push:
branches:
- main
@tranquan
tranquan / xcode-keybindings-as-vscode.md
Last active May 11, 2024 20:30
Xcode KeyBindings as VSCode
@beauwilliams
beauwilliams / Vagrant-M1-Install.bash
Last active May 11, 2024 20:20
Run x86 VM's on Mac M1 arm using vagrant with qemu hypervisor
brew install vagrant qemu
#Due to dependency errors, we must install vbguest first..
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-qemu
#cd to working dir you like to keep your vagrant files
cd ~/VM-and-containers/VagrantMachines/M1-vagrantfiles/ubuntu18-generic-64/
#Create a vagrant file
$EDITOR Vagrantfile
@karpathy
karpathy / min-char-rnn.py
Last active May 11, 2024 20:19
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@JasonCanCode
JasonCanCode / NetworkLogger.swift
Last active May 11, 2024 20:19
Print out helpful information on network requests when debugging
import Foundation
#if DEBUG
/// Use this to print out helpful information on network requests when debugging.
/// The functions return strings so I can decide whether to use print statemens or custom breakpoints to log them.
public enum NetworkLogger {
static func cURLLog(request: URLRequest) -> String {
"\n🌎 \(request.cURL)\n"
@JasonCanCode
JasonCanCode / add_git_hooks.sh
Created January 21, 2021 17:28
Git commit hooks for running SwiftLint
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo "Running from" $DIR
ln -s $DIR/pre-commit $DIR/../.git/hooks/pre-commit
@PurpleVibe32
PurpleVibe32 / vmwk17key-5000keys-unchecked.txt
Created February 21, 2023 19:28
5000k+ vmware workstation pro 17 (untested)
4U612-DN31H-MJEJ0-0V0Z4-978HD
5G44H-ACH50-0J4C9-1VC5P-CY0QD
JC000-8G047-MJDF1-0H3E6-8QR5F
JV2NU-0XL5N-0J4Q8-0T0E6-8GH56
JZ6E0-4R1E0-HJ1Q0-1R8NH-3AK28
0Z48K-4X29Q-MJE80-113GK-C7K3A
HF4H0-46K80-MJ8D9-1KAZP-CKK12
NY69H-2N05P-HJ170-1V1ZM-CG222
4C45A-D8J0H-HJ5T0-1T25H-92A76
0Z4H2-0WK9K-4JE10-0T9G6-9C8M4