Skip to content

Instantly share code, notes, and snippets.

Avatar
🚂

Tamio Honma IOIO72

🚂
  • Deutsche Bahn AG
  • Germany
  • Twitter @IOIO72
View GitHub Profile
@IOIO72
IOIO72 / finished2folders.sh
Last active Apr 27, 2022
WHDLoad ZIP to LHA conversion (The A500 mini)
View finished2folders.sh
find . -maxdepth 1 -name '*.zip' -exec mvexistsuffix {} zip lha \;
@IOIO72
IOIO72 / quickcam-fusion ubuntu.md
Created Nov 28, 2020
Logitech QuickCam Fusion
View quickcam-fusion ubuntu.md

Device:

046d:08c1 Logitech, Inc. QuickCam Fusion

Microphone works finde on Ubuntu, bute Cheese doesn't show a picture.

Solution: Add your user to the video group and reboot.

$ sudo adduser  video
@IOIO72
IOIO72 / nexdock-dex.md
Last active Nov 4, 2020
NexDock Touch Configurations (http://nexdock.com)
View nexdock-dex.md

Samsung DeX

Because I'm a german user, the screenshots contain the german labels.

Set Mouse Speed

Screenshot_20201102-004740_Settings

Screenshot_20201102-004756_Samsung DeX home

@IOIO72
IOIO72 / activate.js
Last active Sep 1, 2020
Alfred Workflow JavaScript Snippets
View activate.js
// Activate App by name
function run(argv) {
const appname = argv[0];
const app = Application(appname);
app.activate();
}
@IOIO72
IOIO72 / index.pug
Last active Mar 25, 2020
Wash Hands
View index.pug
h1 Wash your hands
p
a(href="https://www.who.int/gpsc/clean_hands_protection/") WHO: Clean protect against infection
.hands.hands--full-screen
.hand.hand--right
.hand.hand--left
@IOIO72
IOIO72 / VirtualBox prendends to be VMware
Created Dec 19, 2019
If you run an ISO live system on VirtualBox that checks for VMware, you can change the system information like this. (Replace "VM name" by the name of your virtual machine)
View VirtualBox prendends to be VMware
VBoxManage setextradata "VM name" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "VMware, Inc."
VBoxManage setextradata "VM name" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "VMware Virtual Platform"
@IOIO72
IOIO72 / Group by label property
Last active Oct 14, 2019
An array of objects of same structure is given. Each object contains a property `label` besides other properties. Same labels are equal accross the objects. The goal is to group the objects by the labels.
View Group by label property
// Get an array of all labels with unique entries.
const uniqueLabels = [...new Set(apps.map(item => item.label))];
// Transform the original array of objects to an array of label groups.
const groupedApps = uniqueLabels.map(label => ({ label, stores: apps.filter(app => app.label.includes(label)) }));
@IOIO72
IOIO72 / rgb2hex.ts
Created Aug 23, 2019
Convert decimal RGB values to HTML hex string
View rgb2hex.ts
// prepend a character to a string for a given result string length
const prependCharToLength = (str: string, char: string = '0', len: number = 2): string => {
let r: string[] = [];
let s: string[] = str.split('');
for (let i: number = len - 1; i >= 0; i--) {
r[i] = (s.length - i > 0) ? s[i] : char;
}
return r.join('');
};