Skip to content

Instantly share code, notes, and snippets.

View andurilan's full-sized avatar

operator.malcolm andurilan

View GitHub Profile
@andurilan
andurilan / 0_reuse_code.js
Created September 28, 2016 09:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andurilan
andurilan / groups
Created March 7, 2018 03:43
New /etc/groups
root:x:0:op
daemon:x:1:
bin:x:2:op
sys:x:3:
adm:x:4:syslog
tty:x:5:
disk:x:6:op
lp:x:77:
mail:x:88:
news:x:99:
@andurilan
andurilan / vsftpd.conf
Last active May 30, 2018 08:36
VSFTPD Config
#----------------------------------------------------------------------------------------------------------------------------------------
# VSFTPD.CONF | /etc/vsftpd.conf =>> /conf/vsftpd/vsftpd.conf
# vsftpd.conf may be used to control various aspects of vsftpd's behaviour. By default, vsftpd looks for
# this file at the location above. However, you may override this by specifying a CLI argument to vsftpd.
#The CLI argument is the pathname of the conf file for vsftpd. This is useful for use of an advanced inetd
# such as xinetd to launch vsftpd with different configuration files on a per vhost basis.
#----------------------------------------------------------------------------------------------------------------------------------------
# Listener Configuration
#----------------------------------------------------------------------------------------------------------------------------------------
# [ NO | *YES=VSFTPD runs in standalone mode. ]
@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"
@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 / 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 / _.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 / 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 / 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)]
[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"]