Skip to content

Instantly share code, notes, and snippets.

View nogweii's full-sized avatar
🍀

Nogweii nogweii

🍀
View GitHub Profile
############## Kodi CRASH LOG ###############
################ SYSTEM INFO ################
Date: Mon May 28 01:10:39 UTC 2018
Kodi Options:
Arch: x86_64
Kernel: Linux 4.16.11-1-ARCH #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018
Release: Arch Linux
############## END SYSTEM INFO ##############
@nogweii
nogweii / readme.md
Last active March 27, 2016 07:02
factorio server administration, on centos7

Installing

Go to http://www.factorio.com/download-headless/stable and download the latest stable. As of this writing, that would be 0.12.26

The headless server is a tarball of a (mostly?) statically-compiled server along with data. You will need to extract it and put it into a directory. Since this is a 3rd-party program, not managed by the package manager, I feel like /opt is a good choice.

tar xf factorio_headless_x64_0.12.26.tar.gz
sudo mv factorio /opt
sudo chown -R root:root /opt/factorio
#!/usr/bin/python2
# A fairly simple script to download all of the music you paid for on Google Play Music to your hard drive. Not smart
# at all, will redownload the music if you run it a second time.
#
# Meant to run against gmusicapi v7. The next release shouldn't need the Paidmanager subclass hack.
import gmusicapi
from IPython import embed
import mutagen
> codeparrot@0.0.1 gulp /home/colin/code/CodeParrot
> gulp "javascript_dev"
[16:58:38] Using gulpfile ~/code/CodeParrot/Gulpfile.js
[16:58:38] Starting 'javascript_dev'...
{ [Error: Cannot find module './cryptoRand' from '/home/colin/code/CodeParrot/node_modules/adjective-adjective-animal/dist']
stream:
Labeled {
_readableState:
@nogweii
nogweii / index.md
Created September 30, 2015 00:12
configuring Cyrclebot

Configuration

All configuration is done in the config.json file.

{
  "key": "mumble.key",
  "cert": "mumble.cert",
  "serverAddress": "mumble://example.com:64738",
 "youtubeKey": "SERVER_API_KEY_GOES_HERE",
@nogweii
nogweii / play.rb
Last active September 21, 2015 20:46
mumble razzle hatbot play whole function
module Mumble
class Client
def conn
@conn
end
def config
@config
end
end
end
@nogweii
nogweii / draft.md
Last active July 14, 2017 17:08
rough draft for why arch linux doesn't work with Gen2 HyperV machines

3 issues are present immediately when trying to install Archlinux in a Gen2 HyperV VM:

  1. Keyboard doesn't work. See http://www.gossamer-threads.com/lists/linux/kernel/1985855 for more details.
  2. The network doesn't work. See http://www.hurryupandwait.io/blog/running-an-ubuntu-guest-on-hyper-v-assigned-an-ip-via-dhcp-over-a-wifi-connection for more details.
  3. When you do try to do network operations, there are checksum errors. See http://forge.univention.org/bugzilla/show_bug.cgi?id=33160 for more details.

To solve the keyboard, you need to enable the SERIO_I8042 kernel module. Which won't autoload (when it's set to =M in Kconfig) as HyperV gen2 images don't virtualize any PS/2 devices. And due to a missing dependency, hyperv_keyboard.ko can't load without it. (https://bugs.archlinux.org/task/39820 for some more details.)

The network doesn't work at all, as the traffic isn't getting outside of the VM. This is the case with other Linux VMs, and isn't necessarily Arch's fault. Sharing the n

@nogweii
nogweii / shellshock_test.sh
Last active August 29, 2015 14:07
Quickie test for shell shock.
#!/bin/bash
# A quick shell script that outputs "VULNERABLE!" if you are vulnerable, nothing
# otherwise. Meant to be used as part of an automated framework.
#
# Based on [bashcheck](https://github.com/hannob/bashcheck).
#
# These tests are *incomplete!* This is missing the tests for CVE-2014-6277 &
# CVE-2014-6278, as updated bashes aren't widely available yet, so they will
# always trigger.
@nogweii
nogweii / arizona_life.geojson
Created August 8, 2014 06:37
My life thus far in Arizona. Playing with mapbox tools, like http://geojson.io/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nogweii
nogweii / ddg_bangs.rb
Created May 23, 2014 23:17
get a list of all of duckduckgo's bangs in a programmatic manner, useful for scripting
require 'nokogiri'
require 'open-uri'
require 'json'
require 'yaml'
f = open('https://duckduckgo.com/bang.html', {"User-Agent" => 'Ruby script parsing the full list of bangs/1.0 ; http://evaryont.me'}).read
n = Nokogiri.parse(f)
class DDGBang < Struct.new(:category, :group, :bang, :aliases, :full_name)
def to_json(*)