Skip to content

Instantly share code, notes, and snippets.

View ebruning's full-sized avatar

Ethan Bruning ebruning

View GitHub Profile
@ebruning
ebruning / gist:6382783
Created August 29, 2013 20:06
Add an image
UIImageView *imgBg2 = [self createImgViewWithFrame:CGRectMake(26, APP_DELEGATE.is_iPhone5 ? yCodd+180 : yCodd+170, 268, 137) ImageName:@"licence_front" withTag:0];
imgBg2.image = [UIImage imageNamed:@"w2_front.png"];
@ebruning
ebruning / gist:7456485
Created November 13, 2013 21:11
convert int to enum
card.cardType = (CardType)[[cardArray valueForKey:@"type"] integerValue];
@ebruning
ebruning / 0_reuse_code.js
Created December 3, 2013 17:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
sudo dscl . -append /Groups/_developer GroupMembership USER_NAME
@ebruning
ebruning / links.md
Last active December 30, 2015 09:48
Links to learning iOS development
0. English en 1. French fr 2. German de 3. Italian it 4. Dutch nl 5. Swedish sv 6. Spanish es 7. Danish da 8. Portuguese pt 9. Norwegian nb 10. Hebrew he 11. Japanese ja 12. Arabic ar 13. Finnish fi 14. Greek el 15. Icelandic is 16. Maltese mt 17. Turkish tr 18. Croatian hr 19. Chinese zh 20. Urdu ur 21. Hindi hi 22. Thai th 23. Korean ko 24. Lithuanian lt 25. Polish pl 26. Hungarian hu 27. Estonian et 28. Latvian lv 29. Sami se 30. Faroese fo 31. Farsi fa 32. Russian ru 33. Chinese zh 34. Dutch nl 35. Irish ga 36. Albanian sq 37. Romanian ro 38. Czech cs 39. Slovak sk 40. Slovenian sl 41. Yiddish yi 42. Serbian

Keybase proof

I hereby claim:

  • I am ebruning on github.
  • I am ebruning (https://keybase.io/ebruning) on keybase.
  • I have a public key whose fingerprint is 2EDA 6584 9C4A 0B56 6ADF 2C2B B29D 616C 7ABE C4CC

To claim this, I am signing this object:

@ebruning
ebruning / gist:17e56b07661e5d1bf9cf
Created October 1, 2014 20:43
Download vhd from azure
Add-AzureAccount
select-azuresubscription "Visual Studio Premium with MSDN"
Save-AzureVhd -Source $sourceVHD -LocalFilePath $destinationVHD -NumberOfThreads 5
# CONFIG
SNMP_COMMUNITY=public
SYSCONTACT=dan
SYSLOCATION=Berlin
# get packages
apt-get install snmpd xinetd vim
mkdir -p /opt/observium && cd /opt
@ebruning
ebruning / sources.list
Last active August 29, 2015 14:07
local ubuntu sources.list
#
# deb cdrom:[Ubuntu-Server 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.3)]/ trusty main restricted
#deb cdrom:[Ubuntu-Server 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.3)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb ftp://mirror.ludere.lan/ubuntu/ trusty main restricted
deb-src ftp://mirror.ludere.lan/ubuntu/ trusty main restricted