Skip to content

Instantly share code, notes, and snippets.

View adamkudrna's full-sized avatar
🙈

Adam Kudrna adamkudrna

🙈
View GitHub Profile
@neatshell
neatshell / myscript
Last active May 31, 2024 14:19
simple bash template that handles mandatory and optional arguments
#!/bin/bash
script="myscript"
#Declare the number of mandatory args
margs=2
# Common functions - BEGIN
function example {
echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL"
}
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 9, 2025 07:27
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@cafuego
cafuego / gist:3074521
Created July 9, 2012 06:22
Drupal 7 Views Grid Preprocessor
<?php
/**
* Implements hook_preprocess_views_view_grid().
*
* Our own implementation removes the complete.css grid class names from
* the views grid and uses different ones instead.
*
* Specifically: col-N => view-col-N
*/
function phptemplate_preprocess_views_view_grid(&$vars) {