Skip to content

Instantly share code, notes, and snippets.

View mojoaxel's full-sized avatar
🏠
Working from home

Alexander Wunschik mojoaxel

🏠
Working from home
View GitHub Profile
wget https://noto-website.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip
sudo unzip NotoColorEmoji-unhinted.zip -d /usr/share/fonts/truetype/noto
sudo rm /usr/share/fonts/truetype/noto/LICENSE_OFL.txt
sudo rm /usr/share/fonts/truetype/ancient-scripts/Symbola_hint.ttf
sudo apt-get remove ttf-ancient-fonts-symbola
sudo chmod 644 /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf
fc-cache -f -v
rm NotoColorEmoji-unhinted.zip
@mojoaxel
mojoaxel / ResizeVirtualDrive.md
Last active October 25, 2017 08:15
Resize a VirtualBox Disk

Increase size of virtual drive

  1. First open the VirtualBox "Manager vor virtual Drives" and disconnect the drive from any machiene
  2. Backup old image: cp ubuntu-14.10-server-amd64.vdi ubuntu-14.10-server-amd64.backup.vdi
  3. Increase Size (in MB, here ~50 GB): VBoxManage modifyhd ubuntu-14.10-server-amd64.vdi --resize 50000
  4. Reconnect the drive to your virtual machine and start it up.

Increase size of main partition

  1. Find the main partition: lsblk
  2. Run fdisk on this partition: sudo fdisk /dev/sda
@mojoaxel
mojoaxel / OpenLetter2017.md
Last active October 8, 2017 13:17
A open letter to the vis.js maintainers

Dear Almende colleagues,

Thanks for creating vis.js!

First of all, we really want to thank the company Almende in general and developers like @josdejong and @AlexDM0 in particular for providing the community with such a sophisticated open source library. In our commercialized world it is not a given for everybody to be so dedicated to open and free software. Thank you! We recognize that vis.js is still an almende project, even now that the project is almost exclusively driven by the community.

Current status

After the "we need your help" issue in April 2016 a lot has been accomplished.

@mojoaxel
mojoaxel / slideshow.sh
Created January 21, 2017 20:00
Raspberry Pi LXDE Slideshow
#!/bin/bash
STICK_A="/media/pi/AF7C-CF1E";
STICK_B="/media/pi/IMAGES";
TEMPF="/home/pi/slideshow.tmp";
DELAY=5;
export DISPLAY=":0"
if [ -d "$STICK_A" ]; then
@mojoaxel
mojoaxel / prototypefund.de
Last active September 30, 2016 19:09
Projektvorschläge für prototypefund.de
We couldn’t find that file to show.
[
{"from": 1, "to": 2},
{"from": 1, "to": 3},
{"from": 2, "to": 4},
{"from": 2, "to": 5}
]
@mojoaxel
mojoaxel / pt-battery-fw-update_v2.sh
Last active January 10, 2017 19:45
pi-top battery firmware update
pi@pi-top ~ $ wget https://s3-us-west-2.amazonaws.com/pi-top/pt-battery-fw-update_v2
--2016-04-19 07:43:27-- https://s3-us-west-2.amazonaws.com/pi-top/pt-battery-fw-update_v2
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 54.231.168.46
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|54.231.168.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 57760 (56K) [application/octet-stream]
Saving to: `pt-battery-fw-update_v2'
100%[==============================================================================================================================>] 57,760 70.7K/s in 0.8s

Keybase proof

I hereby claim:

  • I am mojoaxel on github.
  • I am wunschik (https://keybase.io/wunschik) on keybase.
  • I have a public key whose fingerprint is 68D7 252B 3D5A 0C27 FA35 64E5 6B87 D9D3 813D AA42

To claim this, I am signing this object:

@mojoaxel
mojoaxel / getImageAndSaveToFTP.sh
Created January 14, 2016 19:42
Upload image from AirCam to Wunderground (FTP)
#!/bin/bash
# Download image from AirCam
curl --insecure -o image.jpg https://XXX.XXX.XXX.XXX/snapshot.cgi?chan=1
# create folder archive if it doesn't already exist
mkdir -p archive
# save image to archive
cp image.jpg archive/webcam_$(date +"%Y%m%d-%H%M").jpg
@mojoaxel
mojoaxel / foreign_key_checks_OFF.sql
Last active October 26, 2017 18:51
Import .sql files as tables to the database with the directoryname they are in.
SET foreign_key_checks = 0;