Skip to content

Instantly share code, notes, and snippets.

Doing it

David da Silva dasilvacontin

Doing it
View GitHub Profile
View fuck-you-apple
#!/usr/bin/env node
const { execSync } = require('child_process')
function denyApple () {
const ps = execSync('ps -ef | sed 1d').toString().split('\n')
const systemPrefsInfo = ps.find(p => p.indexOf('System Preferences') > 1)
if (systemPrefsInfo != null) {
const pid = systemPrefsInfo.trim().split(' ').filter(s => s.length)[1]

Keybase proof

I hereby claim:

  • I am dasilvacontin on github.
  • I am dasilvacontin ( on keybase.
  • I have a public key whose fingerprint is DB71 D9B7 20CE 83C9 852F 0307 576C C851 5890 CE50

To claim this, I am signing this object:

dasilvacontin / browser-polyfill
Created Nov 25, 2014
polyfill for the lack of a browser
View browser-polyfill
<!--[if IE]><script>window.location=''</script><![endif]-->
dasilvacontin / fontlogger
Created Sep 10, 2014
Log all the fonts available in Swift
View fontlogger
for family in UIFont.familyNames() as [String]
for name in UIFont.fontNamesForFamilyName(family)
println(" \(name)")