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
@vinyll
vinyll / carrier.xml
Created October 26, 2022 10:26 — forked from mrlnc/carrier.xml
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>
@vinyll
vinyll / chat.md
Last active October 12, 2020 20:59
Crystal language confusion

Vincent @vinyll 22:15 I find this confusing:

require "athena"
class ExampleController < ART::Controller

ART exists in athena, but how can you figure where it comes from when requiring muliple files? Also how can you avoid names collision?

@vinyll
vinyll / notes.md
Last active December 1, 2019 15:48
Open Social Networks

I'm currently looking for a social network (similar to Facebook basic functionality). The point is to connect with my relatives who are currently using Facebook and invite them to join.

Features

Critical criteria are:

  • open source
  • smooth user interface for non-geeks, beautiful to look at and easy to understand
  • decentralized (WebSub, XMPP, Fedeverse…)
  • easy to deploy in an LXC container
<!--
POC for disabling native browser text selection and using click-to-select for words.
-->
<meta charset=utf-8>
<p id=paragraph>
He was the son of Apollo and, according to the earliest accounts, a mortal woman named Coronis.
His mother was killed by Artemis for being unfaithful to Apollo and was laid out on a funeral pyre to be consumed,
but Apollo rescued the child, cutting him from Coronis's womb.
According to other version Apollo having learned about Coronis betrayal with the mortal Ischys killed her.
Before death she revealed Apollo that she was pregnant with his child and he repenting his actions unsuccessfully
@vinyll
vinyll / gist:f582b0d4edcbd78d3eaec147f99f60c5
Created February 18, 2019 21:08
Install ruby gems locally
export GEM_HOME=$PWD/gems
export PATH=$PWD/bin:$PATH
export RUBYLIB=$PWD/lib:$RUBYLIB
@vinyll
vinyll / labyrinth.html
Created January 13, 2019 13:54
A labyrinth in a single line of JS
<body style="line-height: 18px; font-size: 18px;border: 1px solid #000; display: inline-block">
<script>
document.write([...Array(30)].map(_ => [...Array(30)].map(_ => (Math.floor((Math.random() * 2) % 2)) ? '╱' : '╲').join('')).join('<br>'))
</script>
</body>
@vinyll
vinyll / countrycodes.js
Last active October 12, 2018 09:57
List of ISO 3166-1 alpha 2 letter country codes, lower cased
/**
List of ISO 3166-1 alpha 2 letter country codes, lower cased.
Taken from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
*/
const countryCodes = [
['ad', "Andorra"],
['ae', "United Arab Emirates"],
['af', "Afghanistan"],
['ag', "Antigua and Barbuda"],
['ai', "Anguilla"],

## Novembre

Total : 1j

29/11 : .5j

  • rencontre école Freinet

22/11 : .5j

  • réunion d'équipe
@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))'"