Skip to content

Instantly share code, notes, and snippets.

SamwiseFilmore MggMuggins

Block or report user

Report or block MggMuggins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MggMuggins
MggMuggins / log
Last active Feb 11, 2019
Josharias' Survival when creating a world.
View log
Exception in thread "Thread-8" java.lang.NoClassDefFoundError: org/terasology/core/world/generator/facetProviders/SurfaceObjectProvider
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at org.terasology.module.sandbox.ModuleClassLoader.access$200(ModuleClassLoader.java:49)
at org.terasology.module.sandbox.ModuleClassLoader$1.run(ModuleClassLoader.java:151)
at org.terasology.module.sandbox.ModuleClassLoader$1.run(ModuleClassLoader.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at org.terasology.module.sandbox.ModuleClassLoader.findClass(ModuleClassLoader.java:142)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
View errors - linux
warning: package replacement is not used: https://github.com/rust-lang/crates.io-index#net2:0.2.32
warning: package replacement is not used: https://github.com/rust-lang/crates.io-index#thrussh-keys:0.9.5
Checking thrussh-agent v0.1.0 (file:///home/wesley/Workspace/Rust/Redox/redox/cookbook/recipes/thrussh/source/thrussh-agent)
error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> thrussh-agent/src/thrussh-add.rs:43:22
|
43 | let stream = tokio_uds::UnixStream::connect(&agent_path, &h).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter
error[E0061]: this function takes 1 parameter but 2 parameters were supplied
View Dockerfile
FROM andrewbenton/alpine-ldc
RUN adduser coder -h /home/coder -D
ADD --chown=coder:coder code /home/coder/code.d
WORKDIR /home/coder
RUN sed -i '1s/^/void main() {\n/' code.d
RUN sed -i '$s/$/\n}/' code.d
View .tmux.conf
# Prefix Binding to Ctrl-a
unbind C-b
set -g prefix C-a
# Bindings for Window Splitting
unbind '"'
unbind %
unbind c
unbind &
bind | split-window -h
@MggMuggins
MggMuggins / md2pdf.fish
Created Mar 2, 2018
A little fish function that converts a github md doc to a pdf. Depends grip (https://github.com/joeyespo/grip) and wkhtmltopdf
View md2pdf.fish
# Usage is something like `render_md_to_pdf hi.md`
function md-to-pdf
set name (basename -s .md "$argv[1]")
grip "$argv[1]" --export "$name.html5"
sed -i 's/border:\([0-9]*\)px solid #ddd/border:\1px solid #FF0000/g' "$name.html5"
sed -i 's/#FF0000}\.markdown-body/#ddd}\.markdown-body/g' "$name.html5"
sed -i 's/FF0000/FFF/g' "$name.html5"
sed -i -e '/margin-top: 64px;/d' "$name.html5"
awk " \
BEGIN { count_o = 0; count_c = 0; } \
@MggMuggins
MggMuggins / Panic
Last active Dec 23, 2017
authd stuff
View Panic
PANIC: no entry found for key
FILE: ~/Workspace/Rust/Redox/redox/rust/src/libcore/option.rs
LINE: 874
TRACE: FFFFFF40001B2700
FFFFFF40001B2700: FFFFFF000015AC4A
FFFFFF000015AAA0+01AA
rust_begin_unwind
FFFFFF40001B2790: FFFFFF0000198DB4
FFFFFF0000198D30+0084
core::panicking::panic_fmt::h1a71b4e9c4db074d
@MggMuggins
MggMuggins / Challenges.md
Last active Dec 15, 2017
Python Cheat Sheet for K-8 Coding night
View Challenges.md

Here are some example problems to solve! They are listed roughly by how hard they will be to solve, top to bottom (easiest at the top).

Random Numbers

This isn't a challenge, just something that is used in a number of the other challenges. How to create a random number:

# Allows us to use a function someone else wrote (called "randint")
from random import randint

# Selects a number anywhere between 6 and 12 (including 6 and 12)
my_var = randint(6, 12)
@MggMuggins
MggMuggins / build.log
Last active Nov 3, 2017
Ecere Build Log
View build.log
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building 2nd stage ecere...
/usr/include/bits/mathcalls-helper-functions.h:21:1: warning: Undeclared class _Float128
/usr/include/bits/mathcalls-helper-functions.h:25:1: warning: Undeclared class _Float128
@MggMuggins
MggMuggins / ArtemisDesignGuidelines.md
Last active Sep 7, 2017
A file that describes design goals for the Artemis desktop.
View ArtemisDesignGuidelines.md

Preface

This document describes goals and rules for creating the Artemis desktop. It is written in plain english with an attempt to be clear and consice and is currently small enough to contain both internal design goals and user interface guidelines. It is a heavy work in progress.

We aim to create a desktop shell and applications for the desktop Linux experience. As such, no accomodations will be made specifically to support mobile platforms.

Design Goals

  1. Clean source with good source code documentation.
  2. Efficiency is important. However, when there is a choice between user experience/polish and efficiency, efficiency comes second.
  3. Modularity is key. Making components that can work apart from the whole as well as they can with it. This will allow multiple peices of our codebase to be reused easily.
  4. Consistency in both programming style and archetecture. Programming should be done in a similar way across our codebase. Also, archetecture should be consistent across all parts of the desktop.
@MggMuggins
MggMuggins / yam.fish
Last active Aug 10, 2017
My tool for installing packages from the AUR. Rename to "yam" and install in /usr/local/bin if you so desire for easy execution.
View yam.fish
#!/usr/bin/fish
# Sources are placed in $HOME/.local/share/yam
# by default. I'll add better argument parsing
# and an option to change it later
set install false
set srcdir $HOME/.local/share/yam/
for arg in $argv
You can’t perform that action at this time.