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 WebSharper | |
open WebSharper.Html.Server | |
//module Endpoint | |
type Endpoints = | |
| [<EndPoint "GET /">] Home | |
| [<EndPoint "GET /about">] About |
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
➜ ~ sudo apt-get remove --auto-remove imagemagick | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following packages will be REMOVED: | |
imagemagick libbit-vector-perl libbonoboui2-0 libbonoboui2-common | |
libcarp-clan-perl libclass-data-inheritable-perl | |
libclass-method-modifiers-perl libcommon-sense-perl | |
libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libdata-random-perl | |
libdate-calc-perl libdate-calc-xs-perl libextutils-depends-perl |
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 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: Thu Aug 13 18:20:56 on ttys000 | |
[~] ruby-2.2.1 $ syslog | |
May 30 13:09:23 localhost bootlog[0] <Notice>: BOOT_TIME 1433005763 0 | |
May 30 13:11:05 localhost loginwindow[69] <Notice>: USER_PROCESS: 69 console | |
May 30 13:13:19 admins-MacBook-Pro.local loginwindow[69] <Notice>: DEAD_PROCESS: 69 console | |
May 30 13:13:20 admins-MacBook-Pro.local loginwindow[69] <Notice>: USER_PROCESS: 69 console | |
May 30 13:49:48 admins-MacBook-Pro-2.local sessionlogoutd[558] <Notice>: DEAD_PROCESS: 69 console | |
May 30 13:49:49 admins-MacBook-Pro-2.local loginwindow[564] <Notice>: USER_PROCESS: 564 console | |
May 30 13:57:29 admins-MacBook-Pro-2.local reboot[995] <Notice>: SHUTDOWN_TIME: 1433008649 229028 | |
May 30 13:57:50 localhost bootlog[0] <Notice>: BOOT_TIME 1433008670 0 |
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) |
NewerOlder