Skip to content

Instantly share code, notes, and snippets.

View RensTillmann's full-sized avatar

Rens Tillmann RensTillmann

View GitHub Profile
@Jekis
Jekis / toggle_swap.sh
Last active June 8, 2026 07:15
Empty swap. Clear swap. Move swap to RAM. Ubuntu.
#!/bin/bash
function echo_mem_stat () {
mem_total="$(free | grep 'Mem:' | awk '{print $2}')"
free_mem="$(free | grep 'Mem:' | awk '{print $7}')"
mem_percentage=$(($free_mem * 100 / $mem_total))
swap_total="$(free | grep 'Swap:' | awk '{print $2}')"
used_swap="$(free | grep 'Swap:' | awk '{print $3}')"
swap_percentage=$(($used_swap * 100 / $swap_total))
@roblogic
roblogic / msys2-setup.md
Last active January 7, 2026 21:53
MSYS2 first time setup
@BretFisher
BretFisher / docker-cli-tips-and-tricks.md
Last active March 23, 2026 03:04
Docker CLI Tips and Tricks
@stormwild
stormwild / woocommerce-create-order.md
Last active August 7, 2025 18:49
WooCommerce Creating Order Programmatically

WooCommerce Creating Order Programmatically

WooCommerce Create Order

creating Woocommerce order with line_item programatically

// http://stackoverflow.com/questions/26581467/creating-woocommerce-order-with-line-item-programatically
$address = array(
            'first_name' => 'Fresher',
@davfre
davfre / git_cheat-sheet.md
Last active May 28, 2026 02:49
git commandline cheat-sheet
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 11, 2026 06:40
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname