From 62cd9e29c70be5d95ebbf26cfc4cfa576062b7cf Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Thu, 19 Mar 2015 07:12:04 -0500 Subject: [PATCH] Adding some more stuff --- .vim/bundle/webapi-vim | 1 + .vim/vimwiki/vimwiki/D_and_D.wiki | 7 ++ .../vimwiki/vimwiki/Linux_Slackware_Wifi.wiki | 2 + .vim/vimwiki/vimwiki/Mac_EFI_Jailbreak.wiki | 39 ++++++++ .vim/vimwiki/vimwiki/Server_Admin_MySQL.wiki | 6 ++ .vim/vimwiki/vimwiki/Server_Admin_Rsync.wiki | 29 ++++++ .vim/vimwiki/vimwiki/Slackware_EncFS.wiki | 6 ++ .../vimwiki/bible_esv_galations_5.13-14.wiki | 3 + .vim/vimwiki/vimwiki_html/D_and_D.html | 21 ++++ .../vimwiki_html/Linux_Slackware_Wifi.html | 16 ++++ .../vimwiki_html/Mac_EFI_Jailbreak.html | 95 +++++++++++++++++++ .../vimwiki_html/Server_Admin_MySQL.html | 21 ++++ .../vimwiki_html/Server_Admin_Rsync.html | 49 ++++++++++ .../vimwiki/vimwiki_html/Slackware_EncFS.html | 21 ++++ .../bible_esv_galations_5.13-14.html | 17 ++++ 15 files changed, 333 insertions(+) create mode 160000 .vim/bundle/webapi-vim create mode 100644 .vim/vimwiki/vimwiki/D_and_D.wiki create mode 100644 .vim/vimwiki/vimwiki/Linux_Slackware_Wifi.wiki create mode 100644 .vim/vimwiki/vimwiki/Mac_EFI_Jailbreak.wiki create mode 100644 .vim/vimwiki/vimwiki/Server_Admin_MySQL.wiki create mode 100644 .vim/vimwiki/vimwiki/Server_Admin_Rsync.wiki create mode 100644 .vim/vimwiki/vimwiki/Slackware_EncFS.wiki create mode 100644 .vim/vimwiki/vimwiki/bible_esv_galations_5.13-14.wiki create mode 100644 .vim/vimwiki/vimwiki_html/D_and_D.html create mode 100644 .vim/vimwiki/vimwiki_html/Linux_Slackware_Wifi.html create mode 100644 .vim/vimwiki/vimwiki_html/Mac_EFI_Jailbreak.html create mode 100644 .vim/vimwiki/vimwiki_html/Server_Admin_MySQL.html create mode 100644 .vim/vimwiki/vimwiki_html/Server_Admin_Rsync.html create mode 100644 .vim/vimwiki/vimwiki_html/Slackware_EncFS.html create mode 100644 .vim/vimwiki/vimwiki_html/bible_esv_galations_5.13-14.html diff --git a/.vim/bundle/webapi-vim b/.vim/bundle/webapi-vim new file mode 160000 index 0000000..a7789ab --- /dev/null +++ b/.vim/bundle/webapi-vim @@ -0,0 +1 @@ +Subproject commit a7789abffe936db56e3152e23733847f94755753 diff --git a/.vim/vimwiki/vimwiki/D_and_D.wiki b/.vim/vimwiki/vimwiki/D_and_D.wiki new file mode 100644 index 0000000..7159c4d --- /dev/null +++ b/.vim/vimwiki/vimwiki/D_and_D.wiki @@ -0,0 +1,7 @@ + +Loots from 3/2/2015 +800 SP +150 GP +4 Goblets with Moonstones +Misty Step Scroll +Lightning Bolt Scroll diff --git a/.vim/vimwiki/vimwiki/Linux_Slackware_Wifi.wiki b/.vim/vimwiki/vimwiki/Linux_Slackware_Wifi.wiki new file mode 100644 index 0000000..e39fe0a --- /dev/null +++ b/.vim/vimwiki/vimwiki/Linux_Slackware_Wifi.wiki @@ -0,0 +1,2 @@ +==== Slackware Wifi (wicd) ==== +Install wicd package from the `extras` folder of the cd diff --git a/.vim/vimwiki/vimwiki/Mac_EFI_Jailbreak.wiki b/.vim/vimwiki/vimwiki/Mac_EFI_Jailbreak.wiki new file mode 100644 index 0000000..d2b3ddf --- /dev/null +++ b/.vim/vimwiki/vimwiki/Mac_EFI_Jailbreak.wiki @@ -0,0 +1,39 @@ +==="Jailbreaking" a Mac=== + +/EFI/boot/refind_ia32.efi ?> /EFI/boot/bootia32.efi +==== Steps ==== +* Boot into a live CD +* Install rEFInd +* Setup system like normal + +====Requirements==== +* [[http://www.mediafire.com/?dpgorsfdkf6nn2c | ISO2USB EFI Booter for Mac]] +* A Live CD with loopback support + * xubuntu works well + +====Installation==== +* Ensure the ISO file will fit on your USB flash drive. Backup important content from your drive — it will be erased. +* Make one large partition on your USB flash drive, using e.g. `(g)parted`, `(c)gdisk`, or `(c)fdisk`. + You can use either a GUID partition table (GPT — unless you’re using (c)fdisk) or an MSDOS/MBR partition table, both will work. Use “Microsoft basic data” (code 0700) as the partition type. +* Format the partition with FAT32. (g)parted can do this. Alternatively, you can type + `mkfs.vfat -F 32 /dev/sdX1` from the command line (after replacing the “X” with the correct letter for your USB drive). + Formatting with HFS+, as some sources indicate, didn’t work for me. +* Mount your drive and cd into it (as root: `# mkdir /mnt/usb && mount /dev/sdX1 /mnt/usb && cd /mnt/usb`). +* Create the directory `efi/boot/` in the current directory (`# mkdir -p efi/boot/`) — + (i.e., the full path of this directory is `/mnt/usb/efi/boot/` if your USB drive is mounted in `/mnt/usb/`). +* Copy either `bootIA32.efi` or `bootX64.efi` to the new directory (depending on whether you have a 32 or 64-bit system), + and rename the file to boot.efi. + * Old White Macbook needs `bootIA32.efi` +* Copy the downloaded LiveCD image to the new directory, and rename it to `boot.iso`. + +That’s all. The USB drive now contains two directories and two files, and should boot. +Make sure you used the file and directory names as provided here. For clarity, all that is +now on your USB drive is (relative to the root directory of that drive): +`/efi/boot/boot.iso` +`/efi/boot/boot.efi` + +In order to install Linux, I booted Kubuntu using the method described above, installed rEFInd +from there, which then allowed me to boot from a normal Live USB flash drive. I ended up installing +Arch Linux. The details and non-trivialities of the Linux installation will be described in a future +post. I didn’t manage to install Linux without installing rEFInd though, so in retrospect I might as +well have installed rEFInd on my new disc, mounted as an external disc to my other Linux computer. diff --git a/.vim/vimwiki/vimwiki/Server_Admin_MySQL.wiki b/.vim/vimwiki/vimwiki/Server_Admin_MySQL.wiki new file mode 100644 index 0000000..ab9db5b --- /dev/null +++ b/.vim/vimwiki/vimwiki/Server_Admin_MySQL.wiki @@ -0,0 +1,6 @@ +=== Grant User Privileges === +`GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON database. TO ''@'';` + +=== View User Privileges === +`SHOW GRANTS FOR ''@'';` + diff --git a/.vim/vimwiki/vimwiki/Server_Admin_Rsync.wiki b/.vim/vimwiki/vimwiki/Server_Admin_Rsync.wiki new file mode 100644 index 0000000..58d6f5a --- /dev/null +++ b/.vim/vimwiki/vimwiki/Server_Admin_Rsync.wiki @@ -0,0 +1,29 @@ +==== RSync ==== +Basic Rsync Backup +`rsync -av source/ destination/` +To/From Remote +`rsync -av -e ssh source/ username@remotemachine:/path/to/destination/` + +=====Trailing Slashes _Do_ matter... Sometimes===== +Rsync cares about trailing slashes on the *source* argument. +For example, let `a` and `b` be two directories with the file `foo` initially in `a`: +`rsync -a a b` +produces `b/a/foo` whereas +`rsync -a a/ b` +produces `b/foo`. A trailing slash on the destination has no effect. + +=====Incremental Backups using Rsync===== +Needs rsync v.2.5.7 or later +{{{ +rm -rf backup_folder.1 +mv backup_folder.0 backup_folder.1 # Obviously, can have as many backups copies as you want +rsync -a --delete --link-dest=../backup_folder.1 source_directory/ backup_folder.0/ +}}} +If running an older rsync: +{{{ +mv backup_folder.1 backup_folder.tmp +mv backup_folder.0 backup_folder.1 +mv backup_folder.tmp backup_folder.0 +cp -al backup_folder.1/. backup_folder.0 +rsync -a --delete source_directory/ backup_folder.0/ +}}} diff --git a/.vim/vimwiki/vimwiki/Slackware_EncFS.wiki b/.vim/vimwiki/vimwiki/Slackware_EncFS.wiki new file mode 100644 index 0000000..293a4a4 --- /dev/null +++ b/.vim/vimwiki/vimwiki/Slackware_EncFS.wiki @@ -0,0 +1,6 @@ +Mount: +encfs + +Unmount: +fusermount -u + diff --git a/.vim/vimwiki/vimwiki/bible_esv_galations_5.13-14.wiki b/.vim/vimwiki/vimwiki/bible_esv_galations_5.13-14.wiki new file mode 100644 index 0000000..d4a6360 --- /dev/null +++ b/.vim/vimwiki/vimwiki/bible_esv_galations_5.13-14.wiki @@ -0,0 +1,3 @@ +13 For you were called to freedom, brothers. Only do not use your freedom as an opportunity for the flesh, but through love serve one another. +14 For the whole law s fulfilled in one word: "You shall love your neighbor as yourself." +15 But if you bite and devour one another, watch out that you are not consumed by one another. diff --git a/.vim/vimwiki/vimwiki_html/D_and_D.html b/.vim/vimwiki/vimwiki_html/D_and_D.html new file mode 100644 index 0000000..667b50f --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/D_and_D.html @@ -0,0 +1,21 @@ + + + + +D_and_D + + + + + +

+Loots from 3/2/2015 +800 SP +150 GP +4 Goblets with Moonstones +Misty Step Scroll +Lightning Bolt Scroll +

+ + + diff --git a/.vim/vimwiki/vimwiki_html/Linux_Slackware_Wifi.html b/.vim/vimwiki/vimwiki_html/Linux_Slackware_Wifi.html new file mode 100644 index 0000000..857ae38 --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/Linux_Slackware_Wifi.html @@ -0,0 +1,16 @@ + + + + +Linux_Slackware_Wifi + + + + +

Slackware Wifi (wicd)

+

+Install wicd package from the extras folder of the cd +

+ + + diff --git a/.vim/vimwiki/vimwiki_html/Mac_EFI_Jailbreak.html b/.vim/vimwiki/vimwiki_html/Mac_EFI_Jailbreak.html new file mode 100644 index 0000000..80a91f9 --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/Mac_EFI_Jailbreak.html @@ -0,0 +1,95 @@ + + + + +Mac_EFI_Jailbreak + + + + +

"Jailbreaking" a Mac

+ +

+/EFI/boot/refind_ia32.efi ?> /EFI/boot/bootia32.efi +

+

Steps

+
    +
  • +Boot into a live CD + +
  • +Install rEFInd + +
  • +Setup system like normal + +
+ +

Requirements

+ + +

Installation

+
    +
  • +Ensure the ISO file will fit on your USB flash drive. Backup important content from your drive — it will be erased. + +
  • +Make one large partition on your USB flash drive, using e.g. (g)parted, (c)gdisk, or (c)fdisk. + You can use either a GUID partition table (GPT — unless you’re using (c)fdisk) or an MSDOS/MBR partition table, both will work. Use “Microsoft basic data” (code 0700) as the partition type. + +
  • +Format the partition with FAT32. (g)parted can do this. Alternatively, you can type + mkfs.vfat -F 32 /dev/sdX1 from the command line (after replacing the “X” with the correct letter for your USB drive). + Formatting with HFS+, as some sources indicate, didn’t work for me. + +
  • +Mount your drive and cd into it (as root: # mkdir /mnt/usb && mount /dev/sdX1 /mnt/usb && cd /mnt/usb). + +
  • +Create the directory efi/boot/ in the current directory (# mkdir -p efi/boot/) — + (i.e., the full path of this directory is /mnt/usb/efi/boot/ if your USB drive is mounted in /mnt/usb/). + +
  • +Copy either bootIA32.efi or bootX64.efi to the new directory (depending on whether you have a 32 or 64-bit system), + and rename the file to boot.efi. + +
      +
    • +Old White Macbook needs bootIA32.efi + +
    +
  • +Copy the downloaded LiveCD image to the new directory, and rename it to boot.iso. + +
+ +

+That’s all. The USB drive now contains two directories and two files, and should boot. +Make sure you used the file and directory names as provided here. For clarity, all that is +now on your USB drive is (relative to the root directory of that drive): +/efi/boot/boot.iso +/efi/boot/boot.efi +

+ +

+In order to install Linux, I booted Kubuntu using the method described above, installed rEFInd +from there, which then allowed me to boot from a normal Live USB flash drive. I ended up installing +Arch Linux. The details and non-trivialities of the Linux installation will be described in a future +post. I didn’t manage to install Linux without installing rEFInd though, so in retrospect I might as +well have installed rEFInd on my new disc, mounted as an external disc to my other Linux computer. +

+ + + diff --git a/.vim/vimwiki/vimwiki_html/Server_Admin_MySQL.html b/.vim/vimwiki/vimwiki_html/Server_Admin_MySQL.html new file mode 100644 index 0000000..5ac7830 --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/Server_Admin_MySQL.html @@ -0,0 +1,21 @@ + + + + +Server_Admin_MySQL + + + + +

Grant User Privileges

+

+GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON database.<table|*> TO '<user>'@'<localhost|domain>'; +

+ +

View User Privileges

+

+SHOW GRANTS FOR '<user>'@'<localhost|domain>'; +

+ + + diff --git a/.vim/vimwiki/vimwiki_html/Server_Admin_Rsync.html b/.vim/vimwiki/vimwiki_html/Server_Admin_Rsync.html new file mode 100644 index 0000000..5c6d5cf --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/Server_Admin_Rsync.html @@ -0,0 +1,49 @@ + + + + +Server_Admin_Rsync + + + + +

RSync

+

+Basic Rsync Backup +rsync -av source/ destination/ +To/From Remote +rsync -av -e ssh source/ username@remotemachine:/path/to/destination/ +

+ +
Trailing Slashes Do matter... Sometimes
+

+Rsync cares about trailing slashes on the source argument. +For example, let a and b be two directories with the file foo initially in a: +rsync -a a b +produces b/a/foo whereas +rsync -a a/ b +produces b/foo. A trailing slash on the destination has no effect. +

+ +
Incremental Backups using Rsync
+

+Needs rsync v.2.5.7 or later +

+
+rm -rf backup_folder.1
+mv backup_folder.0 backup_folder.1 # Obviously, can have as many backups copies as you want
+rsync -a --delete --link-dest=../backup_folder.1 source_directory/ backup_folder.0/
+
+

+If running an older rsync: +

+
+mv backup_folder.1 backup_folder.tmp
+mv backup_folder.0 backup_folder.1
+mv backup_folder.tmp backup_folder.0
+cp -al backup_folder.1/. backup_folder.0
+rsync -a --delete source_directory/ backup_folder.0/
+
+ + + diff --git a/.vim/vimwiki/vimwiki_html/Slackware_EncFS.html b/.vim/vimwiki/vimwiki_html/Slackware_EncFS.html new file mode 100644 index 0000000..ce84773 --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/Slackware_EncFS.html @@ -0,0 +1,21 @@ + + + + +Slackware_EncFS + + + + +

+Mount: +encfs <encoded-dir> <mount-pount> +

+ +

+Unmount: +fusermount -u <mount-point> +

+ + + diff --git a/.vim/vimwiki/vimwiki_html/bible_esv_galations_5.13-14.html b/.vim/vimwiki/vimwiki_html/bible_esv_galations_5.13-14.html new file mode 100644 index 0000000..2f96d6d --- /dev/null +++ b/.vim/vimwiki/vimwiki_html/bible_esv_galations_5.13-14.html @@ -0,0 +1,17 @@ + + + + +bible_esv_galations_5.13-14 + + + + +

+13 For you were called to freedom, brothers. Only do not use your freedom as an opportunity for the flesh, but through love serve one another. +14 For the whole law s fulfilled in one word: "You shall love your neighbor as yourself." +15 But if you bite and devour one another, watch out that you are not consumed by one another. +

+ + +