Skip to content

Instantly share code, notes, and snippets.

View xacrimon's full-sized avatar

Joel Wejdenstål xacrimon

View GitHub Profile
xacrimon / skript-essentialsy.txt
Created January 8, 2018 17:09
Useful lines of code for the skript-essentialsy project
# Send the player the no permission message.
send(player, {@npm})
# curl -s | bash
# Contains useless shit, proceed at own risk
echo "[1] Big Shaq - Mans not hot"
echo "[2] Rich Chigga - Glow like dat"
echo ""
read c
xacrimon / zclean
Last active January 25, 2018 15:25
A script to clean the system of logs and caches for arch linux, adjust the username for the homedir accordingly
if [[ $(whoami) != "root" ]]
then echo "Run as root"
exit 1
if [ "$(ls /bin | grep trizen)" == "trizen" ]
xacrimon / pythonutils
Last active February 10, 2018 20:56
Useful script onelines
# Get the parent directory of the directory where in the program resides in python
# Get the directory of the current running script in shell
"$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Decrypt a file with aes-256-cbc
openssl enc -aes-256-cbc -d -in file.txt.enc -out file.txt
sudo dd if=/dev/sda conv=sync,noerror bs=64K | gzip -6c > /PATH/TO/DRIVE/backup_image.img.lz4

Keybase proof

I hereby claim:

  • I am xacrimon on github.
  • I am acrimon ( on keybase.
  • I have a public key ASDrQiuoCCy15UW1ij1DlheaI53OMOBqLFUK70_eaPYnOwo

To claim this, I am signing this object:

use super::gpu::Gpu;
use super::stb_image::{LoadImageError, Rgba8Image};
use bus::{Bus, BusReader};
use log::{debug, info};
use nanoserde::{DeRon, SerRon};
use std::env;
use std::{
fs, io,
path::{Path, PathBuf},
# rust-toolchain
# .cargo/config
rustflags = ["-Zshare-generics=y"]
use super::assets::{Assets, Sprite};
use std::borrow::Cow;
use std::cell::Cell;
use std::cell::UnsafeCell;
use std::mem;
use std::mem::ManuallyDrop;
use std::mem::MaybeUninit;
use std::num::NonZeroU32;
use std::ptr;
use std::slice;