Skip to content

Instantly share code, notes, and snippets.

View wochap's full-sized avatar
🎯

Gean Marroquin wochap

🎯
View GitHub Profile
@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 July 9, 2023 22:43
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
@wochap
wochap / readme.md
Last active September 13, 2017 21:29
helpers

Format number to x digits

// source: https://stackoverflow.com/questions/8043026/javascript-format-number-to-have-2-digit
function leftPad(number, targetLength) {
    var output = number + '';
    while (output.length < targetLength) {
        output = '0' + output;
    }
    return output;
@wochap
wochap / index.md
Last active May 22, 2017 16:57
Auditoria SEO Platzi 16-05-17

To do

  • Lugares importantes para incluir mi keyword -> URL, Titulo, Descripcion, H1 y H2, Atributo alt en imagenes
  • Meta tags
  • Duplicacion de titulos
  • Titulos largos
  • Descripciones ausentes
  • Paginacion
  • Multiples idiomas
  • Sitemap