Skip to content

Instantly share code, notes, and snippets.

View sheatsb's full-sized avatar
💭
I may be slow to respond.

sheatsb

💭
I may be slow to respond.
View GitHub Profile
@sheatsb
sheatsb / cloud-init.txt
Last active February 14, 2024 02:12
cloudinit for ba servers
# cloud-config
package_upgrade: true
packages:
- wget
- chrony
-
The Restaurant List
- [ ] Lyla Lila
- [ ] Food Terminal
- [ ] Talat Market
- [ ] Little Bear
- [ ] endive Publik house
- [ ] Chirori
- [ ] Gato
- [ ] Bread and Butterfly
@sheatsb
sheatsb / instructions.md
Last active January 10, 2022 14:04
Nuxt Universal on Azure

Installing Nuxt on Azure Web App for Linux

This assumes that you have a Git repo created with create-nuxt-app and are ready to test your site on the web. I won’t go into the steps as to do this, but there’s a lovely guide to getting started on Nuxt. This also assumes that you know how to set up an App Service instance on the Azure console or via CLI.

Local

  1. Test run launching locally by running npm run dev and checking out http://localhost:3000
  2. If that works, end the process by pressing Ctrl+C back in the terminal.
  3. Create an initial commit for your Nuxt repo.
  4. Congrats! You’re done here.
#!/bin/bash
main() {
OS=$(detect_os)
GOARCH=$(detect_goarch)
GOOS=$(detect_goos)
NEXTDNS_BIN=$(bin_location)
LATEST_RELEASE=$(get_release)
export NEXTDNS_INSTALLER=1
@sheatsb
sheatsb / random-items.sql
Created May 28, 2020 22:35
random rows from postgres
CREATE
OR REPLACE FUNCTION public.random_recipient() RETURNS SETOF recipients LANGUAGE sql STABLE AS $ function $
SELECT
*
FROM
recipients OFFSET floor(
random() * (
SELECT
COUNT(*)
FROM
This is a sample of how to programmatically generate gists.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName ca.murmurmedia.org
@sheatsb
sheatsb / gemlist.txt
Created November 27, 2018 18:05
installed gems
actioncable
actionmailer
actionpack
actionview
activejob
activemodel
activerecord
activestorage
activesupport
addressable
@sheatsb
sheatsb / brews.txt
Created November 27, 2018 18:03
installed brews
adns
ant
apr
apr-util
argon2
aspell
atk
atkmm
autoconf
automake
@sheatsb
sheatsb / .zshrc
Last active November 27, 2018 18:10
latest zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"