Skip to content

Instantly share code, notes, and snippets.

View shikhir-arora's full-sized avatar
💭
¯\_(ツ)_/¯

Shikhir Arora shikhir-arora

💭
¯\_(ツ)_/¯
View GitHub Profile

Keybase proof

I hereby claim:

  • I am shikhir-arora on github.
  • I am saro (https://keybase.io/saro) on keybase.
  • I have a public key whose fingerprint is BAB8 39E0 BC39 8D28 26AF 531C 8823 A4F9 EFB8 B6E5

To claim this, I am signing this object:

@shikhir-arora
shikhir-arora / AudioModule.cs
Created March 24, 2017 14:51 — forked from Joe4evr/AudioModule.cs
D.Net 1.0 audio example
using System.Threading.Tasks;
using Discord.Commands;
public class AudioModule : ModuleBase<ICommandContext>
{
// Scroll down further for the AudioService.
// Like, way down.
// Hit 'End' on your keyboard if you still can't find it.
private readonly AudioService _service;
@shikhir-arora
shikhir-arora / relatedYoutube.js
Last active August 6, 2017 18:41
Return related YouTube track for AutoPlay (ES8)
const cheerio = require('cheerio')
async function relatedTrackAuto () {
let request = require('async-request')
try {
let response = await request(process.argv[2])
var $ = await cheerio.load(response.body)
@shikhir-arora
shikhir-arora / NadekoAlt.md
Last active November 18, 2017 01:37
pm2 setup for Linux - Nadeko Install

Create a new Session - pm2:

  • tmux works well for most enviornments, however, we can use pm2 which allows us to have more control and also more automation.

  • pm2 requires NodeJS/npm. If you don't have these already, you can get them the following ways:

Ubuntu/Debian systems can use curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs to install NodeJS.

@shikhir-arora
shikhir-arora / nadeko-update-pm2.sh
Created January 26, 2018 12:19
Updater for Nadeko for those using pm2
#!/bin/sh
echo ""
echo "NadekoBot pm2 Update Started. This will stop Nadeko safely in pm2, update it and restart the bot."
sleep 2
if hash git 1>/dev/null 2>&1
then
echo ""
echo "Git Installed."
#!/bin/bash
#
# server-speedtest - An utility to test network quality and speeds on a server
# https://github.com/iceTwy/server-speedtest
#
function download_benchmark() {
DOWNLOAD_SPEED=`wget -O /dev/null $2 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}'`
echo "$1: $DOWNLOAD_SPEED ($2)"
}

Async, non-blocking post to multiple Discord Bot stats using axios and ES8 async/await.

/**

This is just a snippet (assumes you've defined a Discord client, etc) 

**/
openapi: 3.0.0
servers:
- description: GiTils API
url: https://gitils.giesela.io
info:
description: API specification for GiTils.
version: "0.0.1"
title: GiTils
contact:
email: team@giesela.io
@shikhir-arora
shikhir-arora / GieselaIncCLA
Created October 17, 2018 02:48
CLA for Giesela Inc
### Giesela Inc OSS Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Giesela Inc or its affiliates (“Giesela”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Giesela in respect of any of the Projects (collectively “Contributions”).
If you have any questions respecting this Agreement, please contact us at git@giesela.io by e-mail or toll-free telephone (US): +1-855-556-4338, Europe (CH): +41 31 539 13 66.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism-twilight&languages=markup+css+clike+javascript+abap+actionscript+ada+apacheconf+apl+applescript+c+arff+asciidoc+asm6502+csharp+autohotkey+autoit+bash+basic+batch+bison+brainfuck+bro+cpp+aspnet+arduino+coffeescript+clojure+ruby+csp+css-extras+d+dart+diff+django+docker+eiffel+elixir+elm+markup-templating+erlang+fsharp+flow+fortran+gedcom+gherkin+git+glsl+go+graphql+groovy+haml+handlebars+haskell+haxe+http+hpkp+hsts+ichigojam+icon+inform7+ini+io+j+java+jolie+json+julia+keyman+kotlin+latex+less+liquid+lisp+livescript+lolcode+lua+makefile+markdown+erb+matlab+mel+mizar+monkey+n4js+nasm+nginx+nim+nix+nsis+objectivec+ocaml+opencl+oz+parigp+parser+pascal+perl+php+php-extras+sql+powershell+processing+prolog+properties+protobuf+pug+puppet+pure+python+q+qore+r+jsx+typescript+renpy+reason+rest+rip+roboconf+crystal+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+plsql+soy+stylus+swift+yaml+tcl+textile+tt2+twig+tsx+vbnet+velocity+verilog+vhdl+vim+visual-basic