Skip to content

Instantly share code, notes, and snippets.

@glsmaxx2015
glsmaxx2015 / hoststoggle
Created August 15, 2017 18:18
Toggles hostsblockingscript OFF Run hostsblockingscript to restart adfree situation
## BY: Greg Shubert ON: 08-15-2017##
## hoststoggle....Turns OFF hostsblockingscript.
## To toggle back to mostly ADDFREE run hostsblockingscript
#!/bin/bash
rm -rf /etc/hosts
cp /root/hostsbackup /etc/hosts
@glsmaxx2015
glsmaxx2015 / FreeBSD10.3_XFCE4.txt
Last active September 30, 2016 18:20
FreeBSD 10.3 WITH XFCE4 DE Install Notes
BSD WITH XFCE4
Greg Shubert 9-29-16
Make Sure When adding a Usr to add the user to "wheel" group
ReBoot, Remove Media, and Login With ROOT User
@glsmaxx2015
glsmaxx2015 / pdf2txt.sh
Created August 24, 2016 19:28
Linux Convert pdf File To ascii Text; Write The Converted File To Disk
#! /bin/sh
# #############################################################################
NAME_="pdf2txt"
HTML_="convert pdf to text"
PURPOSE_="convert pdf file to ascii text; write the converted file to disk"
SYNOPSIS_="$NAME_ [-vhlr] <file> [file...]"
@glsmaxx2015
glsmaxx2015 / MP4toMP3.sh
Created August 24, 2016 19:24
Linux MP4 To MP3 Converter Script
#!/bin/bash
## MP4 to MP3 in ~/Music
## BY: Greg Shubert ON: 4-30-16
MP4FILE=$(ls ~/Music/ |grep .mp4)
for filename in $MP4FILE
@glsmaxx2015
glsmaxx2015 / 2png.sh
Created August 24, 2016 19:18
convert image file to png format
#! /bin/sh
# #############################################################################
NAME_="2png"
HTML_="convert to png image format"
PURPOSE_="convert image file to png format"
SYNOPSIS_="$NAME_ [-vhl] [-r] <file> [file...]"
REQUIRES_="standard GNU commands, ImageMagick"
VERSION_="1.3"
@glsmaxx2015
glsmaxx2015 / AComptonConfig.txt
Last active August 4, 2016 23:53
Lenn'ys Compton Config
## 8-4-16
## Don't Call Me Lenny's Compton Config
#################################
#
# Backend
#
#################################
@glsmaxx2015
glsmaxx2015 / ArchInstallNotes.txt
Last active March 7, 2021 22:11
Vanilla Arch Linux Install Notes
8-4-16
## Youtube Video of This Install
https://www.youtube.com/watch?v=i3bClkRKLyw&list=TL0Lm2JGRRvuwwNDA4MjAxNg
Install Plain Vanilla Arch
=========================
1. These install instructions assume that you already have your partition designated and already have another Linux distro
that boots from that drive. In this case you do not need to install grub to your new Arch install. You will just need to boot
into your prime distro and run "os-prober" and "update-grub".
@glsmaxx2015
glsmaxx2015 / bashrc.txt
Created July 2, 2016 17:54
Bashrc From 4-28-2016 w/ many additions
### ~/bashrc ###
## BY: Greg Shubert ON: 4-28-2016
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return