Skip to content

Instantly share code, notes, and snippets.

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

Greg Gamel ggamel

👁️
 👄  👁
View GitHub Profile
#!/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;
@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.
}