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 / _README.md
Last active September 3, 2022 13:39
node.js script to install the latest version of zeit/hyper using the debian package

This skript downloads and installs the most recent version of Hyper using last DEP package for linux.

Setup

git clone https://gist.github.com/mojoaxel/4fa8947905472818a72a97c113b535ae update-hyper
cd update-hyper
npm install

Update Hyper

#!/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
@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.
https://www.pscp.tv/w/a_ksijFXZ0tnRG9wenB5anZ8MUJSS2pXVnZha1FHd4jTL6SXsihB9hjCgCvb7W3fBpTJobDQAHz8Vo2awqFe
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}
]