Skip to content

Instantly share code, notes, and snippets.

Jacqueline S. Homan jacqueline-homan

Block or report user

Report or block jacqueline-homan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Adrienne File Problem revisited
module Adrienne.Main
#r "YamlDotNet.dll"
open System
open System.IO
open System.Collections.Generic
open System.Text
open YamlDotNet.RepresentationModel
open System.Xml
View Adrienne File Problem revisited
// NOTE: If warnings appear, you may need to retarget this project to .NET 4.0. Show the Solution
// Pad, right-click on the project node, choose 'Options --> Build --> General' and change the target
// framework to .NET 4.0 or .NET 4.5.
module Adrienne.Main
open System
open System.IO
open System.Collections.Generic
@jacqueline-homan
jacqueline-homan / Tutorial
Created May 11, 2016
Lighttpd Web Server Setup on Ubuntu 14.04 - LTS
View Tutorial
# Setting Up MediaWiki With the Lighttpd Web Server on Ubuntu 14.04 #
## by Jacqueline S. Homan ##
**MediaWiki** is a popular Wiki framework. It is a "webapp," meaning that instead of being installed like a traditional program, a tarball (or compressed/gzipped file) of scripts and PHP code is downloaded and decompressed into the document root (usually /var/www/http/, in our case /var/www/) of the server. The web server, usually Apache, can then serve the wiki up to other machines which access it over port 80 and the correct URL.
In this article, we will be installing the latest MediaWiki onto an Ubuntu 14.04.4 "Trusty Tahr" LTS host, using Lighttpd as our web server rather than Apache. The steps documented here will work on both a locally-installed copy of Ubuntu and on a remotely-hosted VPS such as Linode or Digital Ocean.
MediaWiki requires an SQL database backend and a PHP interpreter in order to work. We will be setting up what is known as a "LLMP stack" (Linux, Lighttpd, MySQL/MariaDB, PHP), where Lig
View Rosalind project
open System
open System.IO
let path = @"/home/jacque/Projects/F-sharp/Rosalind/Rosalind/rosalind_dna.txt"
let inputFromFile = File.ReadAllText(path)
let program (dna:string) =
inputFromFile
let countAs (inputFromFile:string) =
View rossmo.py
#!/usr/bin/env python3
import math
crimes=[(5,4), (6,3), (5,3), (7,3)]
phi=5
f, g= 2, 2
b=3
a=0
for j in range(10):
for i in range(10):
View vagrant still not working
➜ tmp git:(master) ✗ rm cache
rm: cache: is a directory
➜ tmp git:(master) ✗ rm -rf cache
➜ tmp git:(master) ✗ rm logs
rm: logs: is a directory
➜ tmp git:(master) ✗ rm -rf logs
➜ tmp git:(master) ✗ ls
➜ tmp git:(master) ✗ cd ../..
➜ apistudyabroad.dev git:(master) ✗ cd ..
➜ vagrant-lamp-ror git:(master) ✗ vagrant up --provision
View vagrant provisioning problems
➜ vagrant-lamp-ror git:(master) ✗ vagrant up --provision
Bringing machine 'local' up with 'virtualbox' provider...
==> local: Checking if box 'puphpet/ubuntu1404-x64' is up to date...
==> local: Clearing any previously set forwarded ports...
==> local: Clearing any previously set network interfaces...
==> local: Preparing network interfaces based on configuration...
local: Adapter 1: nat
local: Adapter 2: hostonly
==> local: Forwarding ports...
local: 22 (guest) => 7752 (host) (adapter 1)
View mess
[07:50 PM]-[vagrant@local]-[~]
$ sudo lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 534 root 6u IPv4 9575 0t0 UDP *:sunrpc
rpcbind 534 root 7u IPv4 9620 0t0 UDP *:640
rpcbind 534 root 8u IPv4 9621 0t0 TCP *:sunrpc (LISTEN)
rpcbind 534 root 9u IPv6 9622 0t0 UDP *:sunrpc
rpcbind 534 root 10u IPv6 9623 0t0 UDP *:640
rpcbind 534 root 11u IPv6 9624 0t0 TCP *:sunrpc (LISTEN)
rpc.statd 570 statd 4u IPv4 9688 0t0 UDP localhost:746
View F# Coding Kata gist
open System
open System.IO
let printNumbers() =
printfn "Welcome to the coding challenge where your program should successfully"
printfn "accept the input of two integers and output their sum and product"
printfn ""
printfn "Enter an integer: "
let a = Console.ReadLine() |> int
printfn "Enter another integer: "
@jacqueline-homan
jacqueline-homan / Unable to get Postgres working
Created Jan 12, 2016
Unable to get Postgres working after upgrade to El Capitan
View Unable to get Postgres working
This file has been truncated, but you can view the full file.
Last login: Mon Jan 11 14:25:28 on ttys000
➜ ~ sudo chgrp -R brew /usr/local
Password:
chgrp: brew: illegal group name
➜ ~ brew update
Updated Homebrew from 1a778dd to 5b4713a.
Updated 2 taps (caskroom/cask, caskroom/versions).
==> New Formulae
slackcat
You can’t perform that action at this time.