Skip to content

Instantly share code, notes, and snippets.

View pcolunga's full-sized avatar
🇦🇷
ɐbunןoɔ oɹpǝd

Pedro Colunga pcolunga

🇦🇷
ɐbunןoɔ oɹpǝd
  • Buenos Aires, Argentina
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pcolunga on github.
  • I am pcolunga (https://keybase.io/pcolunga) on keybase.
  • I have a public key ASBgGqZlph0g3ZIUXlapo8yaMOHgTLSt2CgTMGkC8F796wo

To claim this, I am signing this object:

@pcolunga
pcolunga / installer.sh
Created March 21, 2018 14:27 — forked from vromero/installer.sh
AMF CLI installer
#!/usr/bin/env bash
# Copyright 2018 MuleSoft All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
`.,;;;;,.`
`,:;;:::,,....,,::;;;:.`
,;;:.` `,;;:,
.;;, .:;;.
,;:` ` . ,;;,
.;; `:;;;, ;;;;: ,;;`
:;. `;;;;;;;; .;;;;;;;: ;;,
:;` :;;;;;;;;;;, ;;;;;;;;;;;, ;;:
,;. ;;;;;;;;;;;;;; ,;;;;;;;;;;;;;: ;;`
;; :;;;;;; .;;;;;;;. :;;;;;;: ,;;;;;;` `;;
@pcolunga
pcolunga / SecretPal.scala
Last active April 14, 2016 19:38
Assign relations between people with specified constraints. "Secret Pal" or "Amigo Invisible" style :)
import scala.util.Random
/** Azareus: assign relations between people with single way constraints. */
trait Azareus {
val r = new Random()
type Person = String
type Couple = (Person, Person)
type Constraint = (Person, Person)
type Result = List[Couple]
@pcolunga
pcolunga / screen-sharing-osx.sh
Last active October 9, 2023 07:48
Enable screen-sharing on Mac OS X via SSH
#Log and type
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
# To enable screen sharing
cd /Library/Preferences
echo -n enabled > com.apple.ScreenSharing.launchd
# To disable screen sharing
cd /Library/Preferences
rm com.apple.ScreenSharing.launchd