Skip to content

Instantly share code, notes, and snippets.

View wochap's full-sized avatar
🎯
Focusing

Gean Marroquin wochap

🎯
Focusing
View GitHub Profile
@wochap
wochap / emojis.txt
Created March 9, 2025 00:06
emojis
😀 :grinning: :grinning_face:
😃 :smiley: :smiling_face_with_open_mouth:
😄 :smile: :smiling_face_with_open_mouth_and_smiling_eyes:
😁 :grin: :grinning_face_with_smiling_eyes:
😆 :laughing: :satisfied: :smiling_face_with_open_mouth_and_tightly_closed_eyes:
😅 :sweat_smile: :smiling_face_with_open_mouth_and_cold_sweat:
🤣 :rolling_on_the_floor_laughing:
😂 :joy: :face_with_tears_of_joy:
🙂 :slightly_smiling_face:
🙃 :upside_down_face: :upside_down_face:
@wochap
wochap / generate_patches.sh
Created December 25, 2024 03:03
generate DWL patches
#!/usr/bin/env bash
main_branch="v0.8-dev"
patch_branch=$(git branch --show-current)
patch_name="${patch_branch##*/}"
git format-patch --no-signature --stdout "${main_branch}..${patch_branch}" > "${patch_name}.patch" -- ':!*.patch'
git diff --patch "${main_branch}..${patch_branch}" > "${patch_name}-diff.patch" -- ':!*.patch'
@wochap
wochap / keycode.linux
Created March 16, 2024 17:05 — forked from rickyzhang82/keycode.linux
Key code for Linux
# /usr/share/BasiliskII/keycodes
#
# Basilisk II (C) 1997-2005 Christian Bauer
#
# This file is used to translate the (server-specific) scancodes to
# Mac keycodes depending on the window server being used.
#
# The format of this file is as follows:
#
# sdl <driver string>
# massively increase virtualized macOS by disabling spotlight.
sudo mdutil -i off -a
# since you can't use spotlight to find apps, you can renable with
# sudo mdutil -i on -a
sudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture ""
defaults write com.apple.Accessibility DifferentiateWithoutColor -int 1
defaults write com.apple.Accessibility ReduceMotionEnabled -int 1
@wochap
wochap / gnome_40_wayland_nvidia.nix
Last active March 30, 2025 01:20
Nixos config for wayland and nvidia 470
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
let
# Get the last working revision with nvidia 460.x
nixos-unstable-pinned = import (builtins.fetchTarball {
name = "nixos-unstable_nvidia-x11-470.57.02";
@wochap
wochap / shell.nix
Created June 24, 2021 15:28
React native nix shell config example
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
android = import (builtins.fetchTarball {
url = https://github.com/tadfisher/android-nixpkgs/archive/0c4e5a01dbd4c8c894f2186a7c582abf55a43c5e.tar.gz;
sha256 = "0x56nh4nxx5hvpi7aq66v7xm9mzn4b2gs50z60w8c3ciimjlpip8";
}) {
channel = "stable";
@wochap
wochap / example.vtt
Last active November 21, 2018 21:46
WEBVTT example
WEBVTT
00:01.000 --> 00:03.000
Caption is working
00:04.000 --> 00:07.000
Large Caption test Lorem ipsum dolor sit amet consectetur adipiscing elit enim urna, suspendisse ultrices quis fusce mus augue sed semper, eget rhoncus consequat facilisis platea bibendum nullam venenatis. Fames parturient senectus mollis taciti natoque lacinia cursus rutrum massa, nec quisque magna nibh cum fermentum odio tristique hendrerit sed, vehicula phasellus libero venenatis varius blandit duis facilisis. Eros etiam id luctus hac felis mauris inceptos, mus habitasse tortor ullamcorper fermentum ut natoque purus, nisi sem vulputate justo orci aliquam.
00:09.000 --> 00:10.000
Caption test
// getScript({ url, id }) {
// return new Promise(resolve => {
// const head = document.getElementsByTagName("head")[0];
// const script = document.createElement("script");
// let done = false;
// script.src = url;
// if (id) {
// script.id = id;
// }
// // attach handlers for all browsers
// getScript({ url, id }) {
// return new Promise(resolve => {
// const head = document.getElementsByTagName("head")[0];
// const script = document.createElement("script");
// let done = false;
// script.src = url;
// if (id) {
// script.id = id;
// }
// // attach handlers for all browsers