Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
SRCDIR="${HOME}/github/alacritty"
if command -v podman ;then
PODMAN=$(command -v podman)
DOCKERFILE="Containerfile"
fi
if command -v docker ;then
PODMAN=$(command -v docker)
@rexroof
rexroof / build_neovim.sh
Created November 23, 2021 20:59
build neovim in container. supports docker/podman and arch/ubuntu
#!/bin/bash
set -e
SRCDIR="${HOME}/github/neovim"
VERSION_ID=latest
. /etc/os-release
if command -v podman ;then
PODMAN=$(command -v podman)
DOCKERFILE="Containerfile"
fi
package main
/*
this code will fill your current terminal with a screen full of flowery emoji with optional message in the middle
inspired by this twitter thread: https://twitter.com/Dixie3Flatline/status/1363897259297972224
and this gist:
https://gist.github.com/april/a4010daa8581626eb4670a08df558311
@rexroof
rexroof / nginx_full.conf
Created January 25, 2019 19:16
kubectl -n dev exec -it nchan-nginx-dcfbc7f6-ggr8w -- /usr/sbin/nginx -T > nginx_full.conf
2019/01/25 19:15:31 [info] 21#0: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:34
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
# configuration file /etc/nginx/nginx.conf:
user www-data;
worker_processes 1;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
@rexroof
rexroof / nginx_debug.log
Created January 25, 2019 19:08
nginx debug output
Server: nginx/1.10.1
Date: Fri, 25 Jan 2019 18:48:45 GMT
Content-Type: text/plain
Content-Length: 104
Connection: keep-alive
2019/01/25 18:48:45 [debug] 6#0: *520 write new buf t:1 f:0 0000557F2633CD70, pos 0000557F2633CD70, size: 154 file: 0, size: 0
2019/01/25 18:48:45 [debug] 6#0: *520 http write filter: l:0 f:0 s:154
2019/01/25 18:48:45 [debug] 6#0: *520 http output filter "/_pub/ma?"
2019/01/25 18:48:45 [debug] 6#0: *520 http copy filter: "/_pub/ma?"
@rexroof
rexroof / summergame.go
Created July 6, 2018 02:01
Summer game code finder, a learning experiment in Go. this code requires some editing to work, it has been purposely sabotaged multiple ways.
package main
import (
"fmt"
"golang.org/x/net/html"
"io"
"log"
"net/http"
"net/url"
"os"
$ TF_LOG=DEBUG terraform apply
2018/02/14 16:07:17 [INFO] Terraform version: 0.11.3
2018/02/14 16:07:17 [INFO] Go runtime version: go1.9.3
2018/02/14 16:07:17 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.3/bin/terraform", "apply"}
2018/02/14 16:07:17 [DEBUG] Attempting to open CLI config file: /Users/rex/.terraformrc
2018/02/14 16:07:17 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/02/14 16:07:17 [INFO] CLI command args: []string{"apply"}
2018/02/14 16:07:17 [INFO] command: empty terraform config, returning nil
2018/02/14 16:07:17 [DEBUG] command: no data state file found for backend config
2018/02/14 16:07:17 [DEBUG] New state was assigned lineage "704b4c06-c722-44b9-b640-0fe804e93dba"
$ TF_LOG=DEBUG terraform apply
2018/02/14 16:02:59 [INFO] Terraform version: 0.11.3
2018/02/14 16:02:59 [INFO] Go runtime version: go1.9.3
2018/02/14 16:02:59 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.3/bin/terraform", "apply"}
2018/02/14 16:02:59 [DEBUG] Attempting to open CLI config file: /Users/rex/.terraformrc
2018/02/14 16:02:59 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/02/14 16:02:59 [INFO] CLI command args: []string{"apply"}
2018/02/14 16:02:59 [INFO] command: empty terraform config, returning nil
2018/02/14 16:02:59 [DEBUG] command: no data state file found for backend config
2018/02/14 16:02:59 [DEBUG] New state was assigned lineage "cb933b4d-7edf-4d44-a07c-43241ed18fb8"
provider "aws" {
region = "us-east-1"
}
data "aws_region" "current" { }
variable "stream_name" { default = "testing_example" }
resource "random_string" "rand" {
length = 16
special = false

Keybase proof

I hereby claim:

  • I am rexroof on github.
  • I am rexroof (https://keybase.io/rexroof) on keybase.
  • I have a public key ASBwB2lYzauyaWt4B4CSL78URh9ZCNazMrd93ha4ahfKkgo

To claim this, I am signing this object: