This guide was written while setting up an Unbuntu VPS. There may be some differences when setting up a different distro.
Do some basic setup as the root user, which should mainly consist of
| > data Thing = Thing {a :: Int, b :: Int, c :: Int} deriving Show | |
| > :t | |
| Thing :: Int -> Int -> Int -> Thing | |
| > Thing {a = 10} | |
| <interactive>:13:1: Warning: | |
| Fields of ‘Thing’ not initialised: b, c | |
| In the expression: Thing {a = 10} | |
| In an equation for ‘it’: it = Thing {a = 10} |
| #!/bin/bash | |
| # This script will install a Git pre-push hook that prevents force pushing the master/main branch. | |
| # There are three variants that I have built: | |
| # - pre-push: prevents force-pushing to master/main. | |
| # - pre-push-2: prevents force-pushing to master/main depending on the remote (you need to edit the file!). | |
| # - pre-push-3: prevents any type of pushing to master/main. | |
| # Set the desired version like this before proceeding: | |
| # FILE=pre-push | |
| # Single repo installation: |
| # So, this is a port of a fairly simple script from "normal Python" to "pure-lambda | |
| # Python". This code contains no Python statements, and is a proof-of-concept to show | |
| # what you can do without statements, and how powerful Python's lambdas are despite | |
| # that they are crippled. | |
| # | |
| # A few notes on how to read this: | |
| # 1. Almost everything happens in the arguments. Practially nothing happens | |
| # inside function bodies, since the function bodies are usually just other | |
| # functions. Go down to the bottom of the expression (using your editor's | |
| # paren matching) to see what the arguments are. |
| """ | |
| stormpath-seed.py | |
| ~~~~~~~~~~~~~~~~~ | |
| A simple utility which creates a new Stormpath application named 'test' (or | |
| uses one already named 'test', if it exists), and creates a number of user | |
| accounts in this application. | |
| This is useful for various testing scenarios. |
| // ---- | |
| // Sass (v3.3.4) | |
| // Compass (v1.0.0.alpha.18) | |
| // ---- | |
| @import "compass/css3/transition"; | |
| /** Stuff from normalize.css */ |
| # Install a local copy of Hoogle (OS X 10.10, GHC 7.10.1) | |
| # Download | |
| cd | |
| cabal unpack hoogle | |
| cd hoogle-4.2.40/ | |
| # Use a sandbox | |
| cabal sandbox init |
| #! /bin/bash | |
| # streaming on Ubuntu via ffmpeg. | |
| # see http://ubuntuguide.org/wiki/Screencasts for full documentation | |
| # see http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/ | |
| # for instructions on how to use this gist | |
| if [ ! -f ~/.twitch_key ]; then | |
| echo "Error: Could not find file: ~/.twitch_key" | |
| echo "Please create this file and copy past your stream key into it. Open this script for more details." |
[ Launch: bart salary groupings ] 6892157 by enoex