Skip to content

Instantly share code, notes, and snippets.

View listenrightmeow's full-sized avatar
🦍

Mike Dyer listenrightmeow

🦍
View GitHub Profile
@leonardofed
leonardofed / README.md
Last active May 26, 2024 20:28
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@varemenos
varemenos / 1.README.md
Last active April 21, 2024 23:21
Git log in JSON format

Get Git log in JSON format

git log --pretty=format:'{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},'

The only information that aren't fetched are:

  • %B: raw body (unwrapped subject and body)
  • %GG: raw verification message from GPG for a signed commit
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@dawnerd
dawnerd / news.css
Created November 10, 2011 23:44
short Ticker.js
#news { background: #666; color: #fff; padding: 4px 0; width: 100%; height: 30px; line-height: 30px; overflow: hidden; }
#news .container { float: left; }
#news .overflow { width: 900000px; }
#news .item { padding: 0 20px; }
@pjkix
pjkix / css-stats-ack.sh
Created October 5, 2011 21:39
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@dawnerd
dawnerd / nodemasher.js
Created August 4, 2011 23:15
node masher
module.exports = function(app) {
app.helpers({
getJS: function(key) {
var output = '';
app.configure('development', function(){
try {
var files = app.set('masher_config').JAVASCRIPT[key];
for(var i = 0, c = files.length; i < c; i++) {
var file = files[i].replace('./public', '');
output += '<script src="'+file+'"></script>';
@dawnerd
dawnerd / Super short countdown.js
Last active September 24, 2015 05:57
Shortest countdown function ever.
setInterval(function() {
console.log([s = [86400000, 3600000, 60000, 1000]][0].map(function(t) {
return ("0" + [(t===s[0] && (remaining = (future - ~~(+new Date()/1000))*1000)), left = ~~(remaining/t), remaining -= left*t][1]).slice(-2);
}).join(':'));
}, [1000, future = +new Date()/1000 + 100000][0]);