Skip to content

Instantly share code, notes, and snippets.

View torch2424's full-sized avatar
🥁
Makin' Beats

Aaron Turner torch2424

🥁
Makin' Beats
  • Oceanfront Online
  • Long Beach, CA
  • 10:06 (UTC -07:00)
View GitHub Profile
@torch2424
torch2424 / SqlPractice
Last active April 16, 2019 21:24
Lab 3 Databases, Sql practice for the lab exams
CREATE TABLE authors
(
au_id CHAR(3) NOT NULL,
au_fname VARCHAR(15) NOT NULL,
au_lname VARCHAR(15) NOT NULL,
phone VARCHAR(12) ,
address VARCHAR(20) ,
city VARCHAR(15) ,
state CHAR(2) ,
zip CHAR(5) ,
@torch2424
torch2424 / JDBC SQL Database Project
Last active April 1, 2019 21:15
SQL For creating the database for the JDBC project
---SQL CODE---
/* Create Our Tables */
CREATE TABLE recgroup
(
groupname VARCHAR(15) NOT NULL,
leadsinger VARCHAR(15),
yearformed VARCHAR(20) NOT NULL,
genre VARCHAR(15),
@torch2424
torch2424 / JDBC Java
Last active October 15, 2015 19:46
Java code for the jdbc project
---JAVA CODE---
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
@torch2424
torch2424 / Macro-MicrosoftOffice-SaveEveryIndividualPageAs-HTML
Last active November 10, 2015 16:21
A Microsoft Offics Macro used in the process of converting a large word document into individual html files
/*********************************
COMMENTS - DO NOT COPY THIS CODE
Worked in the past, I remember having to do this weird thing to get the pages to save a certain place, but I forget.
You may need to adjust "For idx = 1 To numPages" to numPages being the actual pages, as the loop broke on me once.
Also, If you navigate to the desired output folder with the "save as" button,
@torch2424
torch2424 / Ascii Art to jpg
Created November 14, 2015 20:53
For Code and Coffee. Can take any ascii art text file, and create a huge image of random colors representing that Ascii art
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import java.util.Scanner;
@torch2424
torch2424 / personal bash.rc
Last active February 10, 2016 21:53
My Added variables and things for stuff like android and Ionic, and random aliases I use
#This was done automatically by: https://github.com/glenpike/npm-g_nosudo
NPM_PACKAGES="/home/torch2424/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath`
# command
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
@torch2424
torch2424 / .conkyrc
Created January 27, 2016 18:57
My Conky config file, makes a preety little conky
#Example image: (TO DO)
#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_right
background yes
border_margin 5
border_width 5
color0 555555 #
color1 FCAF3E # zolty
@torch2424
torch2424 / gist:1c753eee361d89981851429ce6e01806
Created October 5, 2016 19:18
Just a simple Example Proxy pass template for apache
#Nice little guide
# http://blog.podrezo.com/making-node-js-work-with-apache/
<VirtualHost *:80>
# Reverse proxy from gogs github issue: https://github.com/gogits/gogs/issues/806
#
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:PORT/
ProxyPassReverse / http://localhost:PORT/
@torch2424
torch2424 / privacyPolicyAds.html
Created February 7, 2017 19:36
Aaron Turner Apps Privacy policy
<h2 style="text-align: center;">PRIVACY POLICY MODEL FOR MOBILE APPLICATIONS</h2>
<p></p>
<p>This privacy policy governs your use of the software application (“Application”) for mobile devices that was created by&nbsp;Aaron Turner.&nbsp;</p>
<h4>&nbsp;</h4>
<h4>What information does the Application obtain and how is it used?</h4>
<p></p>
<p><strong>User Provided Information</strong>&nbsp;</p>
<p>The Application obtains the information you provide when you download and register the Application.&nbsp;Registration with us is optional. However, please keep in mind that you may not be able to use some of the features offered by the Application unless you register with us.</p>
<p></p>
@torch2424
torch2424 / compareFolders.sh
Last active February 18, 2017 09:20
A bash script for getting the different file names between two folders. This is useful for removing Files that are named wrong in Hyperspin setups
#/bin/bash
# http://stackoverflow.com/questions/26935515/in-linux-how-to-compare-two-directories-by-filename-only-and-get-list-of-result
# How to read bash script flags: http://stackoverflow.com/questions/14447406/bash-shell-script-check-for-a-flag-and-grab-its-value
if [ "$#" -ne 4 ]; then
# Not Enough Params, Show Usage