Skip to content

Instantly share code, notes, and snippets.

@Jinksi
Jinksi / webhook.sh
Last active August 27, 2019 14:09
Bash script for Gitlab Webhook setup & Wordpress
#!/bin/bash
# v0.9.0
# Run from Wordpress installation directory
# DEFINE COLORS
RED='\033[0;31m' # error
GRN='\033[0;32m' # success
BLU='\033[0;34m' # task
BRN='\033[0;33m' # headline
NC='\033[0m' # no color
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active May 16, 2024 16:50
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@sebz
sebz / grunt-hugo-lunrjs.md
Last active April 29, 2024 16:44
hugo + gruntjs + lunrjs = <3 search
@amitu
amitu / rails_tz.py
Created November 4, 2013 14:24
Python dictionary that maps rails specific timezones to standard timezones. http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html. Twitter returns timezones in this format.
{
"Abu Dhabi": "Asia/Muscat",
"Adelaide": "Australia/Adelaide",
"Alaska": "America/Juneau",
"Almaty": "Asia/Almaty",
"American Samoa": "Pacific/Pago_Pago",
"Amsterdam": "Europe/Amsterdam",
"Arizona": "America/Phoenix",
"Astana": "Asia/Dhaka",
"Athens": "Europe/Athens",
@loschke
loschke / Bootstrap-thumbnail-hover-grid.html
Last active March 9, 2023 20:48
Bootstrap - Thumbnail Hover Caption with Tooltip Blog Article: http://goo.gl/x2GSQ
<!-- Bootstrap Markup -->
<div class="container">
<ul class="thumbnails" id="hover-cap"> <!-- add id attr to thumbnail list -->
<li class="span3">
<div class="thumbnail">
<div class="caption">
<h4>Caption Title</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
<p><a href="#" class="btn btn-inverse" rel="tooltip" title="Preview"><i class="icon-eye-open"></i></a> <a href="#" rel="tooltip" title="Visit Website" class="btn btn-inverse"><i class="icon-share"></i></a></p>
</div>
@error454
error454 / googleAnalyticsCoinAlert.js
Last active January 13, 2018 16:46
Greasemonkey script that plays a sound every time you get a new active user in google analytics realtime view.
// ==UserScript==
// @name Google Analytics Realtime Alerts
// @namespace http://mobilecoder.wordpress.com
// @version 1.0
// @description Plays a sound when you get a new user, you can change the sound by hosting your own file on dropbox or other web location
// @match https://www.google.com/analytics/web/?hl=en#realtime*
// ==/UserScript==
// Your custom sound goes here
mCoinSound = new Audio("https://dl.dropbox.com/u/7079101/coin.mp3");