Skip to content

Instantly share code, notes, and snippets.

View SloRunner's full-sized avatar
🙃
I may be slow to respond.

The Botfather SloRunner

🙃
I may be slow to respond.
View GitHub Profile
@SloRunner
SloRunner / forge_deploy
Created November 20, 2021 21:07 — forked from LukaSikic/forge_deploy
forge_deploy
#!/bin/bash
# File: /usr/local/bin/forge_deploy
# Before using add FORGETOKEN to env variables in .zshrc like: export FORGETOKEN="ey..."
. .forge
if [ $(curl -Li -X POST https://forge.laravel.com/api/v1/servers/$FORGE_SERVER_ID/sites/$FORGE_SITE_ID/deployment/deploy -o /dev/null -w '%{http_code}\n' -s -H "Accept: application/json" -H "Authorization: Bearer $FORGETOKEN") == "200" ]
then
echo "Queued for deployment"
else
@SloRunner
SloRunner / Checks.py
Created November 4, 2019 01:40 — forked from Painezor/Checks.py
Built-in Checks for the commands extension of discord py
@commands.check(myfunction)
# Check against your own function that returns those able to use your command
@commands.has_role("name")
# Check if member has a role with the name "name"
@commands.bot_has_role("name")
# As above, but for the bot itself.
@commands.has_any_role("role1","foo","bar")

Keybase proof

I hereby claim:

  • I am slorunner on github.
  • I am aleskalan (https://keybase.io/aleskalan) on keybase.
  • I have a public key ASDGJ6NTEjGjYBUziPnGjEf8nLEv5l_jjrqrzEmkv_41sQo

To claim this, I am signing this object:

@SloRunner
SloRunner / upload-github-release-asset.sh
Created January 17, 2019 21:04 — forked from stefanbuck/upload-github-release-asset.sh
Script to upload a release asset using the GitHub API v3.
#!/usr/bin/env bash
#
# Author: Stefan Buck
# License: MIT
# https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447
#
#
# This script accepts the following parameters:
#
# * owner
@SloRunner
SloRunner / Pybank.py
Created December 26, 2018 17:00 — forked from himanshu404/Pybank.py
Bank Account Management System
from tkinter import *
from tkinter import messagebox
import os,datetime,random,shutil
class transact(object):
def __init__(self):
self.transaction()
def transaction(self):
def deposit_():
def deposit_entry():
@SloRunner
SloRunner / MongoDB
Created September 12, 2018 12:31 — forked from amirkheirabadi73/MongoDB
List All Command In MongoDb
show dbs
// LIst Data Base
show collections
// List Collections
use test
// Select Db
db
@SloRunner
SloRunner / fibonacci.php
Created September 4, 2018 13:07 — forked from HendrikEduard/fibonacci.php
Create the Fibonacci Sequence in PHP
<?php
function fibonacci($n) {
$current = 1;
$previous = 0;
for ($i = 0; $i < $n; $i++) {
yield $current;
$temporary = $current;
$current = $previous + $current;
$previous = $temporary;
if (process.version.startsWith("v6")) throw new Error("This Bot requires Node 7v+ because of async/await")
const Discord = require("discord.js")
const express = require("express")
const app = express()
const superagent = require("superagent")
//Config
let INVITE = process.env.INVITE || "", //An Infinite Invite to your discord server.
GUILD = process.env.GUILD || "", //The ID of the Guild for this invite ^
ScrapTF.Raffles.Pagination.LoadNext();
ScrapTF.Raffles.Pagination.LoadNext();
ScrapTF.Raffles.Pagination.LoadNext();
var i = 0;
var list;
setTimeout(function() {
list = document.getElementById("raffles-list").children;
list = [].filter.call(list, function(j) {
if (j.getAttribute("style") == "") {