Skip to content

Instantly share code, notes, and snippets.

View ggamel's full-sized avatar
👁️
 👄  👁

Greg Gamel ggamel

👁️
 👄  👁
View GitHub Profile
@ggamel
ggamel / gist:4d3bfb96208aa9a9e4d0880aa93f7a11
Created June 26, 2025 18:27 — forked from spilist/gist:6b065cda20c0e75436d018e147f0cad9
Custom command to open Claude Code with optimized configurations.
# .bashrc version. Source: https://bagerbach.com/blog/how-i-use-claude-code#running-claude-code
function ccv() {
local env_vars=(
"ENABLE_BACKGROUND_TASKS=true"
"FORCE_AUTO_BACKGROUND_TASKS=true"
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=true"
"CLAUDE_CODE_ENABLE_UNIFIED_READ_TOOL=true"
)
local claude_args=()

ZFS

zpool status -v #shows zpool status infos

zpool iostat 1 #shows IOps and R/W bandwidth every second

zfs list -t snapshot #lists all the snapshots, add | grep "" to filter

arc_summary.py #shows ARC stats
@ggamel
ggamel / emoji.js
Created October 28, 2015 21:42 — forked from minamarkham/emoji.js
Add emojis to URL
function emoji() {
if (navigator.userAgent.indexOf('Mac OS X') != -1) {
window.location.hash = "💋";
}
};
emoji();
// only works on Macs 😞
@ggamel
ggamel / form.html
Last active August 29, 2015 14:26 — forked from sskylar/form.html
Formspree + Siteleaf metadata
<form action="//formspree.io/{{ site.meta.contact_email }}" method="POST">
<input type="email" name="_replyto" placeholder="Your email">
<textarea name="message" rows="5" placeholder="Your message"></textarea>
<input type="submit" value="Send">
</form>
@ggamel
ggamel / README.md
Last active August 29, 2015 14:22 — forked from mbostock/.block
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Sample Form</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.8.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<script type="text/javascript">
@ggamel
ggamel / index.html
Created February 28, 2013 14:43 — forked from wboykinm/index.html
<DOCTYPE !HTML>
<style>
img.tile {
position:absolute;
}
#download {
position:absolute;
top:10px;
left:10px;
@ggamel
ggamel / nav.scss
Created February 27, 2013 19:48 — forked from mirisuzanne/nav.scss
nav {
float: left;
width: columns(4) + gutter()*.5; // the outer two just need half a gutter added.
&:nth-child(2) { width: columns(4) + gutter(); } // the middle needs a full gutter (half on each side).
@include nth-omega(3); // you might not need this, but it may help keep things clean.
}
/*
Older email clients and (some) webmail clients (Gmail!) will apply
this rule. Some clients (like older Lotus Notes) don't
support background-color on links, so I didn't want white
links on a white background.
*/
a.button {
background-color: #FFFFFF;
color: #d9286b;
}
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<title>Download SVG</title>
<style type="text/css">
a{
cursor: pointer;
text-decoration: underline;
color: black;