Skip to content

Instantly share code, notes, and snippets.

View notsidney's full-sized avatar

Sidney Alcantara notsidney

View GitHub Profile
@notsidney
notsidney / README.md
Created January 30, 2023 22:34
macOS Catalina VirtualBox VM on Windows 11 with AMD Ryzen 5 2600
@notsidney
notsidney / kernel_panic.txt
Created November 28, 2022 12:20
Kernel panic M1 Pro 2022-11-28
panic(cpu 1 caller 0xfffffe0019ca10bc): busy timeout[0], (90s): 'IOSurfaceRootUserClient' (1,1800001) @IOService.cpp:5663
Debugger message: panic
Memory ID: 0x1
OS release type: User
OS version: 22A400
Kernel version: Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000
Fileset Kernelcache UUID: 77E9C3A3ABA03579EA7079CB9A46E811
Kernel UUID: 873931BD-15AF-3C0D-BFC0-8113C998EFC0
Boot session UUID: 81F595C1-B03E-4B50-94BE-B949024AC8F3
iBoot version: iBoot-8419.41.10
@notsidney
notsidney / ExampleModal.tsx
Last active December 8, 2021 01:06
Jotai atomWithHash example
import { useAtom } from "jotai";
import { modalOpenAtom } from "./atoms";
function ExampleModal() {
const [open, setOpen] = useAtom(modalOpenAtom);
return (
<Dialog
open={open}
onClose={() => setOpen(false)}
...
@notsidney
notsidney / Unleashed.js
Last active November 17, 2021 05:58 — forked from simonbs/Unleashed.js
Scriptable widget that counts down to Apple's Unleashed event on October 18th (small widget)
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: apple-alt;
const TITLE = ""
const DATE = "2021-10-18T17:00:00Z"
const BG_IMG_URL = "https://i.ibb.co/1rXjnVN/bg-500w.png"
const TITLE_IMG_URL = "https://i.ibb.co/qYH3Y9w/text.png"
const TITLE_IMG_SIZE = new Size(110, 20)
const LINK = "https://www.youtube.com/watch?v=exM1uajp--A"
@notsidney
notsidney / ProjectContext.tsx
Last active October 5, 2021 04:21
How to useRef to Fix React Performance Issues — Gists
import { SideDrawerRef } from 'SideDrawer'
export function ProjectContextProvider({ children }) {
const sideDrawerRef = useRef<SideDrawerRef>();
return (
<ProjectContext.Provider value={{ sideDrawerRef }}>
{children}
</ProjectContext.Provider>
)
@notsidney
notsidney / neutral_buildings.mrules
Created March 5, 2019 11:50
Maperitive ruleset to render buildings based off Neutralmap & Google Maps styles
// origin: https://wiki.openstreetmap.org/wiki/User:Planemad/neutralmap
// Neutralmap - Maperitive rule file
// Style brief : To create a map style that is suitable as a base map for overlaying and highlighting data over it
// Style preview : http://www.flickr.com/photos/arunganesh/5104440951/
// Author: Arun Ganesh http://wiki.openstreetmap.org/wiki/User:Planemad
// 22 Oct 2010 - Still in development
features
lines
@notsidney
notsidney / scanlevel.sh
Created September 1, 2018 15:07
Fix scanned pages by changing levels using imagemagick
cd $1
for filename in ./Scan*.jpeg; do
echo $filename
convert "$filename" -level 40%,78% "$(basename "$filename" .jpeg)-L.jpeg"
done