Make sure you have installed the following commands:
- swaymsg
- jq
- slurp
- awk
| # Define source and destination paths | |
| $DotFilesPath = "$HOME\dotfiles" | |
| Set-Location -Path $DotFilesPath | |
| git pull | |
| function SyncMyFiles { | |
| param( | |
| [string]$SourcePath, | |
| [string]$DestinationPath | |
| ) |
| resource "aws_route53_record" "sending_records" { | |
| zone_id = var.aws_zone_id_jesse | |
| for_each = { | |
| for r in mailgun_domain.jesse.sending_records_set : | |
| "${r.name}__${r.record_type}" => r | |
| } | |
| type = each.value.record_type | |
| records = [ | |
| join( | |
| local.delimiter, flatten( |
| defmofule MyAppWeb.NoncePlug do | |
| import Plug.Conn | |
| def init(opts \\ []), do: opts | |
| def call(conn, _opts) do | |
| style_nonce = :crypto.strong_random_bytes(16) |> Base.encode64(padding: false) | |
| script_nonce = :crypto.strong_random_bytes(16) |> Base.encode64(padding: false) | |
| conn | |
| |> assign(:my_app_style_nonce, style_nonce) |
| " from https://github.com/aduros/dotfiles/blob/eab476fc62e74e46cb41bb5c094cede7a28a014f/home/.config/nvim/options.vim#L27 | |
| autocmd BufNewFile,BufRead *.hx set filetype=haxe | |
| autocmd BufNewFile,BufRead *.jsfl set filetype=javascript | |
| autocmd BufNewFile,BufRead ~/.config/dunst/dunstrc set filetype=dosini | |
| autocmd BufNewFile,BufRead ~/.config/polybar/config set filetype=dosini | |
| autocmd BufNewFile,BufRead ~/.config/tridactyl/tridactylrc set filetype=vim | |
| autocmd BufNewFile,BufRead ~/.config/zathura/zathurarc set filetype=config | |
| autocmd BufNewFile,BufRead ~/.lesskey set filetype=config |
For excessively paranoid client authentication.
Original: https://gist.github.com/mtigas/952344
openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
| 1. Dump the data only sql to file | |
| $ pg_dump --data-only --inserts YOUR_DB_NAME > dump.sql | |
| 2. scp to local | |
| 3. Remove the SET statements at the top | |
| such as: | |
| SET statement_timeout = 0; | |
| SET client_encoding = 'SQL_ASCII'; | |
| 4. Remove the setval sequence queries |
| #!/usr/bin/env bash | |
| set -ex | |
| trap 'handleError' ERR | |
| handleError() { | |
| echo "" | |
| echo "If you encountered an error, please consider fixing" | |
| echo "the script for your environment and creating a pull" |
| #!/bin/env bash | |
| sudo snap remove firefox | |
| sudo add-apt-repository ppa:mozillateam/ppa | |
| echo ' | |
| Package: * | |
| Pin: release o=LP-PPA-mozillateam | |
| Pin-Priority: 1001 | |
| ' | sudo tee /etc/apt/preferences.d/mozilla-firefox |
| > sudo apt-key list | |
| # find last 8 of public signature, for example ABCD EFGH for jc00ke | |
| > sudo apt-key export ABCDEFGH | sudo gpg --dearmour -o /usr/share/keyrings/jc00ke.gpg | |
| > sudo -H gedit /etc/apt/sources.list.d/jc00ke.list | |
| # add [arch=amd64 signed-by=/usr/share/keyrings/jc00ke.gpg] after deb | |
| > sudo apt update | |
| > sudo apt-key del ABCDEFGH | |
| # summarized from https://askubuntu.com/a/1403964 |