Skip to content

Instantly share code, notes, and snippets.

View josephbales's full-sized avatar

Joseph Bales josephbales

View GitHub Profile
@josephbales
josephbales / winblueinitial
Created June 29, 2013 11:51
Windows 8.1 initial thoughts
Love the start button, love the boot to desktop, love the desktop background on Start page
Hate crashy IE11, hate that IE11 is choking on my simple jQuery fadeIn()
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
{
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
"default_line_ending": "unix",
"font_size": 10,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
@josephbales
josephbales / EcrireInstallTest.md
Last active August 29, 2015 13:56
Possibly installing Ecrire blogging platform on CentOS with Apache and Passenger.

Ecrire Install Guide for CentOS 6.5 (experimental)

Installing Ecrire on CentOS 6.5 with Apache and Passenger. This is experimental and doesn't work. Don't try it.

@pothibo This works, but I'm still working out the procedure. I'll post it to the wiki when it's complete.

###Conventions:
Commands starting with a # should be run as root. All other commands will be marked with a $ and should be run as a non-privileged user.

Need authentication and authorization

Need calendar type model with years, months, days

Need to have debits, credits

Need to be able to repeat an item

Should start out very simple

  • a model for a month
@josephbales
josephbales / TextProcessing1
Created March 29, 2015 15:55
Takes a file, splits it into chunks of 8 lines, orders the chunks of 8 lines into a tab delimited string, writes to file
$inputfile = "Week"
$outputfile = "plan.txt"
Out-File $outputfile
$input = Get-Content $inputfile
$i = 0
$l = $input.Length
<p>This one tests titles.</p>
@josephbales
josephbales / App.java
Last active August 29, 2015 14:25
Getting Gist contents via Java
package com.josephbales.test1.testapp1;
/*
* Github libraries available through Maven
* Or here: https://github.com/eclipse/egit-github/tree/master/org.eclipse.egit.github.core
*/
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import org.eclipse.egit.github.core.*;
@josephbales
josephbales / gist:b2f6d4b93113b6ae5ec5
Created September 15, 2015 23:01
Code that gets malformed dates from a from an ObdcDataReader
while (reader.Read())
{
string line = "";
for (int i = 0; i < fCount; i++)
{
try
{
line = line + reader[i].ToString().Trim().Replace("\n", "").Replace("\r", " ") + "\t";
}