emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
// ==UserScript== | |
// @name Amazon Prevent language switch away from German | |
// @description Some amazon urls will change your language settings. Only use german versions | |
// @namespace https://sahlbach.com/misc/greasemonkey/ | |
// @match https://*.amazon.de/-/*/dp/* | |
// @exclude https://*.amazon.de/-/de/dp/* | |
// @run-at document-start | |
// @version 1 | |
// @grant none | |
// @icon https://www.amazon.com/favicon.ico |
#!/usr/bin/env perl | |
## uncolor — remove terminal escape sequences such as color changes | |
while (<>) { | |
s/ \e[ #%()*+\-.\/]. | | |
\e\[ [ -?]* [@-~] | # CSI ... Cmd | |
\e\] .*? (?:\e\\|[\a\x9c]) | # OSC ... (ST|BEL) | |
\e[P^_] .*? (?:\e\\|\x9c) | # (DCS|PM|APC) ... ST | |
\e. //xg; | |
print; | |
} |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
;; in your init.el | |
(defun ace/org-export-insert-export-date(&optional backend) | |
"Searches for %%DATE_EXPORTED%% in the buffer and replaces all occurrences | |
Just put the keyword somewhere in your org buffer and the time stamp of the | |
export is inserted in the exported buffer. The original buffer is untouched." | |
(goto-char (point-min)) | |
(while (search-forward "%%DATE_EXPORTED%%" nil t) | |
(replace-match (format-time-string "%0e.%0m.%Y %R")))) |
# create a clean reboot without the windows you don't want to have | |
# by rebooting your mac (uncheck the reopen windows checkbox in the reboot dialog | |
# take over this file | |
sudo chown root ~/Library/Preferences/ByHost/com.apple.loginwindow* | |
# and prevent further changes (checkbox in reboot dialog doesn't matter) | |
sudo chmod 000 ~/Library/Preferences/ByHost/com.apple.loginwindow* | |
# to undo it, simply delete the file. It will be recreated automatically |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Nullable[T any] struct { | |
val *T | |
} |