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=()
#!/bin/bash
# Set the computer name
sudo scutil --set ComputerName "COMPUTERNAME"
# Set the host name
sudo scutil --set HostName "COMPUTERNAME"
# Set the local host name
sudo scutil --set LocalHostName "COMPUTERNAME"
@ggamel
ggamel / palenight.js
Last active May 3, 2022 16:32
Material Palenight Color Scheme for Blink Shell
// Material Palenight Color Scheme for Blink Shell
// by Greg Gamel (https://github.com/ggamel) (https://greg.is)
black = '#292d3e';
red = '#f07178'; // red
green = '#c3e88d'; // green
yellow = '#ffcb6b'; // yellow
blue = '#82aaff'; // blue
magenta = '#c792ea'; // pink
cyan = '#89ddff'; // cyan

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
@ggamel
ggamel / index.html
Last active August 29, 2015 14:19
DOMinate the DOM
<!-- http://git.io/vvibE -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<!-- Your site title -->
<title>DOMinate the DOM</title>
<!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;