Skip to content

Instantly share code, notes, and snippets.

@xxuejie
xxuejie / build-gcc.md
Last active October 4, 2019 20:25 — forked from vlad-ivanov-name/build-gcc.md
build cross riscv32imac gcc with newlib

Set environment variables

export TARGET=riscv32-unknown-elf
export PREFIX=/work/public/$TARGET
export PATH=$PATH:$PREFIX/bin

Build binutils

@xxuejie
xxuejie / how-to-connect-an-iOS-device-to-your-computer-using-SOCKS.md
Last active February 10, 2017 20:32 — forked from austinhappel/how-to-connect-an-iOS-device-to-your-computer-using-SOCKS.md
How to connect an iOS device to your computer via a SOCKS proxy. Say you're running a virtual machine on your work computer. Say this machine, for whatever reason, can only connect to the internet over NAT - as in, it does not get it's own IP address. Say this VM is running a webserver, and you need a device outside of your computer to connect t…

How to connect an iOS device to your computer via a SOCKS proxy

Say you're running a virtual machine on your work computer. Say this machine, for whatever reason, can only connect to the internet over NAT - as in, it does not get it's own IP address. Say this VM is running a webserver, and you need a device outside of your computer to connect to it.

If only there was a way to get your work computer to 'share' it's network, so that you could get at that VM… Here's how you do it!

For all instructions, I assume your work computer is a mac

  1. Get your computer's IP address:
@xxuejie
xxuejie / solarize.sh
Created September 18, 2012 18:45 — forked from codeforkjeff/solarize.sh
shell script for setting gnome-terminal color palette to use Solarized theme
#!/bin/sh
#
# Shell script that configures gnome-terminal to use solarized theme
# colors. Written for Ubuntu 11.10, untested on anything else.
#
# Solarized theme: http://ethanschoonover.com/solarized
#
# Adapted from these sources:
# https://gist.github.com/1280177
# http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/