Skip to content

Instantly share code, notes, and snippets.

@pgorsira
pgorsira / deploy
Last active May 23, 2024 07:27
Deploying to Artifactory with Python requests library
artifactory_url = 'artifactory.com' # your artifactory instance
artifactory_username = 'username' # your username
artifcatory_password = 'password' # your password
content_type = 'application/java-archive' # your content-type header
filename = 'file' # your file to upload (in current working directory)
url = artifactory_url + '/' + filename # where we want the file stored on artifactory
# checksums are useful for making sure the upload was successful
headers = {'content-type': content_type,
@pgorsira
pgorsira / install
Last active August 29, 2015 14:03
Remote developer console for iOS 7 Mobile Safari in Ubuntu 13.10
# This should not be necessary in 14.04
# be sure to uninstall any previous versions of libimobiledevice, usbmuxd, libplist that were installed by your package manager
# get reqd tools/dependencies
sudo apt-get install libxml2 make automake autoconf libtool pkg-config gcc
mkdir -p ~/ios-dev-console
# install libplist
cd ~/ios-dev-console

What this does:

Within an <ion-scroll>, this directive creates sticky item headers that get bumped out of the way by the next item.

Demo: http://cl.ly/2u2X390s0H1a

Requirements:

  • Needs UnderscoreJS for its _.throttle utility.
  • Must be used within an or

Keybase proof

I hereby claim:

  • I am pgorsira on github.
  • I am pgorsira (https://keybase.io/pgorsira) on keybase.
  • I have a public key whose fingerprint is 0AD5 BB8B 04E7 F7FA E6B4 C5A1 69C8 0F90 8D91 6E93

To claim this, I am signing this object: