This file contains hidden or 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
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
This file contains hidden or 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 { Client, Message, User } from "discord.js" | |
import chalk from "chalk" | |
const client: Client = new Client() | |
client.on('ready', () => { | |
console.log(chalk.green(`started bot on ${client.user.tag}`)) | |
}) | |
client.on('message', async function(message: Message) { |
This file contains hidden or 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
call plug#begin() | |
Plug 'drewtempelmeyer/palenight.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'wlangstroth/vim-racket' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'rust-lang/rust.vim' | |
Plug 'preservim/tagbar' | |
Plug 'universal-ctags/ctags' | |
Plug 'luochen1990/rainbow' | |
Plug 'vim-syntastic/syntastic' |
This file contains hidden or 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
: ${1?'Please specify an input resource pack in the same directory as the script (e.g. ./merge.sh MyResourcePack.zip)'} | |
# ensure jq is installed | |
if command jq --version 2>/dev/null | grep -q "1.6"; then | |
printf "\e[32m[+]\e[m \e[37mDependency jq satisfied\e[m\n" | |
echo | |
else | |
echo "Dependency jq-1.6 is not satisfied" | |
echo "You must install jq-1.6 before proceeding" | |
echo "See https://stedolan.github.io/jq/download/" |
You can use [npiperelay][] to let coc-discord-rpc connect to a Discord instance running on the host Windows operating system. It requires modifying the extension a bit, but it's relatively painless. This guide assumes you have [coc.nvim][] and [coc-discord-rpc][] already installed.
To build npiperelay, you'll need [Go][]. Grab the golang
package from your favorite package manager and follow the instructions on the
[npiperelay][] repo. You'll also need to install socat
if it doesn't come with your distribution.
This file contains hidden or 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQGNBGUYUR0BDADBJLypjHStJIuYGk+8eIQMoBqRzUSalgGmQsfcffKG476wqRi6 | |
3jcf5UseuttaqpTLeb92CA8JF98JkmScTisRLgBHkJk13BJLBmY6byIueT+//MGR | |
RLj2aNVW2irmd5sTULKzGFQ+0EfbLUPm+oXYl6LU7kEKZInwp671+Xmehax0ldON | |
sGAfsJiJp3xBM6FvxA8LplRWqL3Mhbh/pfLA6SMTgG8Ig4W6sNQ12LWsfhK/HHMb | |
gUCSujlr7g5Ffl80v2PIgXX5NUHHyHxV+Y2qKcn2PJlgkvlICZZuGiO9p6pI69De | |
l7UoqCUjhkfRTLgls5lPJrzZMK4SozRkHVUJ/D7/Humj8aPNmCnfcKnb9ZVsKBpH | |
fTNjiFPZoe03ILR7wrCFfsalqF5fpKDuzc5gs4AnHiOQRm13Z0NU5KtrhcRVItcy | |
qe1Ig0ZQiDrLiLFwpZ6lA9x6ZtnhrGVtYWOmSvjsnPMMksZkn5Xyew7c/jheYPhm |
I hereby claim:
- I am aboutdavid on github.
- I am aboutdavid (https://keybase.io/aboutdavid) on keybase.
- I have a public key ASCepr-g9NOR8BjZpA26FMsHxbSXRYoxADtvU_Yx8KFMQgo
To claim this, I am signing this object:
This file contains hidden or 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
# Minecraft Server deployment for Kubernetes clusters via Ansible's Helm module. | |
# | |
# The Helm module is part of the Kubernetes collection. Install it with: | |
# | |
# ansible-galaxy collection install community.kubernetes | |
# | |
# Then run the playbook: | |
# | |
# ansible-playbook main.yml | |
# |
This file contains hidden or 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
<?php | |
/* | |
Image proxy in the works. | |
*/ | |
$image = $_GET['url']; |