Skip to content

Instantly share code, notes, and snippets.

View lynsei's full-sized avatar
:octocat:
Huzzah!

Lynsei lynsei

:octocat:
Huzzah!
View GitHub Profile
@lynsei
lynsei / cloudinit.yml
Created November 23, 2021 19:05 — forked from phillhocking/cloudinit.yml
netbox-aws
#cloud-config
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
- git
# create the docker group
@lynsei
lynsei / .gitignore
Last active November 19, 2024 20:41
[cloud-init] #Ubuntu #Hard #CIS #hardened 20.04 #splunk #lynslang
node_modules
@lynsei
lynsei / ec2.cloud-config.yml
Last active February 8, 2022 04:26
[20.04 Ubuntu] The Hard way by Lynsei. It's a hardened Ubuntu Bionic. #cloud-config #cloud-init #ec2 #hard #ubuntu #hardened #docker-batteries-included
#cloud-config
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
- git
- docker.io # Lynsei prefers docker.io for security: https://bityl.co/9kNA
@lynsei
lynsei / bootstrap.sh
Created November 24, 2021 00:40 — forked from SidIcarus/bootstrap.sh
environment bootstrap scripts
#!/bin/bash
# shellcheck disable=1090,1091,2059
# set ENV default value to 'dev''
ENV="${1:-dev}"
# import (source) utility variables and functions
. "$DIR/bootstrap/utils"
# Terminal output to illustrate progress
@lynsei
lynsei / vue3-nuxt-starters.sh
Last active November 24, 2021 14:00
#vue3 #myfavorite #favorite #vue3-nuxt #nuxt-typescript #typescript-starter #nuxt-starter #pwa-starter #pwa
# this file contains a bunch of vue3 and nuxt starters that all use various CSS/ themeing and UI kits.
# work-in-progress use at YOUR OWN RISK!
# first add yeoman scaffold
yarn global add yo
# yo vue3-vite
pushd . ; mkdir -p vue3-vite; cd ./vue3-vite;
yarn global add generator-vue3-vite
@lynsei
lynsei / nginx-ssl-config.nginx.conf
Created November 24, 2021 13:32
#nginx #ssl #productionized #pm2
upstream my_nodejs_upstream {
server 127.0.0.1:3001;
keepalive 64;
}
server {
listen 443 ssl;
server_name www.my-website.com;
ssl_certificate_key /etc/ssl/main.key;
@lynsei
lynsei / spinner.lib.json
Created November 24, 2021 15:01
#json #artifact #bash #spinner #spinlib #spinnerlib #useful
{
"dots": {
"interval": 80,
"frames": [
"⠋",
"⠙",
"⠹",
"⠸",
"⠼",
"⠴",
@lynsei
lynsei / dlg
Created November 25, 2021 13:33 — forked from gpsoft/dlg
How to use `dialog` command in a shell script.
#!/usr/bin/bash
dialog \
--title "Yeah!" \
--msgbox "Test for dialog.\nPress OK." \
7 60
dialog \
--title "Excuse me?" \
--yesno "Are you still there?" \
@lynsei
lynsei / acpi.sh
Created December 3, 2021 05:35 — forked from ldante86/acpi.sh
bash version of acpi
#!/bin/bash -
#
# SCRIPT: aacpi
# AUTHOR: Luciano D. Cecere
# DATE: 2014
#
########################################################################
#
# acpi - show laptop battery information
# Copyright (C) 2014 Luciano D. Cecere <[email protected]>
@lynsei
lynsei / .zshrc
Created December 4, 2021 23:03 — forked from Jimeh87/.zshrc
Mac Setup
# Path to your oh-my-zsh installation.
export ZSH="/Users/jimrennie/.oh-my-zsh"
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE="nerdfont-complete"
POWERLEVEL9K_PROMPT_ON_NEWLINE=false
POWERLEVEL9K_RPROMPT_ON_NEWLINE=false