(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
set listchars=tab:→\ ,trail:␣,extends:…,eol:⏎ | |
set listchars=tab:→\ ,trail:␣,precedes:«,extends:»,eol:⏎ | |
set listchars=tab:→\ ,trail:·,precedes:«,extends:»,eol:¶ | |
set listchars=tab:‣\ ,trail:·,precedes:«,extends:»,eol:¬ | |
set listchars=tab:␋\ ,trail:␠,precedes:«,extends:»,eol: | |
set listchars=tab:>-,trail:.,precedes:<,extends:>,eol:$ |
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort) | |
fshow() { | |
local out shas sha q k | |
while out=$( | |
git log --graph --color=always \ | |
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | | |
fzf --ansi --multi --no-sort --reverse --query="$q" \ | |
--print-query --expect=ctrl-d --toggle-sort=\`); do | |
q=$(head -1 <<< "$out") | |
k=$(head -2 <<< "$out" | tail -1) |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <sys/kern_event.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <string.h> | |
#include <net/ethernet.h> |
#!/bin/bash | |
# | |
# Created: 2017-07-02 16:20 | |
# Updated: 2018-02-09 12:23 | |
# Creator: Ryan Miller | |
# Website: http://devopsmachine.com/ | |
# File: /usr/local/bin/set-primary-monitor-pantheon-greeter | |
# | |
# Set correct primary monitor for login screen when lightdm greeter starts up on Elementary OS. | |
# |
; Creality Ender-3 S1 Pro Optimal Start GCode for Cura Slicer Software. | |
; By John Scott, 2023. https://gist.github.com/JohnScottUK/8acd76895716b3abda4fde270738daf3 | |
;M117 Set Movement... | |
G90; Use absolute positioning. | |
M83; Use relative extrusion. | |
;M117 Heating Bed... | |
M140 S{material_bed_temperature_layer_0}; Start heating bed. |