Skip to content

Instantly share code, notes, and snippets.

@LeZuse
LeZuse / 00_README.md
Last active October 29, 2025 12:26
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@jangraravik
jangraravik / CodeIgniter encryption key generator.php
Created May 16, 2016 17:22
CodeIgniter encryption key generator
<?php
/**
* Generate an encryption key for CodeIgniter.
* http://codeigniter.com/user_guide/libraries/encryption.html
*/
function generate_token ($len = 32)
{
// Array of potential characters, shuffled.