Skip to content

Instantly share code, notes, and snippets.

View rpsu's full-sized avatar

Perttu Ehn rpsu

View GitHub Profile
@rpsu
rpsu / toss_away_converted_music.sh
Last active September 22, 2016 12:55
Toss away music that's already converted with iTunes. Flexible, file extension is a variable, locations are variables.
#!/bin/bash
# CHANGE THESE!!
# This is the folder where your music is located (*all* music within this folder is handled)
DIRECTORY="/path/to/your/music"
# this is the safe (temporary?) location for your files.
NEW_PLACE="/path/to/the/destination/folder"
ORG_EXT='.m4a'
@rpsu
rpsu / gist:cbf28a6f666a48b266a46f6dc62cd6b1
Last active November 8, 2017 03:06
Agility, retrospectives and human relationships

What is agile, in practise? Looking into one implementation of agile software development.

Walk through the sprint retrospective and discuss why is it important to have.

Learn about how productivity of group of people evolves through time, and what are the common traps along the way.

@rpsu
rpsu / mint_17.2_macbook_pro_retina_15_inch_mid_2014.md
Last active March 1, 2018 01:54 — forked from pinge/ubuntu_14.04_macbook_pro_retina_15_inch_mid_2014.md
How to install Ubuntu 14.04.1 LTS on a MacBook Pro Retina 15" Mid 2014 (11,3)

Keybase proof

I hereby claim:

  • I am rpsu on github.
  • I am rpsue (https://keybase.io/rpsue) on keybase.
  • I have a public key ASAMY3aR6XLgCY8Sy90z4zCMrNsbXwfWoJsI3VREzhSBEQo

To claim this, I am signing this object:

Raspberry Pi Zero setup without keyboard and display adapters

Raspberry Pi comes with HDMI mini socket, and the Adapter HDMI mini to HDMI costs 4-5 €. However, I did not have one laying around so I flashed the Micro SD card I had and added the wifi configuration to it.

Then I can SSH directly to the box using the dynamic IP address my router provides.

  1. Stick the Micro SD to laptop with an adapter
  2. Download Raspberry Pi OS Lite from https://www.raspberrypi.org/software/operating-systems/
#!/usr/bin/env bash
# /path/to/dyndns-update.sh
# 1. Create a credentials file in the same folder with this script named
# dyndns-update.sh_EXAMPLE.COM.creds.txt
# with user credentials, such as
# example.com-username:USER-PASSWORD
#
# 2. Try this at least once. The output of curl commands tells if update is successful, not necessary or if something was wrong.
# sudo sh /path/to/dyndns-update.sh
@rpsu
rpsu / casks.sh
Last active March 2, 2022 06:53
LIst of brew packages / MacOS
$ brew list --casks -1
android-file-transfer
brave-browser
chromedriver
chromium
docker-edge
firefox
firefox-developer-edition
fork
github