- Increase speed of dock animation
defaults write com.apple.dock autohide-time-modifier -float 0.4; killall Dock
- Remove dock animation
defaults write com.apple.dock autohide-time-modifier -int 0; killall Dock
This file contains hidden or 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
# | |
# Install Terraform on Amazon Linux 2023 | |
# | |
# Install plugin for DNF. | |
sudo dnf install --assumeyes 'dnf-command(config-manager)' | |
# Add Terraform repository. | |
sudo dnf config-manager \ | |
--add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo | |
# Install terraform package. |
This file contains hidden or 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
curl http://169.254.169.254/opc/v1/instance/ | |
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/ | |
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/ | |
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name> |
This file contains hidden or 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
ssh-keygen -t ed25519 -a 200 -C "you@host" -f ~/.ssh/my_new_id_ed25519 |
- Get path of remote socket: execute on remote host
emacs --batch --execute "(progn (require 'server) (princ (expand-file-name \"remote\" server-socket-dir) #'external-debugging-output))"
- Get path of local socket: execute on local host
emacs --batch --execute "(progn
This file contains hidden or 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
sudo dnf -y install '@Development Tools' cmake gnutls-devel libgccjit-devel ncurses-devel wget | |
wget https://ftpmirror.gnu.org/emacs/emacs-28.1.tar.gz https://ftpmirror.gnu.org/emacs/emacs-28.1.tar.gz.sig | |
gpg --keyserver keyserver.ubuntu.com --recv-keys 17E90D521672C04631B1183EE78DAE0F3115E06B | |
gpg --verify emacs-28.1.tar.gz.sig | |
tar zxf emacs-28.1.tar.gz | |
cd emacs-28.1 | |
./configure --with-native-compilation | |
make | |
src/emacs -Q | |
src/emacs --debug-init --chdir ~ |
straight-pull-package
- Pull a single package to upgrade it to the latest version.
straight-pull-package-and-deps
- Pull a package and all of its dependencies.
straight-pull-all
- Upgrade all of your active packages.
straight-check-package
- Activate the upgraded version of a package while Emacs is running.
straight-check-all
- Check packages to see if their files have changed since the last build and rebuild them if necessary.
straight-rebuild-all
- Unconditionally rebuild all packages.
This file contains hidden or 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use IO::Socket::SSL; | |
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new(ssl_opts => { | |
verify_hostname => 0, |
This file contains hidden or 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
(setq blb/confluence-page-sig "~/doc/confluence-rd-snippet.xml") | |
(defun blb/confluence-org-get-export () | |
(interactive) | |
(confluence-toggle-page-content-type) | |
(let ((export-buffer (get-buffer "*org CONFLUENCE Export*"))) | |
(buffer-swap-text export-buffer) | |
(kill-buffer export-buffer)) | |
(confluence-toggle-page-content-type) | |
(save-excursion | |
(goto-char (point-max)) |
NewerOlder