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
@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.
@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
@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
https://www.pscp.tv/w/a_ksijFXZ0tnRG9wenB5anZ8MUJSS2pXVnZha1FHd4jTL6SXsihB9hjCgCvb7W3fBpTJobDQAHz8Vo2awqFe
@mojoaxel
mojoaxel / [0] Regression Testing.md
Last active June 28, 2017 14:23
Visual Regression Testing - https://git.io/vQcS0

Regression Testing

What is regression testing?

  • A "regression" means a "step back" what usually means a new/old bug.
  • Regression testing verifies that software which was previously developed (and tested) still performs the same way after it was changed or interfaced with other software.
  • It is not only used for functional areas, but also to visual changes (CSS).
  • Regression Testing is usually a big part of QA (quality assurance).
  • Regression testing can be done on every level: component, module, system.
  • Regression testing may include the execution of existing functional tests.
#!/bin/sh
DATE=`date +%Y%m%d%H%M`
DB_HOST="localhost"
DB_NAME="xxxxxxxx"
DB_USER="xxxxxxxx"
DB_PASS="xxxxxxxxxxxxxxx"
DB_DUMPFILE=fuerthwiki_${DATE}_${DB_NAME}.sql.gz
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@mojoaxel
mojoaxel / PrintGitHubIssues.ascr
Last active September 24, 2017 09:19 — forked from gaute/githubprint.user.js
Tampermonkey and Actiona Script to print GitHub issues (GitHub version 24.09.17)
<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
<settings program="actiona" version="3.9.1" scriptVersion="1.1.0" os="GNU/Linux"/>
<actions>
<action name="ActionClick" version="1.0.0"/>
<action name="ActionLoop" version="1.0.0"/>
<action name="ActionWriteText" version="1.0.0"/>
<action name="ActionKey" version="1.0.0"/>
<action name="ActionOpenURL" version="1.0.0"/>
<action name="ActionVariable" version="1.0.0"/>
@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 / 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