Skip to content

Instantly share code, notes, and snippets.

View valeth's full-sized avatar
🦀
rusting

Patrick Auernig valeth

🦀
rusting
View GitHub Profile
@valeth
valeth / wkbd_hack.user.js
Last active May 1, 2017 04:22
WaniKani Breeze Dark Userstyles.org Hack
// ==UserScript==
// @name WKBD Settings Hack
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Inject userstyle settings
// @author Valeth
// @match https://userstyles.org/styles/135572/wanikani-breeze-dark
// @include https://code.jquery.com/jquery-3.2.1.min.js
// @grant none
// ==/UserScript==
// ==UserScript==
// @name DiscordStaticAvatars
// @namespace https://files.noodlebox.moe/
// @downloadURL https://files.noodlebox.moe/userscripts/DiscordStaticAvatars.user.js
// @version 1.0.1
// @description Don't animate avatars in the chat area
// @author noodlebox
// @require https://code.jquery.com/jquery-3.1.1.min.js
// @require https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js
// @match *://*.discordapp.com/channels/*
@valeth
valeth / postgresql_configuration_on_ubuntu_for_rails.md
Created June 3, 2017 23:04 — forked from p1nox/postgresql_configuration_on_ubuntu_for_rails.md
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
Starting program: /usr/bin/latte-dock
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe26c2700 (LWP 9179)]
[New Thread 0x7fffdbfff700 (LWP 9180)]
[New Thread 0x7fffda7a3700 (LWP 9182)]
[New Thread 0x7fffd1acb700 (LWP 9183)]
[New Thread 0x7fffd12ca700 (LWP 9184)]
[New Thread 0x7fffd08c4700 (LWP 9185)]
[New Thread 0x7fffc8d0f700 (LWP 9186)]
#!/usr/bin/env bash
unset CDPATH
export RBENV_ROOT="${XDG_HOME:-$HOME/.local}/toolchain/rbenv"
test -d "$RBENV_ROOT" || mkdir -p "$RBENV_ROOT"
cd "$RBENV_ROOT"
git clone "https://github.com/valeth/rbenv.git" .
git checkout setup
@valeth
valeth / kuro_hearthis_download.rb
Last active September 23, 2017 17:03
DJ Kuro hearthis.at song downloader script
#!/usr/bin/env ruby
# frozen_string_literal: true
require "rest-client"
require "json"
require "fileutils"
USER = "kuro-soundworks"
BASE_URL = "https://api-v2.hearthis.at"
MANIFEST_FILE = "tracks.json"
@valeth
valeth / hollow_knight_changelog.md
Last active September 23, 2017 19:47
Hollow Knight Changelog

Hollow Knight Changelog

Patch 1.1.1.8 (11th August 2017)

  • Fixed issue where defeating Collector with Defender’s Crest equipped could make Collector invincible.
  • Fixed issue where certain bosses were invulnerable to Flukenest
  • Fixed issue where defeating a Warrior Dream with Flukenest, spore cloud or dung cloud caused an error that locked you out of retrieving Essence
  • Fixed issue where Flukemarm didn’t respond aggressively to being stunk out by Defender’s Crest.
  • Re-added missing audio and art to new Hidden Dreams boss.
  • Slight adjustment to a Hidden Dreams boss’s falling attack.
@valeth
valeth / Rakefile
Last active October 25, 2017 22:38
Wine Rakefile
# frozen_string_literal: true
require "yaml"
require "shellwords"
# NOTE: put app tasks into rakelib
ENV.update(
"WINEPREFIX" => File.join(__dir__, "containers", "default"),
"WINEARCH" => "win32",
@valeth
valeth / appmanifest_APPID.acf
Created November 1, 2017 22:11
Steam App Manifest
"AppState"
{
"AppID" "APPID"
"Universe" "1"
"installdir" "APPNAME"
"StateFlags" "1026"
}
@valeth
valeth / setup.md
Last active November 12, 2017 23:31
GPG as SSH agent

Generate keys

Assuming a keychain already exists.

gpg --expert --edit-key KEYID

addkey and go through process

quit and save

Get public SSH key