Showing posts with label one liners. Show all posts
Showing posts with label one liners. Show all posts

Saturday, December 23, 2023

how to join org files

you type this in the terminal in the current working directory and it joins all your org files you have in there and outputs them to a file called merged.org


cat *.org > merged.org

very handy indeed.

Wednesday, November 29, 2023

how to focus: brown noise

sudo apt install sox


then you can run this command to play brown noise.


whats brown noise?

Also known as Brownian noise or red noise. Its power decreases by 6 dB per octave as the frequency increases. This means that as the frequency rises, the energy decreases more slowly compared to pink noise. Brown noise contains more low-frequency components than pink noise. It's often described as having a "darker" or "deeper" sound. It is often used in audio engineering, sound masking, and relaxation purposes.

other noise

you may have heard of white noise, well theres also pink noise which has all the frequencies evenly distributed. I prefer brown for masking because its less harsh on the top end and with more low end it muffles things better imo.

protip::

you can do yourself one better by making a bash script and setting an alias for it in your .bashrc file


#!/bin/bash play -n synth brownnoise
alias noise='/home/mint/Documents/bashscripts/noise.sh'

remapping capslock to escape

xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'


thats another way ^


both of these ways don't kick in untill you open up the terminal

Monday, November 27, 2023

how to grep IP from ifconfig