Skip to content

Instantly share code, notes, and snippets.

View trodemaster's full-sized avatar
💭
Pushing buttons

Blake Garner trodemaster

💭
Pushing buttons
View GitHub Profile
@niw
niw / README.en.md
Last active February 13, 2024 04:24
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 10/1/2021 state.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac
@tboerger
tboerger / gist:4840e1b5464fc26fbb165b168be23345
Created February 17, 2017 09:37
Golang LDAP search and authentication
package main
import (
"fmt"
"strings"
"gopkg.in/ldap.v2"
)
const (
ldapServer = "ad.example.com:389"
@emilyst
emilyst / .md
Last active February 13, 2023 19:17
How to rip a multiple-disc PlayStation game and add it to OpenEmu

Adding multi-disc PlayStation games to OpenEmu

It's necessary to find an optical drive capable of reading the CDs used as PlayStation games. It's also necessary to get OpenEmu (free) and set it up to play PlayStation games. This may require finding its appropriate BIOS files (check its settings). Otherwise, finding CD images for games which you own online is possible and left as a risk for the reader to take.

  1. For OpenEmu to read and use a PlayStation game, it must exist as a file on the computer. If you have a set of BIN/CUE files, skip to step two.
    1. The entirety of the CD's binary data must be ripped to a binary file. Use a command like "dd if=/dev/disk2 of='~/Downloads/Final Fantasy VII (USA) (Disc 1).bin' bs=2048 conv=sync,notrunc".
      • (Here, "/dev/disk2" refers to a specific device on my computer. Open the Disk Utility on yours, find your optical drive, and find out what it's called. If it's "disk3", use "/dev/disk3" instead. If you don't have an optical drive, this is a non-star
@mitchellh
mitchellh / setup_winrm.txt
Created June 14, 2015 19:31
Packer 0.8 Windows Example on AWS
<powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow
@0xabad1dea
0xabad1dea / rtlsdr-osx.txt
Created June 13, 2013 21:55
Build RTL-SDR on OSX with no tears
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
sudo port install cmake
sudo port install libusb
sudo port install pkgconfig
sudo port install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/