Skip to content

Instantly share code, notes, and snippets.

View Drowze's full-sized avatar

R Gibim Drowze

View GitHub Profile

Medieval Network!

In the early middle ages, where magic reigns and the dragons breath, the world nearly came to an end if not by the bravery of the mightiest wizards.
Those, who do their magic writing lines of gibberish language may now save the humanity, but not without a social network to orchestrate their plans.

Features that shall belong

Such a crucial network shall never see the light of the day having it not the following:

  • Wizard creation
    A wizard has no less than the following: name, age, gender, location (lat,long).
    A wizard has a bag as well, which shall be filled with gold, food, beer, life potions and mana potions (however those should be described during creation - after that one can only obtain items by trading with others!)
@Drowze
Drowze / vmux.fish
Created July 30, 2018 15:52
vmux.fish
function vmux --description 'Use tmux inside vagrant instance'
vagrant ssh -- -t 'tmux attach $@'
end
@Drowze
Drowze / update-master.fish
Last active July 30, 2018 15:16
update-master.fish
function update-master --description "update master branch"
set __CUR_BRANCH (git rev-parse --abbrev-ref HEAD)
git checkout master
git pull
git checkout $__CUR_BRANCH
set -e __CUR_BRANCH
end
@Drowze
Drowze / cur-branch.fish
Created July 30, 2018 15:12
cur-branch.fish
function cur_branch --description "Returns the name of the current git branch"
git rev-parse --abbrev-ref HEAD
end
@Drowze
Drowze / Removing audio tracks from mkv.md
Last active March 21, 2022 09:52
#mkv #mkvmerge Remove audio/subtitle from a batch of mkv files

Get the ids of the tracks with mkvinfo <file name> e.g.:

video 0
audio_disliked 1 (default)
audio_liked 2
subtitles_disliked 3 (default)
subtitles_liked 4
@Drowze
Drowze / INSTRUCTIONS.md
Last active September 23, 2021 14:09
Setting up a Plex Media Server VM (tested with Virtualbox) with ubuntu server (tested on 16 LTS)

DISCLAIMER

Tested under Windows 10 Pro host (1709), Ubuntu server 16 LTS guest, VirtualBox 5.2.4.
Hardware: AMD FX 6300, 8GB Ram (VGA should not matter).

Step-by-step

  • Download Virtualbox and set up a VM with Ubuntu Server (I used 16 LTS). Take note of the VM name.
  • With the VM closed, configure the network adapter as bridged.
  • Install the Ubuntu server normally. Take note of your username (duh!).
  • Add the plex repositories and add the key as trusted:
@Drowze
Drowze / boxstarter.ps1
Last active May 25, 2018 19:43 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <[email protected]>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@Drowze
Drowze / wallhaven.rb
Last active March 22, 2020 11:43
Ruby script to scrap wallpapers from Wallhaven. Also provided a way to automatically use a downloaded wallpaper #wallhaven #ruby
require 'mechanize'
class WallHaven
BASE_URI = 'https://wallhaven.cc'
def initialize(limit: 24, human_download: false)
@agent = Mechanize.new
@limit = limit.to_i
@human_download = human_download
end
@Drowze
Drowze / main.rb
Last active October 5, 2017 02:06
run with "ruby main.rb GAME_ID" and build a simple webpage with all the not-obtained steam achievements for a game, ordered from the most popular to the less popular
require 'ostruct'
require 'erb'
STEAM_PROFILE_ID = 'YOUR_STEAM_PROFILE_ID' # https://steamid.io/
STEAM_API_KEY = 'YOUR_API_KEY' # http://steamcommunity.com/dev/apikey (enter '127.0.0.1' if you're unsure about your domain name)
OUTPUT_HTML = 'steam_achievements.html'
INPUT_ERB = 'steam_achievements.html.erb'
module Steam
For an app I'm building for myself, I have to provide a privacy policy for
data retrieved from the API.
I will not release any data from the Uber API without explicit and clear
consent of the user.
This does not affect the user's statutory rights. The user is able to stop
using the service at any time, and can remove any data from the service
using the appropriate database management commands.