Skip to content

Instantly share code, notes, and snippets.

View aphex3k's full-sized avatar
🇺🇦
Слава Україні!

Michael Henke aphex3k

🇺🇦
Слава Україні!
  • Dexcom
  • San Diego, CA
  • 23:58 (UTC -07:00)
View GitHub Profile
<?php
/*
Twitter JSON to Atom proxy for Twitter API 1.1
Original version by yimingliu ( https://gist.github.com/yimingliu/4735445 )
Display user_timeline instead of home_timeline
*/
date_default_timezone_set('America/Los_Angeles');
ini_set('display_errors', 0);

Keybase proof

I hereby claim:

  • I am aphex3k on github.
  • I am michaelhenke (https://keybase.io/michaelhenke) on keybase.
  • I have a public key whose fingerprint is 18B1 FDF8 27F7 2B33 8FB7 A9F4 3606 C719 2840 65AC

To claim this, I am signing this object:

@aphex3k
aphex3k / smcs.patch
Created June 19, 2015 00:38
Compiling Xamarin.iOS & Xamarin.Android on OSX 10.11-beta1
# Install mono using homebrew
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# brew install mono
6c6
< exec mcs -nostdlib -r:$PROFILE/mscorlib.dll -lib:$PROFILE "$@"
---
> exec /usr/local/bin/mcs -nostdlib -r:$PROFILE/mscorlib.dll -lib:$PROFILE "$@"
@aphex3k
aphex3k / unsign
Created June 30, 2015 17:06
Remove the _CodeSignature folder from an existing .ipa iOS App archive
#!/bin/sh
#set -x
if [ "$*" == "" ] ; then
echo "USAGE: unsign App.ipa [App2.ipa] [App3.ipa] [...]"
exit 1
fi
for var in "$@"
do
if [ ! -f ${var} ]
@aphex3k
aphex3k / avahi-ssh.service
Created December 2, 2015 17:25
avahi deamon advertising SSH service on default port 22
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h SSH</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
</service>
</service-group>
@aphex3k
aphex3k / avahi-sftp.service
Created December 2, 2015 17:27
avahi deamon advertising SFTP service on default port 22
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h SFTP</name>
<service>
<type>_sftp-ssh._tcp</type>
<port>22</port>
</service>
</service-group>
@aphex3k
aphex3k / avahi-samba.service
Created December 2, 2015 17:27
avahi deamon advertising Samba service on default port 139
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>139</port>
</service>
</service-group>
@aphex3k
aphex3k / avahi-http.service
Created December 2, 2015 17:28
avahi deamon advertising HTTP service on default port 80
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h HTTP</name>
<service>
<type>_http._tcp</type>
<port>80</port>
</service>
</service-group>
@aphex3k
aphex3k / .bashrc
Created December 2, 2015 17:48
My favorite colored shell prompt
PS1='\[\e[0;32m\]\h\[\e[m\]:\[\e[1;34m\]\w\[\e[m\] \u\[\e[1;32m\]\$\[\e[m\] '
@aphex3k
aphex3k / raspbian-headless-motd
Last active March 11, 2016 17:36 — forked from piksel/raspi-motd.sh
Script for setting a nice raspberry pi logo as MOTD on debian.
#!/bin/bash
logo="$(tput setaf 2)
.~~. .~~.
'. \ ' ' / .' $(tput sgr0) ------------------------------- $(tput setaf 1)
.~ .~~~..~. $(tput sgr0) _ _ $(tput setaf 1)
: .~.'~'.~. : $(tput sgr0) ___ ___ ___ ___| |_|_|___ ___ $(tput setaf 1)
~ ( ) ( ) ~ $(tput sgr0) | _| .'|_ -| . | . | | .'| | $(tput setaf 1)
( : '~'.~.'~' : ) $(tput sgr0) |_| |__,|___| _|___|_|__,|_|_| $(tput setaf 1)
~ .~ ( ) ~. ~ $(tput sgr0) |_| $(tput setaf 1)
( : '~' : )