Skip to content

Instantly share code, notes, and snippets.

View cvan's full-sized avatar
🚌
🌊

Christopher Van cvan

🚌
🌊
View GitHub Profile
@cvan
cvan / limd-build-macos.sh
Created March 11, 2024 21:58 — forked from LukeZGD/limd-build-macos.sh
Build libimobiledevice stack for macOS with ease
#!/bin/bash
# Adapted from
# https://gist.github.com/LukeZGD/0f5ba45494912c419f59bd8178ab57bd
# If you like this script and my work on libimobiledevice, please
# consider becoming a patron at https://patreon.com/nikias - Thanks <3
REV=1.0.10-cvan
export MACOSX_DEPLOYMENT_TARGET=10.13
@cvan
cvan / limd-build-macos.sh
Last active October 10, 2023 03:16 — forked from nikias/limd-build-macos.sh
Build libimobiledevice stack for macOS with ease
#!/bin/bash
# If you like this script and my work on libimobiledevice, please
# consider becoming a patron at https://patreon.com/nikias - Thanks <3
REV=1.0.12
if test -x "`which tput`"; then
ncolors=`tput colors`
if test -n "$ncolors" && test $ncolors -ge 8; then
@cvan
cvan / index.js
Last active March 24, 2020 20:19 — forked from MoOx/index.js
Export GitHub Labels as JSON (name, description, color)
// Remixed from original source: https://gist.github.com/MoOx/93c2853fee760f42d97f
//
// 1. Go to a GitHub Labels page. (e.g., https://github.com/cssnext/cssnext/labels)
// 2. Open your Dev Tools' Console and paste this script.
// 3. Now you have a dump of your labels.
//
// P.S. The JSON output can be later imported using a tool using https://github.com/popomore/github-labels
labels = [];
Array.prototype.forEach.call(document.querySelectorAll('.Box-row a[class^=IssueLabel]'), el => {
@cvan
cvan / twitter.com.js
Last active August 29, 2015 14:16 — forked from lonnen/twitter.com.js
declutter Twitter
Array.prototype.slice.call(
document.querySelectorAll('.dashboard, .trends-inner, .wtf-module')
).forEach(function (el) {
el.remove();
});
var timeline = document.querySelector('#timeline');
timeline.style.float = 'none';
timeline.style.width = 'auto';
for file in `git diff-tree --no-commit-id --name-only -r HEAD | sort | uniq`
do
if [ ${file: -3} == ".py" ]
then
flake8 --ignore=E121,E123,E124,E125,E126,E127,E128 $file
fi
if [ ${file: -3} == ".js" ]
then
jshint $file
fi
{
"name": "servers",
"windows": [
{
"name": "zamboni",
"command": ". ~/s/z-runserver"
}, {
"name": "solitude",
"command": ". ~/s/s-runserver"
}, {
// Usage : less2stylusDir('../src/css/');
var fs = require('fs');
// this less 2 stylus conversion script make a stylus easy to read syntax
// - let the braces
// - replace the @ for var as $
// - let semicolons
function less2stylus(less)