Skip to content

Instantly share code, notes, and snippets.

View danigb's full-sized avatar

danigb danigb

  • InVideo
  • Seville, spain
View GitHub Profile
@meeech
meeech / a_help-osx-borked-my-nix.md
Last active March 14, 2024 16:32
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.

Apple Borked my Nix!

Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.

Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.

Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4

Useful Links

@davidgg
davidgg / micro-frontends.md
Created June 20, 2019 11:26
Micro Frontends

Micro Frontends Architecture

What

Micro frontends are the technical representation of a business subdomain, they provide strong boundaries with clear contracts, also they avoid sharing logic with other subdomains (DDD) Luca Mezzalira

Domain and subdomains are concepts used mainly in backend projects, but they can be used in frontend as well.

Micro Frontends is an old topic, with lots of different approaches. Same paradigm as micro-services in the backend.

@luciopaiva
luciopaiva / walksync.js
Last active October 29, 2020 20:24 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
#!/usr/bin/env node
const
path = require("path"),
fs = require("fs");
/**
* List all files in a directory recursively in a synchronous fashion
*
* @param {String} dir
@davidgg
davidgg / .gitconfig
Last active December 28, 2022 12:09
Git
[user]
name = DavidGG
email = yourmail@example.com
[core]
# Don't consider trailing space change as a cause for merge conflicts
whitespace = -trailing-space
[color]
# Enable colors in color-supporting terminals
@miguelvb
miguelvb / keys_to_sounds.py
Last active March 8, 2018 23:43
keys to sounds in rapsberry pi
import termios, fcntl, sys, os
import pygame.mixer
from time import sleep
from sys import exit
fd = sys.stdin.fileno()
oldterm = termios.tcgetattr(fd)
newattr = termios.tcgetattr(fd)
@getify
getify / 1.js
Last active June 2, 2021 15:41
Proposal: curried function declarations in javascript -- aka, making FP development in JS much much nicer
// Standard:
function fn(x) {
return function(y){
return function(z){
return x * y / z;
};
};
}
@cvan
cvan / webgl-detect-gpu.js
Last active January 19, 2024 02:54
use JavaScript to detect GPU used from within your browser
var canvas = document.createElement('canvas');
var gl;
var debugInfo;
var vendor;
var renderer;
try {
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
} catch (e) {
}
@nrollr
nrollr / MongoDB_macOS_Sierra.md
Last active April 1, 2024 16:23
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@kylophone
kylophone / loudness.rb
Last active April 24, 2024 20:50
FFmpeg loudnorm filter - dual pass loudness normalization example - http://k.ylo.ph/2016/04/04/loudnorm.html
#!/usr/bin/env ruby
require 'open3'
require 'json'
ffmpeg_bin = '/usr/local/bin/ffmpeg'
target_il = -24.0
target_lra = +11.0
target_tp = -2.0
samplerate = '48k'
@vladignatyev
vladignatyev / Emscripten Installation on OS X El Capitan 10.11.md
Last active October 3, 2017 07:22
Emscripten: Installation and running on OS X. Workaround for "Cannot find /usr/bin/llvm-link", "could not check fastcomp", "LLVM version appears incorrect (seeing "7.0", expected "3.7")"