Skip to content

Instantly share code, notes, and snippets.

Alex goodwin

  • Leopolis
Block or report user

Report or block goodwin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@goodwin
goodwin / seedutil.md
Created Feb 22, 2019 — forked from pookjw/seedutil.md
Enroll macOS Beta Seed without profile installation
View seedutil.md

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 Oct 4, 2017 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
View gist:c565cf936a165318b4bb1e129fdf9c61
----- 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 Oct 4, 2017 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
View gist:d8d59c3634f428d95de5fb6d69ac575c
----- 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
View 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
View 0-openwrt-auto-mount-readme.md
  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.
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View 0001-Don-t-seg-fault-if-no-perms-to-read-.remmina-files-o.patch
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 ++
You can’t perform that action at this time.