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
let # /home/jamie/imp/src/Query.jl, line 340: | |
local index_2 = index($(Expr(:escape, :playlist)),[2,1]) | |
local index_2_2 = index_2[2] | |
local index_2_1 = index_2[1] | |
local lo_2_0 = 1 | |
local hi_2_0 = 1 + length(index_2_2) | |
local index_3 = index($(Expr(:escape, :playlist_track)),[1,2]) | |
local index_3_1 = index_3[1] | |
local index_3_2 = index_3[2] | |
local lo_3_0 = 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
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |
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
{ pkgs ? import <nixpkgs> { } }: | |
let | |
kernel_version = "4.4.52"; | |
kernel-sha256 = "e8d2ddaece73e1a34e045bbdcdcc1383f658e24537797f8d8e0dd520cf1b1f06"; | |
nix_version = "1.11.9"; | |
nix-sha256 = "0e943e277f37843f9196b0293cc31d828613ad7a328ee77cd5be01935dc6e7e1"; | |
in rec | |
{ | |
linux-tarball = pkgs.fetchurl { |
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
#Before running script give permission using "chmod +x DynamicMOTD.sh" | |
#Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
#Install Lolcat, Cowsay and Fortune | |
brew install lolcat | |
brew install cowsay | |
brew install fortune | |
#Configuring .bash_profile and .bashrc |
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
// a very minimal instruction set. | |
// it has just enough operations to implement a recursive | |
// fibonacci function - what a coincidence :D | |
// NOTE: in my VM, i don't use an `enum`. | |
// this is just for simplicity. | |
#[derive(Clone, Copy, Debug)] | |
enum Instruction { | |
LoadInt { dst: u8, value: i16 }, | |
Copy { dst: u8, src: u8 }, | |
Add { dst: u8, src1: u8, src2: u8 }, |
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
%define BOCHS_HD_IMAGE ;define this when booting in Bochs as a hard drive image | |
%define CONSOLE_WIDTH 0x4E | |
%define RTC_DIVIDER 0xF | |
%define PADDLE_WIDTH 0x08 | |
%define PADDLE_SPEED 0x2 | |
BITS 16 ;we are running in real mode, so 16 bit only | |
[org 0x7C00] ;set origin address to 0x7C00. This is where BIOS drops us off in RAM |