Skip to content

Instantly share code, notes, and snippets.

View andurilan's full-sized avatar

operator.malcolm andurilan

View GitHub Profile
@andurilan
andurilan / continuum.macro.asm
Created February 18, 2019 07:43
Continuum Macro
;==================================================================================================================
; PlainOS | Copyright (C) 2008-2019 Lexeme
; ==================================================================================================================
;
; PlainOS Installation -----------------------------------------------------------------------------------------------------------------------------------------------
; ==================================================================================================================
;
; Dependency Injection Macros ------------------------------------------------------------------------------------------------------------------------------------
%include "macros/di.asm"
;
@andurilan
andurilan / .kshrc
Created January 22, 2019 10:32
Korn Shell Environment
# -*-sh-*-
#
# .kshrc - Korn shell 93 startup file
umask 0077
set -o emacs
set +o multiline
# Taken from bash completion support core Git. | Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | Distributed under the GNU General Public License, version 2.0.
# __gitdir accepts 0 or 1 arguments (i.e., location)
@andurilan
andurilan / Makefile
Created September 1, 2018 07:33
pls.plus
TLD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
run:
@rustc -V
cargo update
cargo build
./target/debug/_installer
install:
cargo build --release
sudo ln -sf ${TLD}target/release/_installer /usr/local/bin/_installer
[package]
build = "src/build.rs"
name = "_installer"
version = "0.8.1"
authors = ["Hugo Wang <w@mitnk.com>"]
description = "A simple Unix shell."
repository = "https://github.com/"
keywords = ["shell", "unix"]
categories = ["command-line-utilities", "command-line-interface", "development-tools"]
@andurilan
andurilan / main.rs
Created September 1, 2018 07:32
pls.plus
#![feature(pattern_parentheses)]
#![feature(non_ascii_idents)]
#![feature(extern_prelude)]
#![feature(exclusive_range_pattern)]
#![feature(macro_literal_matcher)]
#![allow(unused_variables)]
#![allow(unused_mut)]
#![allow(unused_assignments)]
#![allow(unused_parens)]
@andurilan
andurilan / installer.rs
Created September 1, 2018 07:30
pls.plus
#![allow(unused_macros)]
use std::
{
collections::{ HashMap, HashSet },
env::{ self },
error::{Error},
fs::{ self, File, OpenOptions, read_dir },
io::{ self, Error as IO_Error, Read, Write },
mem::{ self },
os::unix::
@andurilan
andurilan / _.atom.s
Last active July 19, 2018 15:19
Atoms
#-----------------------------------------------------------------------------------------------------------------------
_atoms="http://bit.ly/_atom_s";
_sh="http://bit.ly/2L7ECJr0";
_contextually="http://bit.ly/2L8bOk30";
_pretextually="http://bit.ly/2zTMHwf";
#
@andurilan
andurilan / contextually.sh
Last active July 19, 2018 14:54
Contextually
#!/bin/sh
#----------------------------------------------------------------------------------------------------------------------
echo "_.contextual | _?";
_sh="http://bit.ly/2L7ECJr";
pretextually="http://bit.ly/2zTMHwf";
contextually="http://bit.ly/2L8bOk3";
[ -d "/_" ]\
&&
{
echo "_!";
@andurilan
andurilan / pretextually.sh
Last active July 19, 2018 14:54
Pretextually
#!/bin/sh
#----------------------------------------------------------------------------------------------------------------------
echo "_.prextextual | _?";
_sh="http://bit.ly/2L7ECJr";
pretextually="http://bit.ly/2zTMHwf";
contextually="http://bit.ly/2L8bOk3";
[ -d "/_" ]\
&&
{
echo "_!";
@andurilan
andurilan / _.sh
Last active July 19, 2018 14:54
16.04 _
#!/bin/sh
#----------------------------------------------------------------------------------------------------------------------
echo "_ | Contextually?";
_sh="http://bit.ly/2L7ECJr";
pretextually="http://bit.ly/2zTMHwf";
contextually="http://bit.ly/2L8bOk3";
var=`curl -fsSL "$pretextually"`; : | sh -c "$var"