aboutsummaryrefslogtreecommitdiff
path: root/pages/wiki
diff options
context:
space:
mode:
Diffstat (limited to 'pages/wiki')
-rw-r--r--pages/wiki/alpine-linux.md37
-rw-r--r--pages/wiki/cgit.md57
-rw-r--r--pages/wiki/dotfiles.md138
-rw-r--r--pages/wiki/openbsd.md6
-rw-r--r--pages/wiki/ps2.md6
-rw-r--r--pages/wiki/qutebrowser.md28
-rw-r--r--pages/wiki/safari.md31
-rw-r--r--pages/wiki/scripts.md74
-rw-r--r--pages/wiki/sublime-text.md47
-rw-r--r--pages/wiki/ubuntu.md85
-rw-r--r--pages/wiki/xbox.md5
11 files changed, 514 insertions, 0 deletions
diff --git a/pages/wiki/alpine-linux.md b/pages/wiki/alpine-linux.md
new file mode 100644
index 0000000..8edd90c
--- /dev/null
+++ b/pages/wiki/alpine-linux.md
@@ -0,0 +1,37 @@
+# Alpine Linux
+
+This page contains a helpful collection of configuration and application setups for Alpine Linux.
+
+## Run Mullvad on Alpine Linux (Wireguard)
+
+
+ # Install wireguard
+ apk add wireguard-tools
+
+
+Login into Mullvad and download the proper wireguard configuration files(s). After downloaded, place in the proper directory:
+
+
+ doas cp <MULLVAD_FILENAME>.conf /etc/wireguard/"
+
+
+Then setup an aliases for easier up/down states:
+
+
+ alias vpnup="doas wg-quick up /etc/wireguard/<MULLVAD_FILENAME>.conf"
+ alias vpndown="doas wg-quick down /etc/wireguard/<MULLVAD_FILENAME>.conf"
+
+## Alpine Linux `mini_racer` Tweaks
+
+Gem lockfile:
+
+
+ PLATFORMS
+ ruby
+ x86_64-linux-musl
+
+ mini_racer (0.6.3)
+ <remove child dependency>
+
+
+then run: `bundle update mini_racer`
diff --git a/pages/wiki/cgit.md b/pages/wiki/cgit.md
new file mode 100644
index 0000000..3e2c7d7
--- /dev/null
+++ b/pages/wiki/cgit.md
@@ -0,0 +1,57 @@
+# cgit
+
+This page contains a comprehensive guide to setting up cgit on NearlyFreeSpeech. It is assumed that you already have an account with NFS and also have access to a "site" online.
+
+Most of the following has been lifted from [NearlyFreeSpeech cgit application walkthrough](https://members.nearlyfreespeech.net/wiki/Applications/Cgit) but has been tweaked and updated.
+
+You can see a **live version** [here](https://git.btxx.org).
+
+## Building cgit
+
+The following assumes that you wish to have cgit running at the top-level of your chosen domain (ie. git.example.com)
+
+SSH into your account then download and unpack the latest release:
+
+ git clone git://git.zx2c4.com/cgit cgit-src
+ cd cgit-src
+
+Create a cgit.conf file with desired locations:
+
+ CGIT_SCRIPT_PATH = /home/public
+ CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH)
+ CGIT_CONFIG = $(CGIT_SCRIPT_PATH)/cgitrc
+ CACHE_ROOT = $(CGIT_SCRIPT_PATH)/cgitcache
+ prefix = $(CGIT_SCRIPT_PATH)/local
+
+Get the git sources (needed to build libgit):
+
+ git submodule init
+ git submodule update
+
+Build and install it:
+
+ gmake install
+
+## Configuration
+
+Make a text file named `cgitrc` where you specified CGIT_CONFIG and add the following (these are some personal defaults to make things cleaner):
+
+ logo=/cgit.png
+ root-title=main root title
+ root-desc=description for your git server
+ root-readme=/home/public/about.md
+ virtual-root=/
+
+ about-filter=/home/public/cgit-src/filters/about-formatting.sh
+ readme=:README.md
+ readme=:README
+
+ include=/home/protected/cgitrepos
+
+Then in the specified file (`cgitrepos`), place your repos, ex:
+
+ repo.url=MyRepo
+ repo.path=/home/public/MyRepo.git
+ repo.desc=This is my git repository
+
+**And you should be good to go!**
diff --git a/pages/wiki/dotfiles.md b/pages/wiki/dotfiles.md
new file mode 100644
index 0000000..7802c00
--- /dev/null
+++ b/pages/wiki/dotfiles.md
@@ -0,0 +1,138 @@
+# dotfiles
+
+This page contains my (mostly) up-to-date dotfiles for a wide range of use cases.
+
+## .vimrc
+
+
+ " Don't try to be vi compatible
+ set nocompatible
+
+ " Helps force plugins to load correctly when it is turned back on below
+ filetype off
+
+ " TODO: Load plugins here (pathogen or vundle)
+
+ " Turn on syntax highlighting
+ syntax on
+
+ " For plugins to load correctly
+ filetype plugin indent on
+
+ " TODO: Pick a leader key
+ " let mapleader = ","
+
+ " Security
+ set modelines=0
+
+ " Show line numbers
+ set number
+
+ " Show file stats
+ set ruler
+
+ " Blink cursor on error instead of beeping (grr)
+ set visualbell
+
+ " Encoding
+ set encoding=utf-8
+
+ " Whitespace
+ set wrap
+ set textwidth=79
+ set formatoptions=tcqrn1
+ set tabstop=2
+ set shiftwidth=2
+ set softtabstop=2
+ set expandtab
+ set noshiftround
+
+ " Cursor motion
+ set scrolloff=3
+ set backspace=indent,eol,start
+ set matchpairs+=<:> " use % to jump between pairs
+ runtime! macros/matchit.vim
+
+ " Move up/down editor lines
+ nnoremap j gj
+ nnoremap k gk
+
+ " Allow hidden buffers
+ set hidden
+
+ " Rendering
+ set ttyfast
+
+ " Status bar
+ set laststatus=2
+
+ " Last line
+ set showmode
+ set showcmd
+
+ " Searching
+ nnoremap / /\v
+ vnoremap / /\v
+ set hlsearch
+ set incsearch
+ set ignorecase
+ set smartcase
+ set showmatch
+ map <leader><space> :let @/=''<cr> " clear search
+
+ " Remap help key.
+ inoremap <F1> <ESC>:set invfullscreen<CR>a
+ nnoremap <F1> :set invfullscreen<CR>
+ vnoremap <F1> :set invfullscreen<CR>
+
+ " Textmate holdouts
+
+ " Formatting
+ map <leader>q gqip
+
+ " Visualize tabs and newlines
+ set listchars=tab:▸\ ,eol:¬
+ " Uncomment this to enable by default:
+ " set list " To enable by default
+ " Or use your leader key + l to toggle on/off
+ map <leader>l :set list!<CR> " Toggle tabs and EOL
+
+ " Color scheme (terminal)
+ set t_Co=256
+ set background=dark
+ let g:solarized_termcolors=256
+ let g:solarized_termtrans=1
+ " put https://raw.github.com/altercation/vim-colors-solarized/master/colors/solarized.vim
+ " in ~/.vim/colors/ and uncomment:
+ " colorscheme solarized
+
+## .zshrc extras / aliases
+
+ export EDITOR="/bin/vim"
+
+ alias suck="sudo rm -rf config.h ; sudo make install"
+ alias fixmonitor="xrandr --auto --output eDP1 --mode 1366x768 --below DP2-2"
+ alias alias vscode="ENABLE_WASM=1 chrome --enable-wasm --disable-unveil"
+ export PATH="/usr/local/bin:$PATH"
+ export PATH="$PATH:/opt/local/bin"
+ export PATH="$PATH:/mongodb/bin"
+
+## mimeapps.list
+
+Place this file under `/usr/share/applications/mimeapps.list`
+
+ [Default Applications]
+ x-scheme-handler/http=org.qutebrowser.qutebrowser.desktop
+ x-scheme-handler/https=org.qutebrowser.qutebrowser.desktop
+ x-scheme-handler/ftp=org.qutebrowser.qutebrowser.desktop
+ x-scheme-handler/chrome=org.qutebrowser.qutebrowser.desktop
+ text/html=org.qutebrowser.qutebrowser.desktop
+ application/x-extension-htm=org.qutebrowser.qutebrowser.desktop
+ application/x-extension-html=org.qutebrowser.qutebrowser.desktop
+ application/x-extension-shtml=org.qutebrowser.qutebrowser.desktop
+ application/xhtml+xml=org.qutebrowser.qutebrowser.desktop
+ application/x-extension-xhtml=org.qutebrowser.qutebrowser.desktop
+ application/x-extension-xht=org.qutebrowser.qutebrowser.desktop
+ image/jpeg=feh
+ image/png=feh
+ image/webp=feh
diff --git a/pages/wiki/openbsd.md b/pages/wiki/openbsd.md
new file mode 100644
index 0000000..a4bc67e
--- /dev/null
+++ b/pages/wiki/openbsd.md
@@ -0,0 +1,6 @@
+# OpenBSD
+
+This page contains all of my personal scripts and tutorials for OpenBSD. The content ranges from setting up laptops and desktops, to running personal servers and optimization tweaks.
+
+* [[openbsd/installation]]
+* [[openbsd/desktop_environment]]
diff --git a/pages/wiki/ps2.md b/pages/wiki/ps2.md
new file mode 100644
index 0000000..5317eef
--- /dev/null
+++ b/pages/wiki/ps2.md
@@ -0,0 +1,6 @@
+# PS2
+
+This page contains information about setting up PS2 hardware (and emulators) to work with online play.
+
+* [[ps2/pcsx2]]
+* [[ps2/networking]]
diff --git a/pages/wiki/qutebrowser.md b/pages/wiki/qutebrowser.md
new file mode 100644
index 0000000..02e003b
--- /dev/null
+++ b/pages/wiki/qutebrowser.md
@@ -0,0 +1,28 @@
+# Qutebrowser
+
+This page contains all the custom configuration for qutebrowser.
+
+### Greasemonkey
+
+All of these scripts should be added under `~/.local/share/qutebrowser/greasemonkey/`. Then be sure to run the proper command within qutebrowser: `:greasemonkey-reload`
+
+#### Auto Skip YouTube Ads
+
+ // ==UserScript==
+ // @name Auto Skip YouTube Ads
+ // @version 1.0.0
+ // @description Speed up and skip YouTube ads automatically
+ // @author jso8910
+ // @match *://*.youtube.com/*
+ // @exclude *://*.youtube.com/subscribe_embed?*
+ // ==/UserScript==
+ setInterval(() => {
+ const btn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button')
+ if (btn) {
+ btn.click()
+ }
+ const ad = [...document.querySelectorAll('.ad-showing')][0];
+ if (ad) {
+ document.querySelector('video').playbackRate = 10;
+ }
+ }, 50)
diff --git a/pages/wiki/safari.md b/pages/wiki/safari.md
new file mode 100644
index 0000000..5601b0e
--- /dev/null
+++ b/pages/wiki/safari.md
@@ -0,0 +1,31 @@
+# Safari
+
+This page contains details on how to properly configure Safari for the best user experience.
+
+## Extensions
+
+To avoid being bombarded with tracking scripts and advertisements, you'll want to install the following Safari extensions:
+
+* [AdGuard](https://adguard.com/en/adguard-mac/overview.html)
+* [AdBlock](https://adblockplus.org/ad-blocker-safari)
+
+## Web Browsing QoL
+
+Display full links on hover (similar to default config for Firefox, Chrome):
+
+1. Open the `View` menu item
+2. Click `Show Status Bar`
+
+Display full URL address in open tabs:
+
+![Safari toggling ful adress URLs](safari-full-address.png)
+
+## Custom CSS
+
+Include a "master" CSS file to override specific sites/elements with your own styling.
+
+1. Open Safari `Settings`
+2. Navigate to the `Advanced` tab
+3. Select your custom CSS file in the dropdown
+
+![Safari toggling ful adress URLs](safari-settings-custom-css.png)
diff --git a/pages/wiki/scripts.md b/pages/wiki/scripts.md
new file mode 100644
index 0000000..78bf537
--- /dev/null
+++ b/pages/wiki/scripts.md
@@ -0,0 +1,74 @@
+# Scripts
+
+This page contains helpful scripts and useful terminal commands.
+
+## Docker
+
+Installing `ghost`
+
+
+ docker pull ghost
+ docker run -d \
+ --name ghost-name \
+ -e NODE_ENV=development \
+ -p 2368:2368 \
+ -v $HOME/path/to/ghost/blog:/var/lib/ghost/content \
+ ghost:alpine
+
+
+## `ffmpeg` to MP4
+
+
+ ffmpeg -i input_filename.avi -c:v copy -c:a copy -y output_filename.mp4
+
+
+## Mount USB HDD via CLI
+
+
+ mkdir /media/usb-drive
+ mount /dev/sdX /media/usb-drive/
+
+
+## Fix screen tearing
+
+
+ sudo vim /etc/X11/xorg.conf.d/20-intel.conf
+
+
+Add the following contents to `20-intel.conf`:
+
+
+ Section "OutputClass"
+ Identifier "Intel Graphics"
+ MatchDriver "i915"
+ Driver "intel"
+ Option "DRI" "3"
+ Option "TearFree" "1"
+ EndSection
+
+
+## Enabling "tap to click"
+
+
+ sudo micro /etc/X11/xorg.conf.d/30-touchpad.conf
+
+
+Add the following contents to `30-touchpad.conf`:
+
+
+ Section "InputClass"
+ Identifier "touchpad"
+ Driver "libinput"
+ MatchIsTouchpad "on"
+ Option "Tapping" "on"
+ Option "TappingButtonMap" "lmr"
+ EndSection
+
+
+## Woocommerce
+
+**Reset all product menu_order to `0`**
+
+
+ UPDATE wp_posts SET menu_order = 0 WHERE post_type = 'product';
+
diff --git a/pages/wiki/sublime-text.md b/pages/wiki/sublime-text.md
new file mode 100644
index 0000000..d7f105a
--- /dev/null
+++ b/pages/wiki/sublime-text.md
@@ -0,0 +1,47 @@
+# Sublime Text
+
+Personal configuration for the text editor Sublime Text ([https://www.sublimetext.com/](sublimetext.com/))
+
+## Themes / Color Schemes
+
+* Theme: Default
+* Color scheme is set to `auto`:
+ * Light scheme: `Breakers`
+ * Dark scheme: `Dracula`
+
+## Plugins
+
+* BracketHighlighter
+* Copy Relative Path
+* Dracula Color Scheme
+* Emmet
+* Package Control
+
+## Settings
+
+
+ {
+ "ignored_packages":
+ [
+ "Vintage",
+ ],
+ "color_scheme": "auto",
+ "dark_color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
+ "light_color_scheme": "Packages/Colorsublime - Themes/Butterfly.tmTheme",
+ "font_face": "JetBrains Mono NL",
+ "font_size": 14,
+ "line_padding_top": 3,
+ "line_padding_bottom": 3,
+ "highlight_line": true,
+ "word_wrap": true,
+ "dark_theme": "Default Dark.sublime-theme",
+ "light_theme": "Default.sublime-theme",
+ "tab_size": 2,
+ "theme": "auto",
+ "index_files": true,
+ "show_definitions": false,
+ "show_full_path": true,
+ /*"tab_size": 2,*/
+ "translate_tabs_to_spaces": true,
+ }
+
diff --git a/pages/wiki/ubuntu.md b/pages/wiki/ubuntu.md
new file mode 100644
index 0000000..cfd7560
--- /dev/null
+++ b/pages/wiki/ubuntu.md
@@ -0,0 +1,85 @@
+# Ubuntu
+
+This page contains a wide range of common scripts / application setups for Ubuntu
+
+## MongoDB 3.4 on Ubuntu 23.10
+
+ wget http://launchpadlibrarian.net/668089858/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
+ sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
+
+ echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
+
+Now edit `/etc/apt/sources.list.d/mongodb-org-3.4.list`:
+
+ deb [trusted=yes] http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.4...
+
+Then finish things up:
+
+ sudo apt-get update --allow-unauthenticated
+ sudo apt-get install -y mongodb-org
+
+ sudo mkdir -p /data/db
+ sudo chmod -R 777 /data/db
+
+## Redis 6.0.7 on Ubuntu 23.10
+
+ sudo apt-get install build-essential tcl
+ cd /tmp
+ curl -O http://download.redis.io/releases/redis-6.0.7.tar.gz
+ tar xzvf redis-6.0.7.tar.gz
+ cd redis-6.0.7
+
+Install redis:
+
+ make
+ make test
+ sudo make install
+
+ sudo mkdir /etc/redis
+ sudo cp /tmp/redis-6.0.7/redis.conf /etc/redis
+
+Edit `/etc/redis/redis.conf` with the following changes:
+
+- `supervised systemd`
+- `dir /var/lib/redis`
+
+Create systemd unit file for redis: `/etc/systemd/system/redis.service`:
+
+ [Unit]
+ Description=Redis In-Memory Data Store
+ After=network.target
+
+ [Service]
+ User=redis
+ Group=redis
+ ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
+ ExecStop=/usr/local/bin/redis-cli shutdown
+ Restart=always
+
+ [Install]
+ WantedBy=multi-user.target
+
+Final steps:
+
+ sudo adduser --system --group --no-create-home redis
+ sudo mkdir /var/lib/redis
+ sudo chown redis:redis /var/lib/redis
+ sudo chmod 770 /var/lib/redis
+
+## Ruby 2.7.2 with rbenv on Ubuntu 23.10
+
+Edit the `/etc/apt/sources.list` file:
+
+ deb [trusted=yes] http://security.ubuntu.com/ubuntu bionic-security main
+
+Then run `sudo apt-get update`. After completion, install `libssl1.0-dev`:
+
+ sudo apt-get install libssl1.0-dev
+
+Install `rbenv` and be sure to include the following in `.zshrc`:
+
+ export PATH="$HOME/.rbenv/bin:$PATH"
+ eval "$(rbenv init -)"
+
+
diff --git a/pages/wiki/xbox.md b/pages/wiki/xbox.md
new file mode 100644
index 0000000..9f5b14e
--- /dev/null
+++ b/pages/wiki/xbox.md
@@ -0,0 +1,5 @@
+# Xbox
+
+This page contains all the details of my personal setup for the original Xbox console. This includes cleaning, repasting thermals, soft modding and more.
+
+* [[xbox/softmodding]]