Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am zaemliss on github.
  • I am chris_libfi (https://keybase.io/chris_libfi) on keybase.
  • I have a public key ASC2QNsnXORXhexbTUTNt1rwFsQsWsk1XVYy8_hnNT-cHQo

To claim this, I am signing this object:

// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
/*
koad-was-here
@zaemliss
zaemliss / index.js
Created November 2, 2020 23:04
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@zaemliss
zaemliss / my_pmpro_custom_text_field.php
Created August 5, 2020 18:53 — forked from MaryOJob/my_pmpro_custom_text_field.php
Adding a Custom Text Field to PMPro Checkout Page
<?php
/**
* Register Helper example for five fields. This is a test Register Helper example.
* Please add the below code to your custom plugin or Code Snippets Plugin by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmprorh_init() {
//don't break if Register Helper is not loaded
if(!function_exists( "pmprorh_add_registration_field" )) {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Node / Iquidus Explorer Setup for Dummies
Pulse Crypto is used in this example.
This Tutorial is going to create a Daemon (node) and install Explorer.
THIS IS NOT GOING TO CREATE A GUI CLIENT.
Follow the instructions in [whatever coin name] docs folder Unix build - some builds are different.
I setup this up on both Ubuntu 15.10 and 16.04 with no issues.
You can create an account on vultr and get $50 free to be used in 2 months.
@zaemliss
zaemliss / TEMPLATE
Created May 4, 2018 02:15
Install template
#!/bin/bash
TMP_FOLDER=$(mktemp -d)
CONFIG_FILE="xuma.conf"
DEFAULT_USER="xuma-mn1"
DEFAULT_PORT=19777
DEFAULT_RPC_PORT=19643
DEFAULT_SSH_PORT=22
DAEMON_BINARY="xumad"
CLI_BINARY="xuma-cli"
@zaemliss
zaemliss / install.sh
Created May 3, 2018 20:38
Fail2ban install
#!/bin/bash
sudo apt -y install fail2ban
sudo systemctl enable fail2ban
sudo systemctl start fail2ban