Skip to content

Instantly share code, notes, and snippets.

View quanticc's full-sized avatar
👽
>:]

Ivan Abarca quanticc

👽
>:]
View GitHub Profile
@quanticc
quanticc / deploymentSettings.ps1
Created June 12, 2021 17:54 — forked from daurrutia/deploymentSettings.ps1
Windows Server AD Deployment Settings on AWS (DNS, Domain join)
<#
.Synopsis
Joins new Windows server to a Windows domain on AWS
.DESCRIPTION
Sets local DNS entries to DNS server(s) by IP (Set-DnsClientServerAddress)
Enables "Use this connection's DNS suffix in DNS registration" (Set-DnsClient)
Appends domain DNS suffix (WMI)
Adds server to domain in specified OU and renames server (Add-Computer)
.EXAMPLE
Log on to new server
@quanticc
quanticc / APPLICATION_COMMAND_CREATE.json
Created December 9, 2020 23:10
APPLICATION_COMMAND payloads
{
"t": "APPLICATION_COMMAND_CREATE",
"s": 1824996,
"op": 0,
"d": {
"options": [{
"type": 3,
"required": true,
"name": "animal",
"description": "The type of animal",
@quanticc
quanticc / lawena.log
Created November 25, 2020 12:25
Lawena OK log
[09:21:39] Lawena Recording Tool 4.1.18-19-gd3bf73e build 20180409221130
[09:21:39] TF2 path: D:\SteamLibrary\steamapps\common\Team Fortress 2\tf
[09:21:39] Movie path: D:\SteamLibrary\steamapps\common\Team Fortress 2\tf\Lawena
[09:21:39] Lawena path: D:\Portables\lawena-preview-4.1.18-2-gb32c8e3\lawena
[09:21:41] Skybox loading and preview generation complete
[09:23:04] [handle] No matching handles found.
[09:23:05] [handle] No matching handles found.
[09:23:05] No custom backup folder present
[09:23:05] No config backup folder present
[09:23:05] *** Restore and cleanup completed
/*
* This file is part of Discord4J.
*
* Discord4J is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Discord4J is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@quanticc
quanticc / gist:4cfeb59f34e105fd279a7279c12796ec
Last active August 2, 2020 21:57
Discord4J - 3.1.0 - Example successful voice channel join
21:54:39.452 d4j-events-2 DEBUG d.c.event.ReplayingEventDispatcher - Subscription 7f9aa40a to VoiceStateUpdateEvent created
21:54:39.453 d4j-events-2 DEBUG d.c.event.ReplayingEventDispatcher - Subscription 6f109c99 to VoiceServerUpdateEvent created
21:54:39.483 d4j-events-1 DEBUG d.c.event.ReplayingEventDispatcher - Subscription 7f9aa40a to VoiceStateUpdateEvent disposed due to cancel
21:54:39.495 d4j-events-1 DEBUG d.c.event.ReplayingEventDispatcher - Subscription 6f109c99 to VoiceServerUpdateEvent disposed due to cancel
21:54:39.508 reactor-http-epoll-4 DEBUG d.voice.DefaultVoiceGatewayClient - [G:b06fec9, S:0, guildId:185949590652977152] [connected] PooledConnection{channel=[id: 0x35adfc17, L:/xxx.xxx.xxx.xxx:52854 - R:us-east954.discord.media/162.159.129.235:80]}
21:54:39.509 reactor-http-epoll-4 DEBUG d.voice.DefaultVoiceGatewayClient - [G:b06fec9, S:0, guildId:185949590652977152] [configured] GET{uri=/, connection=PooledConnection{channel=[id: 0x35adfc17, L:
@quanticc
quanticc / README.md
Created June 8, 2020 21:20 — forked from hollemawoolpert/README.md
Simple VRP with Google Developer Resources

Binder

Simple VRP with Google Developer Resources¶

Demonstrates a solution for the simple multi-vehicle routing problem (VRP) using a combination of Google libraries and services. Sample depot and shipment locations randomly chosen in the San Antonio, TX metro area. Distances and times are based on Google's road network.

Getting Started

You will need a Google Maps Platform API Key.

Run on binder

@quanticc
quanticc / MdcContextBridge.java
Created May 25, 2020 16:45
MdcContextBridge
import org.reactivestreams.Subscription;
import org.slf4j.MDC;
import reactor.core.CoreSubscriber;
import reactor.core.publisher.Hooks;
import reactor.core.publisher.Operators;
import reactor.util.context.Context;
import java.util.Map;
import java.util.stream.Collectors;
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<logger name="io.netty" level="INFO"/>
<logger name="reactor" level="INFO"/>
<logger name="discord4j.gateway" level="DEBUG"/>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-20.20thread %5p %-36.36logger{36} - %m%n</pattern>
</encoder>
@quanticc
quanticc / connect.svg
Created December 1, 2019 13:47
Discord4J Distributed Architecture
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* This file is part of Discord4J.
*
* Discord4J is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Discord4J is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of