Skip to content

Instantly share code, notes, and snippets.

Avatar

Piotr Limanowski peel

View GitHub Profile
View gist:0769056359d71b755cb68edae8c95577
accepted connection from pid <unknown>, user peel
objc[30266]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called.
objc[30266]: +[__NSPlaceholderArray initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
View gist:5491d91de76656d33946148eef9005b3
-bash-3.2$ nix-store -r /nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624 && /nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624/bin/nix doctor
these paths will be fetched (1.30 MiB download, 5.93 MiB unpacked):
/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624
/nix/store/kpl066g4nw98rj3c6csxjxjf6v9mnw3k-nix-2.2pre6526_9f99d624-man
copying path '/nix/store/kpl066g4nw98rj3c6csxjxjf6v9mnw3k-nix-2.2pre6526_9f99d624-man' from 'https://cache.nixos.org'...
copying path '/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624' from 'https://cache.nixos.org'...
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/dz3gy7gqn1z5sva4x0gzkr67givl5m0v-nix-2.2pre6526_9f99d624
Store uri: daemon
View darwin--bash-init.sh
Last login: Tue Nov 13 19:51:03 on ttys007
-bash: _have: command not found
-bash: _have: command not found
-bash: _have: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
-bash: _realcommand: command not found
View darwin--end-of-file.sh
# nix-shell / nix run fails due to "unexpected end-of-file"
# it seems to be failing once starting up shell
bash-4.4$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.50 MiB download, 3.24 MiB unpacked):
/nix/store/1xa9zfa3l38wwb2q80wflqfdhsr0gsvd-bash-interactive-4.4-p23-doc
/nix/store/5c5gkamjgn6g4ya7pq7ly5h6240n8yzg-ed-1.14.2
/nix/store/6xvgmf7b38844my7jz34smw0mjkrmard-bash-interactive-4.4-p23-dev
/nix/store/84gsb3q644hwhp5ra15fb3x9669br9ib-patch-2.7.6
/nix/store/8qai18dv0nqyw6s61g9p91n8684rnlg8-stdenv-darwin
View gist:1f8d57bf63d48db24ccef60964ec7a5c
{ stdenv, lib, fetchurl, undmg }:
let
appName = "Firefox";
in
stdenv.mkDerivation rec {
name = "${lib.toLower appName}-darwin-${version}";
version = "57.0b7";
dlName = name;
View install-mopidy.sh
#!/usr/bin/env bash
#install dependencies
brew install gstreamer gst-plugins-good gst-plugins-ugly gst-python
#menubar ui
brew cask install kmbmpdc
#mopidy plus spotify and web ui
pip install mopidy mopidy-spotify mopidy-iris
#set spotify credentials
View keybase.md

Keybase proof

I hereby claim:

  • I am peel on github.
  • I am peel (https://keybase.io/peel) on keybase.
  • I have a public key ASCn60IC2NPQNIw6_-82br-Z27fYMMfaJ0kzx61aFFmcbAo

To claim this, I am signing this object:

View Makefile
REPOS := user-service uc-service pep-service application-handler-service sms-service point-service mail-service message-dispatcher
ORG := LendoSTPGdansk
TARGET := wrk/lendo
default: clone run
clone:
@echo "[INFO] cloning repositories"
@for r in $(REPOS) ; do git clone git@github.com:$(ORG)/$$r.git ~/$(TARGET)/$$r ; done
@peel
peel / docker-odroid.sh
Last active Jul 11, 2016
Making an ArchLinux ARM SD card for ODROID-C2 with OSX with Docker
View docker-odroid.sh
#!/bin/bash
# Step 1: Run the container
# Downloads an image from docker hub and runs it with access to hardware in privileged mode
# Note the PLATFORM=oc2 variable
docker run --rm --privileged -v $(pwd):/backup peelsky/arm-sdcard-builder -e PLATFORM=odroid-c2 download copy
# Step 2: Find disk identifier
# This is extremely important to get it right as the process will destroy
# the contents of a given disk
@peel
peel / vagrant-pi.sh
Created Mar 25, 2016
Making an ArchLinux ARM SD card with OSX with Vagrant
View vagrant-pi.sh
#!/bin/bash
# Step 0: Clone repository
# The repository contains a VM to flash your SD card with
git clone https://github.com/peel/rpi-sdcard-builder.git
cd rpi-sdcard-builder/vagrant
# Step 1: Find disk identifier
# This is extremely important to get it right as the process will destroy
# the contents of a given disk
You can’t perform that action at this time.