Skip to content

Instantly share code, notes, and snippets.

@miraris
miraris / init.vim
Last active November 19, 2016 17:26
" Attempt to determine the type of a file based on its name and possibly its
" contents. Use this to allow intelligent auto-indenting for each filetype,
" and for plugins that are filetype specific.
filetype indent plugin on
" Enable syntax highlighting
syntax on
"------------------------------------------------------------
0 17:55:32 ChatterBotService | CleverBot Executed
Server: Ahri Mains [197789017700433930]
Channel: general-0-nofunallowed [197789017700433930]
UserId: Red#9556 [223811828491354114]
Message: <@224203257218596866> are you q roke?
0 17:55:32 CommandHandler | User [Red#9556] executed [<@224203257218596866> are you q roke?] in [ChatterBotService]
0 17:55:33 ChatterBotService | CleverBot Executed
Server: Ahri Mains [197789017700433930]
Channel: general-0-nofunallowed [197789017700433930]
UserId: Red#9556 [223811828491354114]
root@dev:~$ redis-cli monitor
OK
1511111790.164105 [0 127.0.0.1:35876] "PUBLISH" "MjI0MjAzMj_shardcoord_send" "{\"ShardId\":0,\"ConnectionState\":2,\"Guilds\":3,\"Time\":\"2017-11-19T17:16:30.1637471Z\"}"
1511111790.165104 [0 127.0.0.1:49389] "LSET" "MjI0MjAzMj_shardstats" "0" "{\"ShardId\":0,\"ConnectionState\":2,\"Guilds\":3,\"Time\":\"2017-11-19T17:16:30.1637471Z\"}"
1511111790.452748 [0 127.0.0.1:48834] "PUBLISH" "MjI0MjAzMj_shardcoord_send" "{\"ShardId\":0,\"ConnectionState\":2,\"Guilds\":3,\"Time\":\"2017-11-19T17:16:30.4524398Z\"}"
1511111790.453538 [0 127.0.0.1:49389] "LSET" "MjI0MjAzMj_shardstats" "0" "{\"ShardId\":0,\"ConnectionState\":2,\"Guilds\":3,\"Time\":\"2017-11-19T17:16:30.4524398Z\"}"
1511111791.903344 [0 127.0.0.1:48834] "INFO" "replication"
1511111795.187494 [0 127.0.0.1:33293] "SET" "MjI0MjAzMj_user_xp_gain_123107173134761997" "1" "EX" "300" "NX"
1511111795.187740 [0 127.0.0.1:56582] "SET" "MjI0MjAzMj_user_xp_gain_123107173134761997" "1" "EX" "300" "NX"
1511111795.187968 [0 127.0.0.1:488
[4103] 19 Nov 00:03:54.098 * 10 changes in 300 seconds. Saving...
[4103] 19 Nov 00:03:54.099 * Background saving started by pid 5561
[5561] 19 Nov 00:03:54.608 * DB saved on disk
[5561] 19 Nov 00:03:54.609 * RDB: 0 MB of memory used by copy-on-write
[4103] 19 Nov 00:03:54.701 * Background saving terminated with success
[4103] 19 Nov 00:08:55.013 * 10 changes in 300 seconds. Saving...
[4103] 19 Nov 00:08:55.014 * Background saving started by pid 10162
[10162] 19 Nov 00:08:55.398 * DB saved on disk
[10162] 19 Nov 00:08:55.399 * RDB: 0 MB of memory used by copy-on-write
[4103] 19 Nov 00:08:55.415 * Background saving terminated with success

Keybase proof

I hereby claim:

  • I am miraris on github.
  • I am miraris (https://keybase.io/miraris) on keybase.
  • I have a public key whose fingerprint is 4771 63AF 13BC B211 9C9A 171A 3C44 1A26 3DB8 E8F3

To claim this, I am signing this object:

@miraris
miraris / badcode.jl
Last active December 17, 2017 14:16
Terrible code using idk what paradigm to interact with the Discord API..
module Juldi
using Requests
using DandelionWebSockets
import Requests: get, post, put, delete, options
import DandelionWebSockets: on_text, state_connecting, state_open, state_closing, state_closed
import JSON
mutable struct DiscordHandler <: WebSocketHandler
{
"cooldownBurn": "4",
"key": "Disintegrate",
"resource": "{{ cost }} Mana",
"leveltip": {
"effect": [
"{{ e1 }} -> {{ e1NL }}",
" {{ cost }} -> {{ costNL }}"
],
"label": [
@miraris
miraris / app.php
Last active July 26, 2018 09:45
👌👀👌👀👌👀👌👀👌👀 good shit go౦ԁ sHit👌 thats ✔ some good👌👌shit right👌👌there👌👌👌 right✔there ✔✔if i do ƽaү so my self 💯 i say so 💯 thats what im talking about right there right there (chorus: ʳᶦᵍʰᵗ ᵗʰᵉʳᵉ) mMMMMᎷМ💯 👌👌 👌НO0ОଠOOOOOОଠଠOoooᵒᵒᵒᵒᵒᵒᵒᵒᵒ👌 👌👌 👌 💯 👌 👀 👀 👀 👌👌Good shit
<?php
require 'vendor/autoload.php';
require 'proxygrabber.php';
const XML_FILE_NAME = 'data/anime-titles.xml';
const ARCHIVE_NAME = 'data/anime-titles.gz';
/**
* Decompresses a gunzip arhive
@miraris
miraris / inserter.pl
Last active May 4, 2018 15:22
first perl script pls no flame
#!/usr/bin/perl -w
use Data::Dumper;
use DBI;
use XML::Simple;
use Regexp::Common qw(URI);
use DateTime;
use Time::Piece;
use DateTime::Format::Pg;
use feature qw(say);
This file has been truncated, but you can view the full file.
[{
"title": "\"0\"",
"url": "https://www4.9anime.is/watch/0.25rl",
"image": "http://static.akacdn.ru/static/images/2018/03/c7b9144d8f708915f787d60e77d9b6af.jpg"
}, {
"title": "009-1 (Dub)",
"url": "https://www4.9anime.is/watch/009-1-dub.wk27",
"image": "http://static.akacdn.ru/static/images/2018/04/95945d44c93f0e69d00b5a52aa61334a.jpg"
}, {
"title": "009-1",