Skip to content

Instantly share code, notes, and snippets.

View n0rad's full-sized avatar

Arnaud Lemaire n0rad

View GitHub Profile
@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
@MCMrARM
MCMrARM / 91-pulseaudio-custom.rules
Created August 30, 2019 19:22
System configuration files for the T2 audio driver (https://github.com/MCMrARM/mbp2018-bridge-drv/)
SUBSYSTEM!="sound", GOTO="pulseaudio_end"
ACTION!="change", GOTO="pulseaudio_end"
KERNEL!="card*", GOTO="pulseaudio_end"
SUBSYSTEMS=="pci", ATTRS{vendor}=="0x106b", ATTRS{device}=="0x1803", ENV{PULSE_PROFILE_SET}="apple-t2.conf"
LABEL="pulseaudio_end"
@Tenzer
Tenzer / README.md
Created February 18, 2015 21:20
Docker Registry S3 cleanup script

Docker Registry S3 cleanup script

This simply requires you to install the boto3 package and set the DOCKER_BUCKET variable to point at the bucket you would like to clean up, and the rest should be handled automatically. That's is presuming you have credentials to manage the S3 bucket in one of the default locations where Boto go to look for them.

Since the script more or less traverses through your entire S3 bucket, it probably makes sense to only run it infrequently, like daily or weekly, depending on the amount of repositories and layers you have and the amount of updates on the registry in total.

@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing
@sfoster
sfoster / SceneSpec.js
Created August 12, 2011 23:43
Jasmine + AMD
define(['lib/Scene'], function(Scene){
describe("Scene", function() {
var scene;
beforeEach(function() {
scene = new Scene();
});
it("should instantiate ok", function() {
I was searching for a best way to define a javascript class, and then, I found this:
http://www.phpied.com/3-ways-to-define-a-javascript-class/
So, it describes three ways:
1. using a function
2. using JSON
3. singleton (combination of 1. and 2.)
I couldn't find any article which describes what is the best way, in matter of compression, so I decided to test it by myself.
So I made three versions of my navigation system (I already had it in 2. way before I read that article), and I compressed them using google closure compiler, and these are result: