Skip to content

Instantly share code, notes, and snippets.

View Swyter's full-sized avatar
💭
¯\_(ツ)_/¯

Swyter Swyter

💭
¯\_(ツ)_/¯
View GitHub Profile
@Swyter
Swyter / PKGBUILD
Created April 16, 2015 10:04
Sinerider 0.3.36 — Arch Linux AUR
# Maintainer: swyter <swyterzone+aur@gmail.com>
# Note: Haven't really tested it with i686, but it should work all the same... at least in theory. :)
pkgname=sinerider
pkgver=0.3.36
pkgrel=1
epoch=
pkgdesc="SineRider is a game of numerical sledding. It will make you see math the way mathematicians see it: a creative process of exploration and discovery. Math is the ultimate puzzle, and SineRider is the ultimate math puzzle game."
arch=('x86_64' 'i686')
url="http://sineridergame.com/"
Index: base/applications/rapps/rapps.h
===================================================================
--- base/applications/rapps/rapps.h (revision 68875)
+++ base/applications/rapps/rapps.h (working copy)
@@ -27,7 +27,7 @@
#include "resource.h"
/* FIXME: this should be downloaded by HTTPS once is supported */
-#define APPLICATION_DATABASE_URL L"http://svn.reactos.org/packages/rappmgr.cab"
+#define APPLICATION_DATABASE_URL L"https://svn.reactos.org/packages/rappmgr.cab"
@Swyter
Swyter / thing.txt
Created January 12, 2016 19:09
gdb --batch -ex=r --args ./testparse glsl120 /tmp/mb.fx > thing.txt
This file has been truncated, but you can view the full file.
MojoShader testparse
Compiled against changeset hg-1151:5e0ebc5366f3
Linked against changeset hg-1151:5e0ebc5366f3
EFFECT: /tmp/mb.fx
PROFILE: glsl120
PARAM #0
VALUE: swy_ui_opacity -> (null)
CLASS: SCALAR
diff -u ./youtube-dl-gui-git/PKGBUILD ./youtube-dl-gui-git-mod/PKGBUILD
--- ./youtube-dl-gui-git/PKGBUILD 2015-06-08 17:21:17.000000000 +0200
+++ ./youtube-dl-gui-git-mod/PKGBUILD 2016-04-08 16:08:50.277951261 +0200
@@ -1,8 +1,9 @@
-# Maintainer: willemw <willemw12@gmail.com>
+# Maintainer: willemw <willemw12@gmail.com>
+# Contributor: swyter <swyterzone+aur@gmail.com>
_pkgname=youtube-dl-gui
pkgname=$_pkgname-git
-----> asc2 universal mem save to array
si\d+\((\w+),([^\)]+)\)
a[$2] = $1
-----> asc2 universal mem load to array
li\d+\(([\w+\-\0-9]+)\);
a[$1]
-----> int cast to assignment
= int\(([^ ]+) ([^ ]) ([^\)]+)\)
package com.spotify.core
{
import avm2.intrinsics.memory.li32;
import avm2.intrinsics.memory.li8;
import avm2.intrinsics.memory.si32;
import avm2.intrinsics.memory.si8;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_66;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_67;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.___unnamed_68;
import com.spotify.core_2F_var_2F_folders_2F_9w_2F_1qgqt2cn279bvq4xrmv1c2_80000gn_2F_T_2F__2F_ccfk1YOK_2E_lto_2E_bc_3A_71C87280_2D_0648_2D_4E44_2D_97CD_2D_27E77AB5FB54.F___unnamed_4;
@Swyter
Swyter / gist:35baaa156671d8c780799d3c4b814df7
Last active May 14, 2016 18:25
split video into image frames with ffmpeg -> batch composite overlay with imagemagick -> merge composited frames back into a video with the same framerate in ffmpeg
ffmpeg -i Descargas/output.mp4 -to 0:00:03.086 mosca%03d.png
for i in {58..60}; do thing=`printf "%03d" $i`; composite mask.png mosca${thing}.png mosca${thing}_comp.png; done
ffmpeg -framerate 23.98 -i mosca%03d_comp.png mosca_comp.mp4
ffmpeg -r 23.98 -i final/%04d.png final_b.mp4
ffmpeg -i __tost.mp4 -ss 04:30 -c copy __tost_b.mp4
ffmpeg -i __tost.mp4 -t 04:24.2 -c copy a.ts
ffmpeg -i "concat:a.ts|b.ts" -c copy -bsf:a aac_adtstoasc reassembled.mkv
@Swyter
Swyter / thing.md
Created June 1, 2016 15:14
OpenStreetMap Tilemap URL -- WhooTS WMS to tile proxy -- Catastro de España

EXAMPLE WHOOTS URL

http://whoots.mapwarper.net/tms/{zoom}/{x}/{y}/870/http://maps.nypl.org/warper/layers/wms/870 

RAW TILEMAP URL FOR iD MAP EDITOR

http://whoots.mapwarper.net/tms/{zoom}/{x}/{y}/Catastro/http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx
@Swyter
Swyter / rgl_log.txt
Last active June 13, 2016 18:07
sudo opensnoop Warband font issue
501 15670 Mount and Blade 13 /Users/lolwut/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Mount and Blade.app/Contents/Resources/../../../Modules/TLD/module.ini
501 15670 Mount and Blade 13 /Users/lolwut/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Mount and Blade.app/Contents/Resources/../../../Modules/TLD/game_variables.txt
501 15670 Mount and Blade 13 /Users/lolwut/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Mount and Blade.app/Contents/Resources/../../../Modules/Native/game_variables.txt
501 433 Terminal 13 /Users/lolwut/Library/Saved Application State/com.apple.Terminal.savedState/window_2.data
501 15670 Mount and Blade 13 /Users/lolwut/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Mount and Blade.app/Contents/Resources/../../../Modules/TLD/Resource/core_shaders.brf
501 15670 Mount and Blade 13 /Users/lolwut/Library/Application Support/Steam/steamapps/common/MountBlade Warb
~/Library/Application Support/Steam/steamapps/common/MountBlade Warband/Modules