Skip to content

Instantly share code, notes, and snippets.

View sachk's full-sized avatar
🏁

sacha sachk

🏁
  • Sydney, Australia
  • 02:18 (UTC +10:00)
View GitHub Profile
@sachk
sachk / README.md
Last active March 15, 2022 12:41
bar chart race for discord messages sent

Instructions

1: Enable devtools in Discord

2: Download DiscordChatExporter and use it to download every channel as JSON

3: Setup a virtualenv if you want

4: Install dependancies with pip install simdjson pandas git+https://github.com/programiz/bar_chart_race.git@master

---- Minecraft Crash Report ----
// Why did you do that?
Time: 5/12/21, 3:20 pm
Description: Rendering screen
java.lang.NullPointerException: Screen cannot be null
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at net.fabricmc.fabric.api.client.screen.v1.ScreenEvents.afterRender(ScreenEvents.java:137)
at net.minecraft.client.render.GameRenderer.handler$zdk000$onAfterRenderScreen(GameRenderer.java:1542)
#!/bin/sh
#######################################
### NZBGET POST-PROCESSING SCRIPT ###
# Moves downloads to a configured location using rclone and load balances over
# multiple remotes
#
#
# NOTE: Requires sh, coreutils or busybox, screen and rclone. Remotes must be setup in rclone.conf.
@sachk
sachk / ffmpeg-nonfree-build-ubuntu-16.04.sh
Last active November 6, 2018 07:20 — forked from silverkorn/ffmpeg-nonfree-build-ubuntu-16.04.sh
An automated script to build FFmpeg non-free on Debian/Ubuntu with as much features as possible.
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb)
###################
## Configuration ##
###################
FFMPEG_CPU_COUNT=$(nproc)
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype"
FFMPEG_HOME=/usr/local/src/ffmpeg
FROM ubuntu:bionic as builder
WORKDIR /root/go/src/github.com/boynux/squid-exporter
COPY . .
# Install build utilities
RUN apt update && apt upgrade && apt install -y gccgo gccgo-go upx git
# Compile the binary statically, so it can be run without libraries using gccgo
# and with extra flags to remove debug info.
Containers: 5
Running: 1
Paused: 0
Stopped: 4
Images: 4
Server Version: 17.12.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
@sachk
sachk / sources.list
Created March 15, 2018 06:23
AU sources 16.04
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerau_ - Release amd64 (20170215.2)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://au.archive.ubuntu.com/ubuntu/ xenial-updates main restricted