asdf plugin-update --all
asdf update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodemon --watch src --exec 'node --require ts-node/register --inspect' src/app.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __APPLE__ | |
#ifndef st_mtime | |
#define st_mtime st_mtimespec.tv_sec | |
#endif | |
#endif | |
#include <time.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* install ncurses and compile in the following manner: */ | |
/* gcc -std=c99 -Wpedantic -Wall -lncurses main.c */ | |
#include <ncurses.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main() | |
{ | |
int height, width, ch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import glob from 'glob'; | |
import chalk from 'chalk'; | |
import EventEmitter from 'events'; | |
type Configuration = { | |
first: string; | |
last: string; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Here is the original URL used to test this on: | |
# http://www.ghibli.jp/info/013251/ | |
curl -s $1 | hxwls | grep -E "(jpg|png)" | grep -v thumb | xargs -I{} curl -s -O {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -k -X GET \ | |
-H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
https://$KUBERNETES_PORT_443_TCP_ADDR:$KUBERNETES_SERVICE_PORT_HTTPS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt update | |
apt upgrade | |
apt install gnupg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list | |
wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - | |
apt update | |
apt install -y \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ForwardAgent true | |
# Necessary for not breaking ssh on linux | |
IgnoreUnknown UseKeychain | |
# Use Keychain on macos - ignored on linux | |
UseKeychain yes | |
Host * | |
# This will look for private keys under the `~/.ssh/keys` |
NewerOlder