Skip to content

Instantly share code, notes, and snippets.

View BonfaceKilz's full-sized avatar
💭
Scheme-ing ❤️

BonfaceKilz BonfaceKilz

💭
Scheme-ing ❤️
View GitHub Profile
@BonfaceKilz
BonfaceKilz / BookList.md
Last active February 2, 2017 08:32
This is the UP bookclub 2017 February - March book list

Introduction

Here's a couple of recommendations from you guys for the February - March UP Bookshelf.

The List

This list has been arranged randomly

  1. Flowers for Algernon by Daniel Keyes: Well this book is really short[There is a longer adaptation of this book]. It can be finished in one sitting. This book is a memoir of sorts of a mentally impaired man's journey's search for intelligence. Definitely an interesting one.
  2. Behind the Beautiful Forevers by Katherine Boo: This is as real with life one can get. Explore life in poverty with Katherine Boo. This book puts life into perspective.
  3. Crime and Punishment by Fyodor Dostoyevsky: Can be a difficult read, buy its very telling of the human condition.
  4. The Subtle Art of Not Giving A Fuck: A Counterintuitive Approach to Living a Good Life by Mark Manson: The title speaks for itself.
  5. The Tao of Coaching: Boost Your Effectiveness at Work by Inspiring and Developing Those Around You by Max Landsberg: A self-h
@BonfaceKilz
BonfaceKilz / useful_shortcuts.md
Created January 29, 2017 11:40
Really useful shortcuts for the terminal

Introduction

Here are a couple of useful shortcuts that are quite useful while working on the terminal

The shortcuts...

  1. Up/ Down Arrows: Move through your last used commands.
  2. Ctrl+left and Ctrl+Right: Jumps between arguments in your commands.
  3. Home and End or Ctrl+a or Ctrl+e: Move your cursor to the beginning and the end of the currently typed command, respectively.
  4. Ctrl+u: Clears the entire line so you can type in a completely new command.
  5. Ctrl+k: This deletes the line from the position of the cursor to the end of the cursor.
  6. Ctrl+w: Deletes the word before the cursor only.
@BonfaceKilz
BonfaceKilz / unpacking.md
Created January 29, 2017 11:36
Unpacking files
# Untar and gunzip a .tar.gz file or .tgz or .z
tar xzvf

# Previewing file contents
tar tzvf filename

# Untar and bunxzip a .bzip2 file
tar xjvf filename
@BonfaceKilz
BonfaceKilz / 1_basic_installation.md
Last active January 24, 2017 20:01
Setting up SD card and installing a simple desktop environment for raspberryPi
# See what devices are currently mounted
df -h 
# or alternatively
lsblk

# Unmount the SD card
umount /dev/sdXX

# Writing image to SD card
@BonfaceKilz
BonfaceKilz / vncviewer.md
Created January 18, 2017 16:48
Setting up a vnc to control another person's desktop
sudo pacman -S x11vnc
x11vnc -display :0 auth ~/.Xauthority

Set up any vnc viewer on the host machine

Finally run:

vncviewer :0
@BonfaceKilz
BonfaceKilz / speak.md
Last active January 9, 2017 17:41
Speak

Something I wrote from some really weird social challenge on tonguetwisters I've been seing everywhere.

espeak "Tongue Twister challenge with some bit of help. Here goes: The sixth sick sheikh's sixth sheep's sick" --stdout | ffmpeg -i - -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 final.mp3
@BonfaceKilz
BonfaceKilz / laravel_noob.md
Created January 4, 2017 18:26
Some quick notes for working from another existing laravel project
# For installing dependencies to vendor/
composer install

# Spinning up the server
php artisan serve

# Setting up the db
php artisan migrate
php artisan db:seed
@BonfaceKilz
BonfaceKilz / bash_variables.org
Last active January 1, 2017 16:02
Bash shell expansion- Quick reference
OperatorMeaning
${parameter#pattern}Remove the shortest string that matches the pattern if it’s at the start of the value
${parameter##pattern}Remove the longest string that matches the pattern it it’s at the start of value
${parameter%pattern}Remove the shortest string that matches the pattern if it’s at the end of the value
${parameter%%pattern}Remove the longest string that matches the pattern it it’s at the end of value
${parameter/pattern/replacement}Replace the first string that matches the pattern with the replacement
${parameter//pattern/replacement}Replace each string that matches the /pattern/with the replacement
${parameter/#pattern/replacement}Replace the string that matches the pattern at the beginning of t