Skip to content

Instantly share code, notes, and snippets.

View fxfactorial's full-sized avatar
🎯
Focusing

@edgararout fxfactorial

🎯
Focusing
View GitHub Profile
@fxfactorial
fxfactorial / build.sh
Created November 27, 2015 07:53 — forked from c0ming/build.sh
A script for build iOS7 universal static library with clang
#!/bin/bash
# e.g. libmms http://sourceforge.net/projects/libmms/
# set -x
BUILD_DIR=`pwd`"/build"
STATIC_LIB_NAME="libmms.a"
STATIC_LIB_NAME_ARM="libmms.a.arm"
STATIC_LIB_NAME_X86="libmms.a.x86"
@fxfactorial
fxfactorial / SVN_Git_Mirror.md
Created January 27, 2016 08:06 — forked from ticean/SVN_Git_Mirror.md
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

@fxfactorial
fxfactorial / build.sh
Created February 4, 2016 09:58 — forked from zhuowei/build.sh
Crashing Android Debuggerd on Nexus 6P with CVE-2016-0807
arm-linux-androideabi-gcc -pie -Wl,--build-id=0x`perl -e 'print "41"x4096'` --sysroot /home/zhuowei/android/prebuilts/ndk/9/platforms/android-9/arch-arm c.c
@fxfactorial
fxfactorial / re-sign-ios-app.md
Created February 12, 2016 12:17 — forked from chaitanyagupta/re-sign-ios-app.md
How to re-sign an iOS app with another developer account

To re-sign an iOS app with another developer account, ensure that the following are in place first.

  1. Distribution certificate of the other developer account
  2. A provisioning profile from the other developer account

Note that the Apple requires bundle IDs to be globally unique, even across accounts. So a bundle ID i.e. CFBundleIdentifier from one account can't be used in a different account, even though the team id/prefix would be different.

Ensure that the new distribution certificate is in your keychain and the new provisioning profile on your disk.

  1. Unzip the .ipa. This will usually unzip to Payload/.app/
@fxfactorial
fxfactorial / alltheflags.md
Created February 26, 2016 03:40 — forked from CodaFi/alltheflags.md
Every Option and Flag /swift (1.2) Accepts Ever

#Every Single Option Under The Sun

  • optimization level options
  • automatic crashing options
  • debug info optionsemit
  • swift internal options
  • swift debug/development internal options
  • linker-specific options
  • mode options
@fxfactorial
fxfactorial / gist:56b07f50bacfff86b7a135960abbeeb6
Created April 11, 2016 15:54 — forked from patshaughnessy/gist:70519495343412504686
How to Debug Postgres using LLDB on a Mac
This note explains how to build Postgres from source and setup to debug it using LLDB on a Mac. I used this technique to research this article:
http://patshaughnessy.net/2014/10/13/following-a-select-statement-through-postgres-internals
1. Shut down existing postgres if necessary - you don’t want to mess up your existing DB or work :)
$ ps aux | grep postgres
pat 456 0.0 0.0 2503812 828 ?? Ss Sun10AM 0:11.59 postgres: stats collector process
pat 455 0.0 0.0 2649692 2536 ?? Ss Sun10AM 0:05.00 postgres: autovacuum launcher process
pat 454 0.0 0.0 2640476 304 ?? Ss Sun10AM 0:00.74 postgres: wal writer process
pat 453 0.0 0.0 2640476 336 ?? Ss Sun10AM 0:00.76 postgres: writer process
@fxfactorial
fxfactorial / interp.lhs
Created May 5, 2016 18:33 — forked from antonycourtney/interp.lhs
My own notes and exercises written while reading Wadler's wonderful "Monads for Functional Programming" in 1998
A really simple interpreter to use while learning about monads. Based on
the paper "Monads for Functional Programming" by Phil Wadler.
the type of terms:
> data Term = Con Int
> | Div Term Term
> deriving Show

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

root@plex:~# uname -a
Linux plex 3.13.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux
root@plex:~# /native/usr/bin/uname -a
SunOS plex 5.11 joyent_20160524T122512Z i86pc i386 i86pc
root@plex:~# cat /etc/issue
Ubuntu 14.04.4 LTS \n \l
root@plex:~# /native/usr/sbin/dtrace -n 'lx-syscall:::entry {@[probefunc] = count()}' -c "ls"
dtrace: description 'lx-syscall:::entry ' matched 676 probes
HDHRViewerV2-beta-0.05.zip Music plex.deb src test upgrade-plex
@fxfactorial
fxfactorial / package.ml
Created June 11, 2016 17:53 — forked from hannesm/package.ml
Find reverse dependencies, output into a dot file
#!/usr/bin/env ocaml
#use "topfind"
#require "findlib"
#require "astring"
let requires name =
try
let reqs = Findlib.package_property ["native"] name "requires" in
Astring.String.cuts ~empty:false ~sep:" " reqs
with Not_found -> []