This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Adrienne.Main | |
#r "YamlDotNet.dll" | |
open System | |
open System.IO | |
open System.Collections.Generic | |
open System.Text | |
open YamlDotNet.RepresentationModel | |
open System.Xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: " |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
==> Updated Formulae |
NewerOlder