Skip to content

Instantly share code, notes, and snippets.

View Senither's full-sized avatar

Alexis Tan Senither

View GitHub Profile
@Senither
Senither / keybase
Created April 14, 2017 23:00
Keybase
### Keybase proof
I hereby claim:
* I am senither on github.
* I am senither (https://keybase.io/senither) on keybase.
* I have a public key ASDFO4NW6iK3vghxY_-kPN6ZUrgdjo5-URGAXw0Fdsp_vwo
To claim this, I am signing this object:
// In the message create event
let author = e.message.author;
e.message.sendMessage(`Hi there <@${author.id}>!`);
{
"environment": "production",
"bot": {
"token": "",
"oauth": "https://discordapp.com/oauth2/authorize?&client_id=<client_id>&scope=bot&permissions=66186303",
"activationDelay": "0"
},
"database": {
"type": "mysql",
"database": "avaire",
{
"environment": "production",
"bot": {
"token": "",
"oauth": "https://discordapp.com/oauth2/authorize?&client_id=<client_id>&scope=bot&permissions=66186303",
"activationDelay": "0"
},
"database": {
"type": "sqlite3",
"filename": "./database.sqlite"
@Senither
Senither / run.sh
Created June 18, 2017 14:45
Starts a node application in the current folder and clears the window at the same time
#!/bin/bash
while true; do
clear && npm start
echo ""
echo "The application has been stopped, and will restart in 5 seconds."
echo "Press Ctrl+C to interrupt the process."
sleep 5
done
@Senither
Senither / config.yml
Created August 30, 2017 21:19
Configuration for MegaCore minecraft plugin
############################################################
# +------------------------------------------------------+ #
# | Notes | #
# +------------------------------------------------------+ #
############################################################
# If you want to use special characters in this document, such as accented letters, you MUST save the file as UTF-8, not ANSI.
# If you receive an error when MegaCore loads, ensure that:
# - No tabs are present: YAML only allows spaces
# - Indents are correct: YAML hierarchy is based entirely on indentation
@Senither
Senither / .bashrc
Created September 15, 2017 08:16
My bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@Senither
Senither / .bashrc
Created February 6, 2018 14:29
My bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@Senither
Senither / LeaveServerCommand.java
Created February 14, 2018 12:44
A simple "leave server command" made for Bramble from the AvaIre Central Discord server.
package com.avairebot.commands.system;
import com.avairebot.AvaIre;
import com.avairebot.commands.CommandMessage;
import com.avairebot.contracts.commands.SystemCommand;
import net.dv8tion.jda.core.entities.Guild;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@Senither
Senither / edit.blade.php
Created April 9, 2018 10:41
Edit page resource from Yggdrasil
@extends('layouts.yggdrasil')
@section('page-title', 'Edit Page: ' . $page->name)
@section('title', 'Edit page: ' . $page->name)
@section('breadcrumbs')
<li><a href="{{ route('admin.home') }}">Home</a></li>
<li><a href="{{ route('admin.pages.index') }}">Pages</a></li>
<li><a href="#">Display Pages</a></li>
<li class="active">{{ $page->name }}</li>