Skip to content

Instantly share code, notes, and snippets.

View Th0rgal's full-sized avatar
🕶️

Thomas Marchand Th0rgal

🕶️
View GitHub Profile
# Qui ?
Aveuglément je t'ai cherché,
Quelle belle manière de dire que je perdais mon temps,
Jeune, imbécile, je pensais pouvoir te trouver
Perdu parmi les faux semblants
Mais c'est moi qui me suis perdu,
Diamorphine, joli nom pour des cristaux de mort,
Après ça même le plus beau des diamants t'endort

Keybase proof

I hereby claim:

  • I am th0rgal on github.
  • I am th0rgal (https://keybase.io/th0rgal) on keybase.
  • I have a public key ASDOY9o8jkApCIOX1nqVnF4UCcH3RApk3QcvKCvIBph79wo

To claim this, I am signing this object:

{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
./networking.nix
./users.nix
];
boot = {
loader = {
@Th0rgal
Th0rgal / configuration.nix
Created December 27, 2019 21:11
My laptop system configuration
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot = {
kernelPackages = pkgs.linuxPackages_latest;
@Th0rgal
Th0rgal / mega-ores-pack.yml
Created June 8, 2020 21:15
Oraxen mega ores pack
amethyst_ore:
displayname: '&dAmethyst Ore'
material: DIAMOND
Pack:
generate_model: true
parent_model: block/cube_all
textures:
- amethyst_ore
custom_model_data: 2
Mechanics:
@Th0rgal
Th0rgal / example.py
Created July 10, 2020 09:09
Example code for stackoverflow
async def main(loop):
config = Config("config.toml", "config.template.toml")
client = cryptocom.Client(config.api_key, config.api_secret)
await client.load_market()
print("I want this instruction to be executed but I also want my infinite loop to keep running at the same time")
import style from "./style";
import { Component } from "preact";
import { route } from "preact-router";
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
hasCode: false,
creating: false,
[15:15:22] [Netty Server IO #1/ERROR]: [Oraxen] Unhandled exception occured in onPacketReceiving(PacketEvent) for Oraxen
java.lang.IllegalArgumentException: No enum constant com.comphenix.protocol.wrappers.EnumWrappers.PlayerDigType.SWAP_ITEM_WITH_OFFHAND
at java.lang.Enum.valueOf(Enum.java:273) ~[?:?]
at com.comphenix.protocol.wrappers.EnumWrappers$EnumConverter.getSpecific(EnumWrappers.java:806) ~[?:?]
at com.comphenix.protocol.wrappers.EnumWrappers$EnumConverter.getSpecific(EnumWrappers.java:792) ~[?:?]
at com.comphenix.protocol.reflect.StructureModifier.readInternal(StructureModifier.java:229) ~[?:?]
at com.comphenix.protocol.reflect.StructureModifier.read(StructureModifier.java:197) ~[?:?]
at com.comphenix.protocol.reflect.StructureModifier.getValues(StructureModifier.java:678) ~[?:?]
at io.th0rgal.oraxen.utils.breaker.BreakerSystem$1.onPacketReceiving(BreakerSystem.java:72) ~[?:?]
at com.comphenix.protocol.injector.SortedPacketListenerList.invokeReceivingListener(SortedPacketListenerList.java:11
ProtocolLib Dump
Timestamp: 08/06/21 17:24:50
ProtocolLib Version: ProtocolLib v4.7.0
Bukkit Version: 1.16.5-R0.1-SNAPSHOT
Server Version: git-Paper-783 (MC: 1.16.5)
Java Version: 16.0.1
ProtocolLib: com.comphenix.protocol.ProtocolLib@671287da[
statistics=com.comphenix.protocol.metrics.Statistics@41e83d5
{ lib, fetchurl, makeDesktopItem, appimageTools, imagemagick }:
let
pname = "sigma-file-manager";
version = "1.3.0";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/aleksey-hoffman/${pname}/releases/download/v${version}/${name}-Linux-Debian.AppImage";
sha256 = "1s0f8hh5xyigpm5ikl1f8mpzd94kj3sr18d9zi2x0m7yclxyc5pm";