Skip to content

Instantly share code, notes, and snippets.

@goodwin
goodwin / parallels-reset.sh
Created September 10, 2022 19:24 — forked from gdurastanti/parallels-reset.sh
Reset Parallels' trial
#!/bin/sh
# Reset Parallels Desktop's trial and generate a casual email address to register a new user
rm /private/var/root/Library/Preferences/com.parallels.desktop.plist /Library/Preferences/Parallels/licenses.xml
jot -w pdu%d@gmail.com -r 1
@goodwin
goodwin / ASUS RT-AC87U
Created April 22, 2022 21:26 — forked from francoism90/README.md
Change country to unlock channels, increase TX-power. (Use at your own risk)
# Login into router using SSH and execute listed commands (AT OWN RISK!).
# To apply the settings on boot, copy + paste the same settings in init-start.
# Backup current settings
nvram dump > dump.txt
# Set country + TX-power
nvram set asuscfe0:ccode=US
nvram set asuscfe1:ccode=US
nvram set asuscfe0:regrev=0
@goodwin
goodwin / example_ze08.yaml
Created February 26, 2021 22:10 — forked from cretep/example_ze08.yaml
Winsen ZE08-CH2O (Formaldehyde sensor) for ESPHome
esphome:
includes:
- winsen_ze08.h
uart:
- id: uart_ze08
rx_pin: GPIO16
tx_pin: GPIO17
baud_rate: 9600
@goodwin
goodwin / seedutil.md
Created February 22, 2019 20:23 — forked from pookjw/seedutil.md
Enroll macOS Beta Seed without profile installation

seedutil

Enroll macOS Beta Seed without profile installation

Usage

$ sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil 
usage: seedutil enroll SEED_PROGRAM
    seedutil unenroll

seedutil current

@goodwin
goodwin / gist:c565cf936a165318b4bb1e129fdf9c61
Created October 4, 2017 19:09 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@goodwin
goodwin / gist:d8d59c3634f428d95de5fb6d69ac575c
Created October 4, 2017 19:08 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@goodwin
goodwin / Daemon in OSX Example
Created November 3, 2016 09:14 — forked from nacho4d/Daemon in OSX Example
Daemon in OSX Example
#import <Foundation/Foundation.h>
#import <CoreFoundation/CoreFoundation.h>
# pragma mark Daemon Protocol
@protocol DaemonProtocol
- (void)performWork;
@end
# pragma mark MyTask Object Conforms to Protocol
  1. Install USB device support;
opkg install kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-storage e2fsprogs fdisk usbutils mount-utils block-mount kmod-fs-ext4 kmod-fs-vfat kmod-nls-utf-8 kmod-nls-cp437 kmod-nls-iso8859-1

reboot
  1. Install blkid, run opkg update && opkg install blkid;
  2. Copy block.sh to directory /lib/functions;
  3. Copy 10-mount and 20-swap to directory /etc/hotplug.d/block;
  4. That's it! run logread -f command then plug in a USB stick to test.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
From 7022d6f5d177ad29aa7d449d269d51ef5e34e6d5 Mon Sep 17 00:00:00 2001
From: Kevin Cozens <kevin@ve3syb.ca>
Date: Thu, 21 Mar 2013 13:35:58 -0400
Subject: [PATCH] Don't seg fault if no perms to read .remmina files, or if
file is corrupt. Fixed minor memory leak.
---
remmina/src/remmina_applet_menu.c | 2 ++
remmina/src/remmina_applet_menu_item.c | 5 ++++-
remmina/src/remmina_file_manager.c | 2 ++