Skip to content

Instantly share code, notes, and snippets.

View tracy-codes's full-sized avatar
🚀

Tracy Adams tracy-codes

🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tracy-codes on github.
  • I am hackermans (https://keybase.io/hackermans) on keybase.
  • I have a public key ASDaVXtIPQymOOsUL1oY6BY9vU7YHuMGezEL_vL9fCHvtQo

To claim this, I am signing this object:

@tracy-codes
tracy-codes / neutrl-cart.liquid
Created April 16, 2021 01:49
Neutrl installation script
<div
class="carbon-neutrality cn-inactive"
draggable="true"
id="nested-carbon-neutral-container"
style="
padding: 10px 10px;
background: white;
border-radius: 10px;
margin-bottom: 30px;
width: 100%;
@tracy-codes
tracy-codes / ssl-check.sh
Created May 17, 2020 02:00
This is the shell script to use with Shopify Slate on Ubuntu to get a proper SSL cert setup for your Slate workflow.
function ssl-check() {
f=~/.localhost_ssl;
ssl_crt=$f/server.crt
ssl_key=$f/server.key
b=$(tput bold)
c=$(tput sgr0)
ips=$(hostname -I)
local_ips=($(echo $ips | tr " " "\n"))
# local_ip=999.999.999 # (uncomment for testing)
domains=(
This file has been truncated, but you can view the full file.
set_robust_list(0x7f1d1e7c09e0, 24) = 0
fcntl(12, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0
getuid() = 1000
poll([{fd=12, events=POLLIN|POLLERR|POLLHUP}, {fd=13, events=POLLIN|POLLERR|POLLHUP}], 2, 2000) = 1 ([{fd=12, revents=POLLIN}])
read(12, "\0\1\0058\0\0\0\0\3\2\2\3\rwatch-project\2\3\"/c/"..., 1048576) = 63
fcntl(12, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(12, F_SETFL, O_RDWR) = 0
fcntl(12, F_GETFL) = 0x2 (flags O_RDWR)
This file has been truncated, but you can view the full file.
set_robust_list(0x7f1d1efd09e0, 24) = 0
mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7f1cf4000000
munmap(0x7f1cf8000000, 67108864) = 0
mprotect(0x7f1cf4000000, 135168, PROT_READ|PROT_WRITE) = 0
gettimeofday({tv_sec=1551723596, tv_usec=98715}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={tv_sec=0, tv_usec=0}, ru_stime={tv_sec=0, tv_usec=15625}, ...}) = 0
gettimeofday({tv_sec=1551723596, tv_usec=99294}, NULL) = 0
openat(AT_FDCWD, "/c/Users/tracy/dev/tracycodes/test", O_RDONLY|O_NOFOLLOW|O_CLOEXEC) = 8
getpid() = 3434
This file has been truncated, but you can view the full file.
set_robust_list(0x7f4b9bef0a20, 24) = 0
close(4) = 0
close(5) = 0
pipe2([4, 5], O_CLOEXEC) = 0
write(5, "*", 1) = 1
openat(AT_FDCWD, "/dev/null", O_RDONLY) = 29
dup2(29, 0) = 0
fcntl(0, F_GETFL) = 0 (flags O_RDONLY)
close(29) = 0
This file has been truncated, but you can view the full file.
set_robust_list(0x7ff5efc80a20, 24) = 0
close(4) = 0
close(5) = 0
pipe2([4, 5], O_CLOEXEC) = 0
write(5, "*", 1) = 1
fcntl(0, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fcntl(0, F_SETFD, 0) = 0
fcntl(0, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(1, F_GETFD) = 0x1 (flags FD_CLOEXEC)
This file has been truncated, but you can view the full file.
close(10) = 0
execve("/home/tracy/.nvm/versions/node/v11.9.0/bin/node", ["node", "/c/Users/tracy/AppData/Roaming/n"..., "run", "test"], 0x7fffe760eca8 /* 29 vars */) = 0
brk(NULL) = 0x4162000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26310, ...}) = 0
mmap(NULL, 26310, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fca59f52000
close(3) = 0
@tracy-codes
tracy-codes / now.strace.1889
Created March 4, 2019 18:16
Now strace for WSL Issue #3886
execve("/home/tracy/.nvm/versions/node/v11.9.0/bin/now", ["now"], 0x7ffff1609eb8 /* 29 vars */) = 0
brk(NULL) = 0x40bf000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26068, ...}) = 0
mmap(NULL, 26068, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcf5a1ca000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3