Skip to content

Instantly share code, notes, and snippets.

View ixtli's full-sized avatar
🌹
Typing text into boxes.

Chris Galardi ixtli

🌹
Typing text into boxes.
View GitHub Profile
@ixtli
ixtli / example.java
Last active November 4, 2015 15:23
Why? (Google's GSON library, version 2.4.x, Java8)
import com.google.gson.Gson;
public class Example
{
private class FooExample
{
public final String exampleString = "foo";
}
private class MooExample
@ixtli
ixtli / instructions.md
Last active February 23, 2021 13:20
running arm linux under qemu on os x
  1. install qemu by doing something like brew update && brew install qemu
  2. get a ARMv8-compatible linux kernel image like this: wget http://ports.ubuntu.com/ubuntu-ports/dists/trusty/main/installer-armhf/20101020ubuntu318/images/generic/netboot/vmlinuz
  3. get initrd for the installer like this: wget http://ports.ubuntu.com/ubuntu-ports/dists/trusty/main/installer-armhf/20101020ubuntu318/images/generic/netboot/initrd.gz
  4. use gzip to expand the initrd.gz to a file called initrd
  5. do something to make a disk image, like qemu-img create -f raw armdisk.img 8G
  6. start a Cortex-A9 like this qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -initrd ./initrd -kernel ./vmlinuz -hda armdisk.img -m 256 -append "root=/dev/sda mem=256M devtmpfs.mount=0 rw"

###todo

  • make a disk that boots
@ixtli
ixtli / headers.py
Created June 19, 2018 23:00
A python program to download all public Linked In info about members of ICE
headers = {}
@ixtli
ixtli / headers.py
Last active June 19, 2018 23:04
A python program to download all public Linked In info about members of ICE. All of this was made by https://twitter.com/sam_lavigne
headers = {}