Skip to content

Instantly share code, notes, and snippets.

Avatar

Marko Zabreznik MarZab

View GitHub Profile
View gist:1a041abff6b9f0fe320e

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
@MarZab
MarZab / Gruntfile.js
Last active May 20, 2017
comments for npm package.json with a grunt.js task
View Gruntfile.js
/*jslint node: true */
'use strict';
module.exports = function (grunt) {
/*
1. make package.json.js and export the json that will be saved as package.json
2. run grunt package.json, the new file will be written and you get a patch as well
*/
grunt.registerTask('package.json', function () {
View gist:ebfe021458f96e4f30b5
#!/bin/bash
# rename TMS tiles to the XYZ schema
# no quoting, since all files have simple numeric names
# do not run this anywhere else than INSIDE your tiles directory
# run it like this: find . -name "*.png" -exec ./tms2xyz.sh {} \;
filename=$1
tmp=${filename#*/} # remove to first /
@Noitidart
Noitidart / _ff-addon-snippet-CUISnips.js
Last active Aug 30, 2015
_ff-addon-snippet-CUISnips - Snippets of CustomizableUI.jsm used in Fiefox code.
View _ff-addon-snippet-CUISnips.js
id: "edit-controls",
type: "custom",
defaultArea: CustomizableUI.AREA_PANEL,
onBuild: function(aDocument) {
let buttons = [{
id: "cut-button",
command: "cmd_cut",
label: true,
tooltiptext: "tooltiptext2",
shortcutId: "key_cut",
@MarZab
MarZab / WiseTimetableToiCalendarConverter.php
Last active Oct 11, 2015
Wise Timetable to iCalendar Converter
View WiseTimetableToiCalendarConverter.php
<?php
/*
* Wise Timetable to vCalendar Converter
* @Author Marko Zabreznik
* @copyright Marko Zabreznik
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM,
You can’t perform that action at this time.