Skip to content

Instantly share code, notes, and snippets.

View aspann's full-sized avatar
💭
hunting some chickens riding frogs.

Armas Spann aspann

💭
hunting some chickens riding frogs.
View GitHub Profile
@aspann
aspann / wine3.13_battle-net.patch
Created August 5, 2018 13:46
wine3.13_battle-net.patch
@@ -, +, @@
kernel32: Add AttachConsole implementation.
--- a/dlls/kernel32/console.c
+++ a/dlls/kernel32/console.c
@@ -2909,8 +2909,23 @@ BOOL WINAPI ScrollConsoleScreenBufferW(HANDLE hConsoleOutput, LPSMALL_RECT lpScr
*/
BOOL WINAPI AttachConsole(DWORD dwProcessId)
{
- FIXME("stub %x\n",dwProcessId);
- return TRUE;
@aspann
aspann / 910-rat.conf
Created April 7, 2018 18:54
/etc/X11/xorg.conf.d/910-rat.conf
Section "InputClass"
Identifier "Cyborg R.A.T. 9"
MatchProduct "R.A.T.9"
MatchDevicePath "/dev/input/event*"
Option "Buttons" "17"
Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
Option "AutoReleaseButtons" "13 14 15"
Option "ZAxisMapping" "4 5 6 7"
EndSection
@aspann
aspann / flatpak_steam.txt
Created January 27, 2018 14:59
install/update flatpak (steam)
## setup flatpak
# edit repos-conf
joe /etc/portage/repos.conf/flatpak-overlay.conf
# content
[flatpak-overlay]
priority = 50
location = /usr/portage/flatpak-overlay
sync-type = git
sync-uri = https://github.com/fosero/flatpak-overlay.git
auto-sync = Yes
@aspann
aspann / git.YOURDOMAIN.COM.vhost
Created October 21, 2017 21:14
vHost-file (nginx)
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name git.YOURDOMAIN.COM;
ssl on;
ssl_certificate /etc/letsencrypt/live/YOURDOMAIN.COM/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/YOURDOMAIN.COM/privkey.pem;
@aspann
aspann / upgrade_gogs.sh
Created October 21, 2017 20:56
helper - upgrade_gogs.sh
#!/bin/bash
echo -e "upgrading gogs.."
go get -u github.com/gogits/gogs
`cd gogs; go build`
echo -e "please run the following commands as root: \n"
echo -e "$ systemctl restart gogs"
exit 0
@aspann
aspann / gogs.service
Created October 21, 2017 20:56
SystemD - gogs.service
[Unit]
Description=Gogs a Go Git Service
After=network.target
After=mysqld.service
[Service]
User=git
Group=git
PermissionsStartOnly=true
WorkingDirectory=/home/git/gogs
@aspann
aspann / Howto.txt
Last active March 5, 2024 00:36
Contabo - Howto install Gentoo/Linux
## prerequirements (VPS - XL) - after entered the rescuesystem
bash
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
cd /mnt/gentoo
#stage3: https://www.gentoo.org/downloads/#other-arches | current: http://distfiles.gentoo.org/releases/amd64/autobuilds/20170525/stage3-amd64-20170525.tar.bz2
wget <PASTED_STAGE_URL>
@aspann
aspann / make.conf
Created May 29, 2017 13:02
Gentoo make.conf for Contabo VPS
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j11 -l15.00"
FEATURES="parallel-fetch fixlafiles"
LICENSE="*"
PORTAGE_NICENESS="15"
## PHP OPTIONS ##
@aspann
aspann / .config
Created May 29, 2017 12:58
Kernel 4.11 - Configuration for Contabo VPS (systemd - gentoo)
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.11.3-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y