marp | theme |
---|---|
true |
default |
Powered by kroki.io
marp | theme |
---|---|
true |
default |
Powered by kroki.io
cd "C:\Program Files\Oracle\VirtualBox\" | |
VBoxManage.exe modifyvm "Your Virtual Machine Name" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
VBoxManage setextradata "Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
VBoxManage setextradata "Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
VBoxManage setextradata "Your Virtual Machine Name" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" | |
VBoxManage setextradata "Your Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" | |
VBoxManage setextradata "Your Virtual Machine Name" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 |
# It is recommended that you save this script as an application, so you don't have to open Script editor. | |
(* | |
It all started when I wanted to join zoom faster than a human could do with no prompt like how I expected like this. | |
I first discovered zoom.us's URL scheme to join meeting, but when I found out it doesn't work, I started to make this program. | |
After this all of stuff, I finally have something that is constantly updated. | |
After this pandemic is over, development might slow down or become discontinued. | |
*) | |
global meetingNames, meetingIDs, meetingPwds, wname | |
# Compiling the app will reset all your saved meetings! | |
property meetingNames : {} |
DNS queries on home network suddenly resolving hosts to 104.239.207.44.
You will see SPORADIC mis-resolutions of EVERYTHING to that 104.239.207.44 address if their crappy router happens to hear your PC's DHCP request - EVEN IF ANOTHER DHCP SERVER ON THE NETWORK assigns the ultimate address.
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
(* | |
The zero_pad function taken from: | |
http://www.nineboxes.net/2009/10/an-applescript-function-to-zero-pad-integers/ | |
*) | |
on zero_pad(value, string_length) | |
set string_zeroes to "" | |
set digits_to_pad to string_length - (length of (value as string)) | |
if digits_to_pad > 0 then | |
repeat digits_to_pad times | |
set string_zeroes to string_zeroes & "0" as string |
######################################################## | |
## CROSS COMPILING TRANSMISSION 2.82 FOR WD MY CLOUD ## | |
######################################################## | |
This is a guide to compile transmission 2.82 for the WD MyCloud 2/3/4 TB. | |
Because I didn't want to install the build tools and dependencies on my NAS I chose to | |
setup a cross-compiler toolchain on my x86_64 Ubuntu 12.04 machine and create a .deb package | |
that can be installed on the NAS. Furthermore the cross compiler can be used to compile anything for the My Cloud (printer drivers, etc.) |
******************************************************** | |
*** STEPS TO SYMBOLIZE A CRASH DUMP OR EXCEPTION LOG *** | |
******************************************************** | |
1) Move/copy both the crashing .app and the relevant.dSYM files into the same directory. | |
2) If the crash was in a framework, dynamic library, or bundle, you have position-independent code and must work out the *slide*. Otherwise, skip up to step 9 and use slide=0. | |
3a) If you have a crash dump, look in the *Binary Images* part of the crash log and find the framework, dynamic libray or bundle in which the crash occurred. Read the first column of the output. This is the address at which the __TEXT segment was loaded. We call it the *Actual Load Address* and denote it as *A*. |
#include <unistd.h> | |
#include <CoreServices/CoreServices.h> | |
#include <ApplicationServices/ApplicationServices.h> | |
typedef int CGSConnection; | |
extern OSStatus CGSGetWorkspace(const CGSConnection cid, int *workspace); | |
extern OSStatus CGSSetWorkspace(const CGSConnection cid, int workspace); | |
extern CGSConnection _CGSDefaultConnection(void); | |
int get_space_id(void); |