Skip to content

Instantly share code, notes, and snippets.

Daniel Nitsikopoulos dNitza

View GitHub Profile
@dNitza
dNitza / elasticsearch-upgrade-semaphore.sh
Last active Mar 16, 2020
Upgrade elasticsearch on semaphore
View elasticsearch-upgrade-semaphore.sh
#!/bin/bash
###
# Script for uprading Elasticsearch to version 7.2.1
#
# Before running this script, please reset your dependency cache in Project Settings > Admin.
#
# Add the line below to your Setup commands in Project Settings (without the # at the beginning):
#
# wget https://gist.github.com/dNitza/8672749e99d52157e6821477ff64ba89/raw/elasticsearch-upgrade-semaphore.sh ; sudo bash elasticsearch-upgrade-semaphore.sh
@dNitza
dNitza / wwdc19sou.sh
Created Jun 4, 2019
Detect if WWDC19 Platforms State of the Union is available
View wwdc19sou.sh
#!/bin/bash
# Thanks to https://gist.github.com/alexeckermann/3f6a051e876e4c03e3b6341b7b05a7ad
# Execute this script to be notified when the WWDC 2019 Platforms State of the Union is available.
# Make sure this file is `chmod +x` to run in your Terminal.
while true
do
View keybase.md

Keybase proof

I hereby claim:

  • I am dnitza on github.
  • I am nitza (https://keybase.io/nitza) on keybase.
  • I have a public key whose fingerprint is FABC 5631 46C3 D363 D067 2CE9 AE7E 8B6F 4449 6882
@dNitza
dNitza / gist:b2ac8833deee1197a927
Last active Aug 29, 2015
Prevent touch event when trying to scroll on touch enabled device
View gist:b2ac8833deee1197a927
'use strict';
var App = App || {};
App.PhotoContainerView = Backbone.View.extend({
el: '.photos-container',
scrollY: 0,
@dNitza
dNitza / gist:5fd71ef77c4e2b948ed2
Last active Aug 29, 2015
Calculate distance from user given a lattitde and longitude
View gist:5fd71ef77c4e2b948ed2
/* global App:false */
'use strict';
var Lib = Lib || {};
Lib.DistanceView = Backbone.View.extend({
latitude: 0,
@dNitza
dNitza / dimensions.scss
Created Oct 11, 2012
SCSS Mixin to replace width/height with dimensions
View dimensions.scss
@mixin dimensions($width: auto, $height: auto) {
width: $width;
height: $height;
}
You can’t perform that action at this time.