Skip to content

Instantly share code, notes, and snippets.

Some things I learned:

System: mATX, InWin 301, Ryzen 5600X@88wPBO, EK AIO 240mm, MSI B550M Mortar, Crucial Ballistix 3600 16-18-18-38, seagate 650 sfx PSU

  1. You can do paste wrong by not perfectly cleaning both surfaces. Originally I cleaned the stock thermal paste off the AIO and used a big MX-4 dot in the center of the CPU. I experienced lags in thermal response and high temps. It took me somewhere about 40 q tips and 30 coffee filters to completely remove the paste with 91% ISO. I did the 5 dots method the second time around and temps are better controlled now.
@czaux
czaux / DNSExternalResolver.py
Last active June 7, 2021 14:05
Get External IP with whoami.cloudflare and DNSPython
import dns.resolver #dnspython
my_resolver = dns.resolver.Resolver()
#Cloudflares DNS Server
my_resolver.nameservers = ['1.1.1.1']
#Get IP from cloudflare chaosnet TXT record
#https://community.cloudflare.com/t/can-1-1-1-1-be-used-to-find-out-ones-public-ip-address/14971/6
result = my_resolver.resolve("whoami.cloudflare","TXT", "CH", tcp=True, lifetime=15)
response = result.response
answer = response.answer
ExternalIP = str(list(answer[0])[0]).replace('"', '')
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: SittingStillProper
serializedVersion: 6
m_Legacy: 0
@czaux
czaux / gist:f3bd255438f1e705cfbd20cbf0a06cd3
Created January 8, 2020 00:40
obs recording settings
When using OBS for recording, make sure you're not resizing the output.
With OBS you can simply record to an mp4, upload that mp4, and edit it in youtubes editor.
In OBS there's a few settings you should set for quality.
Video->Base Resolution should be the same as 'output resolution'. 60fps preferred.
Output->Output Mode(at the top) = Advanced
Output->Recording and set your 'recording format' to mp4. Under encoder you can set nvidia (gpu fast) or x264 (cpu).
@SubscribeEvent
public void EnteringChunk(net.minecraftforge.event.entity.EntityEvent.EnteringChunk event) {
if(KMCFConfig.Stop_Cellien_Spawns) {
if(event.getEntity() instanceof EntityPlayer) return;
if(event.getEntity() instanceof EntityLivingBase) {
Entity aa = event.getEntity();
String name = aa.getName();
if(name.indexOf("Cellien") != -1) {
//TODO: Probably match mod name but can't find how to do that.
switch(name) {
@SubscribeEvent
public void EnteringChunk(net.minecraftforge.event.entity.EntityEvent.EnteringChunk event) {
if(KMCFConfig.Stop_Cellien_Spawns) {
if(event.getEntity() instanceof EntityPlayer) return;
if(event.getEntity() instanceof EntityLivingBase) {
Entity aa = event.getEntity();
String name = aa.getName();
if(name.indexOf("Cellien") != -1) {
//TODO: Probably match mod name but can't find how to do that.
switch(name) {
@czaux
czaux / configdialog.cpp
Created February 22, 2019 08:46
QT Widget Subtype signalling
typedef std::map<QString, std::variant<int, double, bool, QString>> DataType;
DataType activeData;
template<class T, typename X>
void ConfigDialog::updateActiveData(T widget, X value) {
this->activeData[widget->objectName()] = value;
qDebug() << value;
}