Skip to content

Instantly share code, notes, and snippets.

@jmatsushita
jmatsushita / README
Last active November 8, 2024 16:52
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@vpavlin
vpavlin / nulecule-index.md
Last active November 10, 2015 15:37
Architecture of Nulecule Index

Nulecule Index

A list of metadata objects describing Nulecule apps/components easily accessible by users (developers, ops).

What am I reading?

You are reading an architecture overview for an Index implementation I proposed in two pull requests:

@petrjoachim
petrjoachim / sget.sh
Last active August 29, 2015 13:57
Skript s bezpečně předaným heslem do wgetu pro dávkové použití.
#!/bin/bash -e
USER=$1
shift
read -s -p "Password for username $USER: " PASSWORD; echo
for FILE in "$@"
do
OUTPUT=`echo $FILE | sed "s/https*:\/\/\([^.]*\.[^.]*\).*\/\(.*\)/\1-\2/g"`
@jnatkins
jnatkins / pom.xml
Created August 29, 2012 18:56
A sample POM for setting up a basic Maven project for CDH application development
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Replace the group ID with your group ID -->
<groupId>com.mycompany.hadoopproject</groupId>
<!-- Replace the artifact ID with the name of your project -->
<artifactId>my-hadoop-project</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>