Skip to content

Instantly share code, notes, and snippets.

View rikoudosenin's full-sized avatar

Saw rikoudosenin

View GitHub Profile
package okhttpp;
import java.io.IOException;
import com.google.gson.Gson;
import json.TwitchAPI;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
package me.sage.crypto;
import java.io.IOException;
import com.google.gson.Gson;
import me.sage.crypto.coinmarketcap.COINAPI;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import net.dv8tion.jda.core.hooks.ListenerAdapter;
import okhttp3.OkHttpClient;
import okhttp3.Request;
package me.sage.tutorial;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import net.dv8tion.jda.core.hooks.ListenerAdapter;
public class BotListener extends ListenerAdapter {
@rikoudosenin
rikoudosenin / Server
Created July 2, 2017 15:16
Using winsocks
#include <WinSock2.h>
#include <iostream>
#pragma comment(lib, "ws2_32.lib")
int main() {
//Winsock Startup
WSAData wsaData;
package main
import (
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"strings"
"time"
package main
import (
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
"strings"
"time"
package main
import (
"github.com/franela/goreq"
"fmt"
"io/ioutil"
)
type Item struct {
csrf_token string
#include <ntddk.h>
// Unloading function
void SampleUnload(_In_ PDRIVER_OBJECT DriverObject) {
// Nothing in here since we are not allocating anything
UNREFERENCED_PARAMETER(DriverObject);
}
extern "C"
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath) {