This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tc-ConversationItem[class] .tc-ConversationItem__avatar .tc-AvatarImage { | |
// modify these with something like calc(200%), or manual width/height "box" around the image | |
// which then gets zoomed to fit | |
width: 52px; | |
height: 52px; | |
} | |
.tc-AvatarImage[class].tc-AvatarImage--size--fit { | |
display: block; | |
width: 100%; |
After installing new packages, the M-x man
command might not list the new manpages for those packages, because the whatis
DB used by man
gets updated weekly via a cron job. Further, any manpages for programs that are part of the XCode Commandline Tools will never get installed because the cron job inexplicably excludes them. To make force them to be generated, run the following:
sudo /etc/periodic/weekly/320.whatis
sudo /usr/libexec/makewhatis /Applications/Xcode.app/Contents/Developer/usr/share/man
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before | |
$ wrk -c 20 -t 6 -d 50s http://localhost:8181/health/healthcheck | |
Running 50s test @ http://localhost:8181/health/healthcheck | |
6 threads and 20 connections | |
Thread Stats Avg Stdev Max +/- Stdev | |
Latency 73.58ms 112.85ms 375.41ms 87.91% | |
Req/Sec 138.11 97.30 348.00 66.52% | |
41179 requests in 50.00s, 10.76MB read | |
Requests/sec: 823.57 | |
Transfer/sec: 220.37KB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export NODE_EXEC=/proj/helpers/node/node | |
export V8_PATH=/proj/helpers/node/deps/v8/out/native | |
if test -z "$1"; then | |
export PATH=/proj/helpers/node:"$PATH" | |
echo "Now using node $(which node); Ctrl+D to exit" | |
$SHELL | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Improved Javascript support | |
(add-to-list 'load-path (concat my-emacs-path "/elisp/js2-mode")) | |
(autoload 'js2-mode "js2-mode" nil t) | |
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) | |
;; Node REPL using SLIME | |
(add-to-list 'load-path (concat my-emacs-path "/elisp/slime")) | |
(add-to-list 'load-path (concat my-emacs-path "/elisp/slime/contrib")) | |
(require 'slime) | |
(autoload 'slime-js-minor-mode "slime-js" nil t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Assumptions: | |
;; | |
;; - Solarized (dark) theme has already been loaded | |
;; https://github.com/sellout/emacs-color-theme-solarized | |
;; | |
;; - Nicks in ERC buffer before running this code may look weird. | |
;; New activity in ERC buffer after running this code should look OK. | |
(defun mwolson/make-erc-themeable () | |
(interactive) |