Skip to content

Instantly share code, notes, and snippets.

View GllmR's full-sized avatar
๐Ÿ’พ
!

GllmR

๐Ÿ’พ
!
  • Living Data
View GitHub Profile
@arbales
arbales / handlebars-formatTextForHTML.coffee
Created January 22, 2012 00:08
Replace URLs with links and unicode emoji with images.
LINK_DETECTION_REGEX = /(([a-z]+:\/\/)?(([a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel|local|internal))(:[0-9]{1,5})?(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-zA-Z0-9!$&'()*+.=-_~:@/?]*)?)(\s+|$)/gi
EMOJI_DIRECTORY = "/path/to/assets/emoji/20x20"
# Handlebars is presumed, but you could swap out
ESCAPE_EXPRESSION_FUNCTION = Handlebars.Utils.escapeExpression
MARKSAFE_FUNCTION = (str) -> new Handlebars.SafeString(str)
# Emoji unicode chars become images.
@aemkei
aemkei / LICENSE.txt
Last active December 31, 2025 22:36 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active March 28, 2026 17:18
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@sinewalker
sinewalker / sticks.bas
Last active May 25, 2020 21:10
Pick-up Sticks: early 8-bit graphics hack (BASIC)
5 REM This is for Amstrad CPC Locomotive BASIC
10 CLS
20 WHILE 1>0
30 GRAPHICS PEN 15*RND
40 MOVE 640*RND,400*RND
50 DRAW 640*RND,400*RND
60 WEND
@keztricks
keztricks / gbdc_mac_dev.md
Last active December 17, 2025 08:33
Developing in gbdc on Mac

I've been following GamingMonsters's gbdk Gameboy Dev tutorial (it's rad! https://www.youtube.com/playlist?list=PLeEj4c2zF7PaFv5MPYhNAkBGrkx4iPGJo).

Was doing this for my own reference, but thought I may as well flesh out & share I'm on MacOS, so have put together anywhere I've had to do something different, I'm up to Session 10, so will update if anything further comes along as we progress.

Quick heads up, before you run anything here make sure you know what it's doing, this all worked fine and dandy for me, but I'm not making any promises!

"Hello World" - Part 1

Installing gdbk

@tomhicks
tomhicks / plink-plonk.js
Last active December 26, 2025 08:35
Listen to your web pages
@Phate6660
Phate6660 / rust recommendations and alternatives.md
Last active May 29, 2024 12:35
My growing list of Rust programs to use.
@david082321
david082321 / tw.sh
Last active September 12, 2025 13:13 — forked from XargonWan/japanese_locale_enabler.sh
Steam Deck ไธญๆ–‡ๅŒ–
#!/bin/bash
# ๅœ็”จ ๅ”ฏ่ฎ€ๆจกๅผ
sudo steamos-readonly disable
# ๅˆๅง‹ๅŒ– Pacman Keys
sudo pacman-key --init
sudo pacman-key --populate archlinux
# ้‡ๆ–ฐๅฎ‰่ฃ glibc
sudo pacman -S glibc --noconfirm
# ็ทจ่ผฏ locale.gen
sudo sed -i "s%#zh_TW.UTF-8 UTF-8%zh_TW.UTF-8 UTF-8%" /etc/locale.gen
@davidedmundson
davidedmundson / PlasmaNested.sh
Last active March 13, 2026 20:35
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
## whilst being launched by plasma-session
mkdir $XDG_RUNTIME_DIR/nested_plasma -p
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
#!/bin/sh
@olaurendeau
olaurendeau / README.md
Last active November 27, 2025 14:15
Incubateur des territoires - Shai-Hulud Vulnerability Checker

๐Ÿ›ก๏ธ Shai-Hulud Vulnerability Checker

Script bash rapide pour dรฉtecter les paquets npm compromis par l'attaque supply-chain Shai-Hulud 2.0 (novembre 2024).

๐Ÿš€ Utilisation

# Rendre le script exรฉcutable
chmod +x check-shai-hulud-fast.sh