Skip to content

Instantly share code, notes, and snippets.

View allyouaskfor's full-sized avatar

Ethan Priest allyouaskfor

View GitHub Profile
@jinie
jinie / read.py
Created July 5, 2011 18:25
Read binary file in python and print hex output
#!/usr/bin/python
import sys,getopt
filename = None
blocksize = 1024
opts,args = getopt.getopt(sys.argv[1:],'f:b:')
for o,a in opts:
if o == '-f':
@mikermcneil
mikermcneil / disabling-macosx-notification-center.md
Last active February 15, 2025 09:06
Disable/Enable Notification Center (MacOS X)

Toggle MacOS X Notification Center on or off

This gist is to remind me (and anyone else who it helps) how to quickly disable and re-enable Notification Center.

Set Up Bash Aliases

Installation

  1. Open your terminal (<⌘ + ␣ (spacebar)>, then type "terminal", then press <↩ (enter)>).
@albertmenglongli
albertmenglongli / Calculator.py
Created December 18, 2014 08:38
Pythonista Scripts
# coding: utf-8
# Calculator
from __future__ import division
import ui
import clipboard
from console import hud_alert
shows_result = False
@SpaceVoyager
SpaceVoyager / pythonista_compile_howto.md
Last active December 2, 2023 11:58
How to make a standalone iOS app with Pythonista

After you made some cool games or apps with Pythonista, you may want to make it run as a standaone app on iPad/iPhone and possibly share it on the AppStore. This how-to tells you how to do it.

What you need:

  1. Pythonista code you wrote
  2. A Mac with Xcode 7.1 installed
  3. iPhone/iPad running iOS 9

Steps:

  1. Download PythonistaProjectTemplate.zip. The original PythonistaProjectTemplate described at http://olemoritz.net/pythonista-15-whats-new-and-whats-missing.html does not work with Xcode 7. I updated it to work with Xcode 7 and added a more interesting example than the plain old Hello World thing.
  2. Unzip the file and open the project in Xcode 7.1. In project settings, change the Bundle Identifier from com.yuhangwang.pythonistaproject to something else.
Firefox Developer Edition
Google Chrome
Xcode
Fabric
Android Studio
Genymotion
Expo
Visual Studio Code
Evernote
@probonopd
probonopd / orangepizero.md
Last active March 25, 2025 23:20
Orange Pi Zero

Orange Pi Zero

Ideas

  • Port HomeServer to it
  • Read-only thanks to overlayroot
  • Native serial for Viessmann w/o USB-to-Serial
  • Native 433 MHz sending w/o Arduino
  • Native Audio output w/o USB dongle; can attach small amp board
  • Webcam via USB with motion
@shoogle
shoogle / qt-without-xcode.md
Last active August 13, 2024 09:48
Qt without XCode - how to use Qt Creator for macOS software development without installing XCode

Qt without Xcode

How to use Qt Creator for software development on macOS without having to install Xcode

Justification

Qt refuses to install on macOS unless Apple's Xcode is installed beforehand. This is unfortunate because:

Linux on MXQ (PCB: S805Q_V2.0) m8b_m201_v1@23a35625

Seems to be also known as the HD18Q "black box". https://www.ebay.de/itm/153205410117 ("NEU MXQ S805 Smart 1GB+ 8GB Smart TV Box Android 4.4 Quad Core 1.5 G WIFI", seller "SILVESTRAS RUNTA Network Tech Co. Ltd"), EUR 14,99

I can boot with meson8b_m201d.dtb and wired Ethernet works.

U-boot thinks it is a 512 MB device. Linux does, too. The SDK used seems to be named "s805_0701_512M":

root@vegas805:~# strings /mnt/lib/hw/camera.amlogic.so | grep home/
@b4nst
b4nst / Install Windows on MacPro 5,1 on physical drive through Virtualbox.md
Last active October 2, 2024 01:20
Install windows on MacPro 5,1 without cd nor usb drive

Install Windows on MacPro 5,1 on physical drive through Virtualbox

Prerequires

  • SIP disabled. I don't have a native GPU so no boot screen, but I just hold CMD+R 10s after chime sound and wait until I see the recovery screen.
  • A drive where windows will be written (avoid partitioning to keep things clean). Mine is plugged into the optical drive bay.
  • Bootchamp 1.7. Bootchamp is discontinued but works fine for me. Let me know if you have something better.
  • Virtual box
  • A Windows 10 iso img. I got a 10 pro edition but the home should be fine too
@ChrisTollefson
ChrisTollefson / Boot Camp Assistant - USB Install Disk.md
Last active May 5, 2025 21:49
Boot Camp Assistant - Enabling creation of bootable USB disks for installing Windows