Skip to content

Instantly share code, notes, and snippets.

View drazisil's full-sized avatar
💭
Always Online - Somewhere

Molly Crendraven drazisil

💭
Always Online - Somewhere
View GitHub Profile
@drazisil
drazisil / msysGit context menu
Created November 3, 2010 17:52
msysGit context menu registry key
On my Windows 7 32-bit install, with my msysget install's bin directory in the path, the following command works as well:
HKEY_CLASSES_ROOT\Directory\shell\git_shell\command
cmd.exe /c "pushd "%L" && "sh.exe" --login -i"
@drazisil
drazisil / gist:dd8f905c815603cc0be5
Created April 12, 2015 04:25
Installing Raspberry Pi 2 3.18 Kernel Headers
https://www.raspberrypi.org/forums/viewtopic.php?t=99016&p=687280
by gwizz » Wed Feb 18, 2015 12:51 pm
I've found the easiest way for me is this: (provided you are ok with a slightly older kernel)
sudo aptitude install -y linux-image-rpi2-rpfv linux-headers-rpi2-rpfv
echo -e "kernel=vmlinuz-3.18.0-trunk-rpi2\ninitramfs initrd.img-3.18.0-trunk-rpi followkernel" | sudo tee -a /boot/config.txt
sudo reboot
@drazisil
drazisil / bitcoinGenesisTx.json
Last active September 20, 2023 17:09
Bitcoin Genesis Transaction in JSON format
{
"txid" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
"version" : 1,
"locktime" : 0,
"vin" : [
{
"coinbase" : "04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73",
"sequence" : 4294967295
}
],
@drazisil
drazisil / pretty-json.php
Last active October 12, 2021 16:15
Pretty-print a JSON string in PHP.
<?php
/**
* Formats a JSON string for pretty printing
*
* @param string $json The JSON to make pretty
* @param bool $html Insert nonbreaking spaces and <br />s for tabs and linebreaks
* @return string The prettified output
* @author Jay Roberts
*/
machine:
node:
version: v0.11.13
environment:
COVERALLS_REPO_TOKEN: "xxx"
CIRCLE_ARTIFACTS: "coverage"
general:
artifacts:
- "coverage" # relative to the user's home directory
'use strict'
var gulp = require('gulp')
var standard = require('gulp-standard')
var mocha = require('gulp-mocha')
var istanbul = require('gulp-istanbul')
var coveralls = require('gulp-coveralls')
gulp.task('standard', function () {
return gulp.src(['./app.js'])
#!/bin/bash
#curl -s -k -H "Accept: application/json" "https://circleci.com/api/v1/recent-builds?circle-token=:$CIRCLE_BUILD_TOKEN&limit=1" | echo
#foo=$(($?))
WHO_BROKE_IT=$(git log HEAD^..HEAD --pretty='%aN <%aE>' | sort -u)
echo "Build Broke! (I blame $WHO_BROKE_IT)"
echo "Installing email software..."
sudo apt-get install bsd-mailx sendemail
echo "Sending email to the offending party..."
#uuencode file1.png file1.png | mail -s "Funny" users@groups.nixcraft.net.i
sendEmail -f "build status <build-status@no-reply.circleci.localhost>" -t "$WHO_BROKE_IT" -u "You Broke the build!" -m "https://circleci.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BUILD_NUM"
'use strict'
var gulp = require('gulp')
var standard = require('gulp-standard')
var mocha = require('gulp-mocha')
var istanbul = require('gulp-istanbul')
var coveralls = require('gulp-coveralls')
var output_path = process.cwd()

Keybase proof

I hereby claim:

  • I am drazisil on github.
  • I am drazisil (https://keybase.io/drazisil) on keybase.
  • I have a public key whose fingerprint is F8D8 0649 FD55 F862 E1B4 E227 1EE4 D5E2 5311 E3CD

To claim this, I am signing this object: