Skip to content

Instantly share code, notes, and snippets.

View kpb's full-sized avatar
💭
I'm mostly water

Kenneth Bowen kpb

💭
I'm mostly water
View GitHub Profile

Formatting and labeling an ext4 disc

Writing this down because I have to look it up every damn time.

Assuming the drive is /dev/sdb.

Unmount the Drive (if needed)

$ umount /dev/sdb1
@kpb
kpb / emacs-foo.md
Last active December 10, 2020 00:52
Sundry Emacs Foo

Edit Local File with su/sudo

I always forget this syntax...

C-x C-f /su::/etc/hosts
C-x C-f /sudo::/etc/hosts

Split window into 3 even vertical windows

C-x 3 C-x 3 C-x +
@kpb
kpb / gradle-foo.md
Last active June 3, 2020 15:52
Sundry Gradle examples

Task to build a javadoc jar

task javadocJar(type: Jar, dependsOn: javadoc) {
  classifier = 'javadoc'
  from javadoc.destinationDir
}

Javadoc include private/protected/package access modifiers

@kpb
kpb / apt_foo.md
Last active August 11, 2019 00:22

Sundry Apt Foo

Remove PPAs

$ sudo add-apt-repository --remove ppa:whatever/ppa

Or, install ppa-purge:

@kpb
kpb / vagrant.md
Last active January 31, 2021 15:59
Vagrant Malarkey

Install Guest Additions in Centos7/8 boxes

After watching this fail over and over, these vbguest plugin args did the trick:

$ vagrant vbguest --do install --no-cleanup

Reference an Included File from an Included Vagrant File

From hashicorp/vagrant#4364

@kpb
kpb / git-links.md
Last active January 17, 2018 16:30
git-links
@kpb
kpb / orgmode.md
Last active April 29, 2016 14:46
Org-Mode stuff I can never remeber

9.6.1 Moving a tree to the archive file

The most common archiving action is to move a project tree to another file, the archive file.

C-c C-x C-s or short C-c $ (org-archive-subtree)

Archive the subtree starting at the cursor position to the location given by org-archive-location.

in buffer settings

@kpb
kpb / css.md
Last active February 9, 2016 16:07
sundry css
# place in ~/.local/share/applications
[Desktop Entry]
Name=IntelliJ
Icon=/home/kbowen/bin/idea-IU-139.1117.1/bin/idea.png
Exec=/home/kbowen/bin/idea-IU-139.1117.1/bin/idea.sh %U
Categories=Development
StartupNotify=true
Terminal=false
Type=Application
@kpb
kpb / xubuntu_setup.md
Last active September 13, 2016 22:11
Sundry xubuntu set up details
  • Add user to vboxsf group (if this is a virtualbox vm)
$ sudo usermod -a -G vboxsf <user>
  • xfce emacs keybindings
$ xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs
  • Add Printer
  • maven error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty