Skip to content

Instantly share code, notes, and snippets.

View andrewkdouglas's full-sized avatar

Andrew Douglas andrewkdouglas

View GitHub Profile
@micjamking
micjamking / README.md
Last active August 29, 2015 14:06
[Command Line] Access Yeoman app in & from Parallels Windows 8 VM

Parallels Desktop 9 for Mac

  • Configure > Hardware > Network 1 > Type: Default Adapter
  • Preferences > Advanced > Network: Change Settings > select Shared and click 'Okay'

Grunt Server

  • In your app's Gruntfile.js, set connect server's hostname in the options to 0.0.0.0 to allow access to the server from outside
grunt.initConfig({
		// The actual grunt server settings
@atk
atk / LICENSE.txt
Created June 19, 2011 16:34 — forked from 140bytes/LICENSE.txt
polyfill an ES5-compatibile Array.prototype.lastIndexOf where needed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Alex Kloss <alexthkloss@web.de>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@nolta
nolta / gist:5479184
Last active December 16, 2015 18:39
Notes on installing mysql 5.6 on ubuntu 10.04, and configuring for GTID replication.

Install prerequisites:

$ sudo apt-get install libaio1

Download the DEB package from http://dev.mysql.com/downloads/mysql/, and install:

$ sudo dpkg -i mysql-5.6.12-debian6.0-x86_64.deb
$ sudo chown -R root.root /opt/mysql/server-5.6

Create mysql user:

@dirkkelly
dirkkelly / README.md
Last active December 17, 2015 23:39
Dashing - Pivotal Tracker

Preview

Description

Simple Dashing job to display your Pivotal Tracker stories status.

  • Green: You don't own any rejected stories
  • Red: You own a rejected story
<Target Name="AfterGet">
<CallTarget Targets="DevEnvInstaller">
</Target>
@littleiffel
littleiffel / infinitescroll.js
Last active April 14, 2019 09:17
My directive for infinite scroll
app.directive('infiniteScroll', [
'$rootScope', '$window', '$timeout', function($rootScope, $window, $timeout) {
return {
link: function(scope, elem, attrs) {
var checkWhenEnabled, handler, scrollDistance, scrollEnabled;
$window = angular.element($window);
elem.css('overflow-y', 'scroll');
elem.css('overflow-x', 'hidden');
elem.css('height', 'inherit');
scrollDistance = 0;
#!/bin/sh
#
# Downloads and installs the startssl CA certs into the global Java keystore
# on Alpine Linux.
#
# Check if JAVA_HOME is set
[ "$JAVA_HOME" = "" ] && echo "ERROR: JAVA_HOME must be set" && exit 1
# Check if cacerts file is present
@tfohlmeister
tfohlmeister / README.md
Last active July 30, 2020 23:17
[dashing] Google Calendar Event widget for Dashing!

Description

Dashing widget to display a bunch of current and coming-up Google Calendar events.

The widget shows only one event and is based on the text-widget which is default in the Dashing installation. The time is displayed as human-readable time string with the help of MomentJS.

A Dashing job fetches the events of a given public or private calendar url, orders events to match starting time and sends the data to the dashboard. A certain event offset can be set for each calendar widget so that it will show the first (data-pre="0"), the second (data-pre="1") or any other following event based on the offset. For each calendar you'll have to define a name which enables you to assign custom background colors for events of each calendar.

While the main job is called in larger intervals, there is a second job to be run every minute or so, which kicks out already finished events. In that way processing load

@gabrielemariotti
gabrielemariotti / README.md
Last active February 24, 2021 10:52
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
@jonathantneal
jonathantneal / Demo
Created April 18, 2012 17:13
addEventListener for IE8
http://jsfiddle.net/GuQaV/show/