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 / 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 = {}
@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 / 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 / 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

Keybase proof

I hereby claim:

  • I am ixtli on github.
  • I am ixtli (https://keybase.io/ixtli) on keybase.
  • I have a public key whose fingerprint is 6073 D67A 89D2 5C5E CFC0 23A3 8B26 B1A8 AA91 34EA

To claim this, I am signing this object:

@ixtli
ixtli / reorder-container.js
Last active August 29, 2015 14:14
ember mixin
import Ember from 'ember';
var $ = Ember.$;
// These are defined in reorder-handle.scss
var DRAGGING_CLASS = 'is-dragging';
var DRAG_OVER_CLASS = 'drag-over';
var DROP_TARGET_CLASS = 'drop-target';
/**
@ixtli
ixtli / .ycm_extra_conf.py
Created January 6, 2015 23:46
ycm extra conf 10.10
# Partially stolen from https://bitbucket.org/mblum/libgp/src/2537ea7329ef/.ycm_extra_conf.py
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
@ixtli
ixtli / .vimrc
Last active August 29, 2015 14:12
" A config meant for MacVim on OS 10.9/10.10
" Before running VundleInstall:
" Have powerline fonts installed (https://github.com/powerline/fonts)
" Install the reattach to user namespace stuff if using tmux
" 1) brew install reattach-to-user-namespace
" 2) add the following to .tmux.conf:
" set-option -g default-command "reattach-to-user-namespace -l /bin/bash"
"
" After running VundleInstall:
@ixtli
ixtli / unity.md
Last active August 29, 2015 14:08
Musings about how unity does 'masking'

Discovered various interesting things in the process of solving the masking issue, thought it would be good to circulate.

Masking in Unity

So the way masking works in Unity is by doing the following:

  • Each object contains a mask object (child) and then a bunch of other child objects
  • Mask object is given a masking shader
  • At render time, the mask "draws", but doesn't write color to the output buffer, it only writes depth. Another way to visualize this is that it creates an invisible 3D object that still blocks other objects behind it
  • When the other objects render, the parts that are behind the invisible objects get masked because the Z-buffer compare fails
  • Why can't you have two on the screen at once?
@ixtli
ixtli / test.js
Last active August 29, 2015 14:08
reflection in ember js
import Ember from 'ember';
var get = Ember.get;
/**
* Invoke this as such:
*
* ```handlebars
* {{ meta-input valueBinding='myModelAttr' }}
* ```