A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
See the original gist for more details.
A ZSH theme optimized for people who use:
See the original gist for more details.
[global_config] | |
title_transmit_bg_color = "#839496" | |
title_inactive_fg_color = "#93a1a1" | |
title_transmit_fg_color = "#eee8d5" | |
title_inactive_bg_color = "#586e75" | |
[keybindings] | |
[profiles] | |
[[default]] | |
palette = "#073642:#d30102:#859900:#b58900:#6c71c4:#d33682:#2aa198:#839496:#586e75:#cb4b16:#859900:#b58900:#268bd2:#d33682:#2aa198:#93a1a1" | |
login_shell = True |
brew install docker
)brew uninstall —force —cask docker
)brew install colima docker-credential-helper
# prompt | |
function _git_prompt() { | |
local git_status="`git status -unormal 2>&1`" | |
if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then | |
if [[ "$git_status" =~ Changed\ but\ not\ updated ]] || [[ "$git_status" =~ Untracked\ files ]] || [[ "$git_status" =~ Changes\ not\ staged ]] || [[ "$git_status" =~ Unmerged\ paths ]]; then | |
local color="0;31" # red | |
elif [[ "$git_status" =~ Changes\ to\ be\ committed ]]; then | |
local color="0;32" | |
else | |
local color="1;32" |
<?php | |
function set() { | |
return new Set(func_get_args()); | |
} | |
class Set implements Countable, Iterator { | |
private $data = array(); | |
function __construct($data) { |
// Basic cons list. | |
// Elements are defined as functions so we can have lazy sequences. | |
function cons(x, xs) { | |
return { | |
head: function() { return x; }, | |
tail: typeof xs === 'function' ? xs : function() { return xs; } | |
}; | |
} | |
function isEmpty(xs) { return xs === undefined; } |
# start over serial connection | |
sudo nmcli dev wifi con "<SSID>" password "<PASSWORD>" | |
sudo apt-get update | |
sudo apt-get install shairport-sync | |
sudo vi /etc/default/avahi-daemon # set AVAHI_DAEMON_DETECT_LOCAL=0 |
import React from 'react'; | |
import {Switch, Link, Route, HashRouter} from 'react-router-dom'; | |
import {Modal, Button} from 'react-bootstrap'; | |
const UserModal = () => { | |
return ( | |
<Modal.Dialog> | |
<Modal.Header> | |
<Modal.Title> | |
<Switch> |
#!/bin/bash | |
# n.b. I haven't tested this version - see comments at https://gist.github.com/gists/962048 | |
# download the driver rpm | |
wget http://download.fujixerox.co.jp/pub/exe/apeosport/c4300series/fxlinuxprint-1.0.3-2.i386.rpm | |
# alien will convert the rpm to a deb we can install | |
sudo aptitude install alien | |
sudo alien --scripts -k fxlinuxprint-1.0.3-2.i386.rpm |
diff --git a/config.rb b/config.rb | |
index 7b9f9b3..e8dcf6f 100644 | |
--- a/config.rb | |
+++ b/config.rb | |
@@ -24,3 +24,9 @@ configure :build do | |
# Or use a different image path | |
# set :http_path, "/Content/images/" | |
end | |
+ | |
+helpers do |