Skip to content

Instantly share code, notes, and snippets.

View vinyll's full-sized avatar
🗺️
Creating locally

Vincent Agnano vinyll

🗺️
Creating locally
View GitHub Profile
@mrlnc
mrlnc / carrier.plist
Created September 21, 2022 09:48
CountryBundle Germany, iOS 16.1 beta 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CellBroadcast</key>
<dict>
<key>AlertConfigurations</key>
<dict>
<key>Configuration_de</key>
<dict>
@mrlnc
mrlnc / carrier.xml
Created June 8, 2022 21:57
iOS FR-ALERT Configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CellBroadcast</key>
<dict>
<key>AlertTypes</key>
<dict>
<key>SevereAlerts(Level3)</key>
<dict>
@huytd
huytd / wordle.md
Last active May 2, 2024 12:13
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@davidbgk
davidbgk / utils.js
Last active March 25, 2022 16:23
Let's start to reference some JS utils
// More resources: https://1loc.dev/ + https://htmldom.dev/ + https://thisthat.dev/ + https://vanillajstoolkit.com/
const qsa = (selector) => Array.from(document.querySelectorAll(selector))
// Another way inspired by fluorjs https://fluorjs.github.io/
function $(selector, root = document) {
if (selector instanceof Node) {
return [selector]
}
return root.querySelectorAll(selector)
@gbrow004
gbrow004 / ubuntu-MBP-16.md
Last active May 9, 2024 16:41
Ubuntu on Apple Macbook Pro 16-inch (2019)

Update!

This gist is out of date and I can no longer help much, as I got rid of my Mac.

Please visit T2 Linux website for more and better information:

https://t2linux.org/

Acknowledgements

This gist is just a compilation of the hard work that others have put in. I'm not a software developer, so if there are any mistakes or better ways of doing things, I'd appreciate any suggestions. Here's a list of the real heroes who made this possible:

@TRPB
TRPB / arch-macbook2018.md
Last active November 20, 2023 13:21
Guide: Running Arch on a 2018 MacBook Pro

Hardware Prerequisites

You'll need at least the following hardware:

  • At least 3 USB-A to USB-C converters or hub with enough ports for at least 3 USB devices if all your devices are USB-A then:
  • A USB drive
  • A USB keyboard
  • USB to Ethernet adapter, compatible USB dongle or USB tethering on a phone
@vinyll
vinyll / git-branch-sort.md
Last active July 26, 2021 07:07
Add the `git branch-sort` command to sort all branches by date.
git config --global alias.branch-sort "for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
@Varriount
Varriount / aws_example.nim
Created September 21, 2017 22:38
Nim AWS Snippets
# AWS Version 4 signing example
# EC2 API (DescribeRegions)
# See: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
# This version makes a GET request and passes the signature
# in the Authorization header.
import base64, httpclient, hmac, nimSHA2, os, times, strutils, httpcore
# ************* REQUEST VALUES *************
@yemster
yemster / adequate-template-engine.js
Last active January 28, 2021 21:17
Adequate template engine - Minimalist but entirely more than adequate Js templating engine
/*****************************************
* Usage:
* engine = Adqt.TemplateEngine
* template = 'My name is <% this.name %>'
* hash = { name: 'Yemi' }
*
* compiled = engine.compile(template) // => "var r=[]; r.push("My name is "); r.push( this.name ); return r.join("");"
* engine.render(compiled, hash) // => My name is Yemi
*
* engine.render(compiled, { name: 'Mike' }) // => My name is Mike