Skip to content

Instantly share code, notes, and snippets.

View przemoc's full-sized avatar

Przemysław Pawełczyk przemoc

View GitHub Profile
@przemoc
przemoc / 2+3d-szablon-eps-to-pdf+jpg.sh
Last active February 6, 2018 13:17
Converting EPS w/ crop marks to PDF w/ TrimBox+CropBox and final JPEG
#!/bin/sh
# SPDX-License-Identifier: MIT
## Copyright (C) 2011 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Converting EPS w/ crop marks to PDF w/ TrimBox+CropBox and final JPEG
# Simple script with brief explanation
@przemoc
przemoc / 02-protip-instagram.md
Created August 27, 2017 13:58
Protip: How to share photos on Instagram without using phone or 3rd party Instagram clients

Przemoc's protip (2017-08): Improve the way you upload photos to Instagram

Tired of sending photos to your phone just to share them on Instagram?

I would be too! Just use Google Chrome and visit instagram.com on your desktop PC/Mac. Yes, no need for 3rd party Instagram clients!

Go to Developer Tools (F12 or Ctrl+Shift+I), toggle device toolbar (Ctrl+Shift+M) and choose the screen to emulate or Responsive.

@przemoc
przemoc / 01-protip-youtube.md
Last active August 24, 2017 23:08
Protip: How to deal in the web browser with YouTube overlays showing at the end of videos and hiding content

Przemoc's protip (2017-08): Improve YouTube experience

Aren't you tired of overlays showing at the end of vids that hide content?

Me too! I figured out two easy solutions:

  1. Go to Developer Tools (F12 or Ctrl+Shift+I) and run following code in Console:

$$(".ytp-ce-element").forEach(function(el){el.style.display="none"})

@przemoc
przemoc / keybase.md
Created February 11, 2016 23:54
Keybase proof

Keybase proof

I hereby claim:

  • I am przemoc on github.
  • I am przemoc (https://keybase.io/przemoc) on keybase.
  • I have a public key ASAqkyJiZIDm1BPnP-S3TSYm4W206lESRnwkf1Yp1B8jwwo

To claim this, I am signing this object:

@przemoc
przemoc / 0001-BadRAM-for-v2.6.32.x.patch
Last active December 15, 2015 11:09
BadRAM for v2.6.32.x
From 5d920ec604a896cfd8419f9360f3a81adedd19eb Mon Sep 17 00:00:00 2001
From: Przemyslaw Pawelczyk <przemoc@gmail.com>
Date: Sat, 30 Jan 2010 20:57:06 +0100
Subject: [PATCH] BadRAM for v2.6.32.x
Attempt to adapt BadRAM patches to recent kernel versions. Includes
improvements and fixes(?). Were previous versions working on x86_64?
I am kernel newbie so all my below thoughts might be severly wrong.
I am not sure about correctness of x86_32 path involving highmem. It is
diff -ru memtest86+-4.00/error.c memtest86+-4.00x/error.c
--- memtest86+-4.00/error.c 2009-09-22 02:35:46.000000000 +0200
+++ memtest86+-4.00x/error.c 2010-01-30 16:15:11.000000000 +0100
@@ -256,8 +256,8 @@
clear_scroll();
v->erri.hdr_flag++;
}
- /* Do not do badram patterns from test 0 or 5 */
- if (v->test == 0 || v->test == 5) {
+ /* Do not do badram patterns from test 0 */
@przemoc
przemoc / FREEBSD-VM-URLS
Last active December 13, 2015 14:42
FreeBSD VirtualBox/VMware Images
# FreeBSD 7.1
http://virtualboxes.org/images/freebsd/
# FreeBSD 9.0 -- pre-prepared VM image for Google Code-In
http://wiki.freebsd.org/GoogleCodeIn/GettingStarted
# FreeBSD 10.1, 10.2
http://www.osboxes.org/freebsd/
# FreeBSD STABLE, CURRENT snapshot -- pre-installed VM images
@przemoc
przemoc / tmux-Stop-searching-forward-at-the-end-of-the-buffer.patch
Created February 18, 2012 23:05
Patch for tmux 1.6: Stop searching forward at the end of the buffer.
From 6bccc3fc7362967ea7d4c296a22793f7f3a2c6d8 Mon Sep 17 00:00:00 2001
From: Przemyslaw Pawelczyk <przemoc@gmail.com>
Date: Sat, 18 Feb 2012 23:51:38 +0100
Subject: [PATCH] Stop searching forward at the end of the buffer.
Requested-by: Jacobo de Vera <devel@jacobodevera.com>
---
window-copy.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
@przemoc
przemoc / Fix-lowercase-sample-paths-in-.sfz.patch
Created September 11, 2012 21:45
Sonatina Symphonic Orchestra 1.0 - fix lowercase sample paths in .sfz files
From 4e7de246fa2db00112abca27c58922f2003af4c5 Mon Sep 17 00:00:00 2001
From: Przemyslaw Pawelczyk <przemoc@gmail.com>
Date: Tue, 11 Sep 2012 23:40:07 +0200
Subject: [PATCH] Fix lowercase sample paths in *.sfz.
---
Brass - Bass Trombone Solo.sfz | 28 ++++-----
Brass - Horn Solo.sfz | 26 ++++----
Brass - Tenor Trombone Solo.sfz | 22 +++----
Brass - Trumpet Solo.sfz | 26 ++++----
@przemoc
przemoc / festalon-Fix-CPUID-availability-test-for-x86_64.patch
Created June 25, 2012 22:52
Patch for festalon 0.5.5 to make it compilable on amd64 (Ryan C. Underwood's one is needlessly big and breaking DRY rule). // http://projects.raphnet.net/#festalon
From: Przemyslaw Pawelczyk <przemoc@gmail.com>
Date: Sun, 8 May 2011 23:16:55 +0200
Subject: [PATCH] Fix CPUID availability test for x86_64.
Before you got following gcc/clang error in x86_64:
cputest.c: Assembler messages:
cputest.c:38: Error: suffix or operands invalid for `pop'
cputest.c:41: Error: suffix or operands invalid for `push'
cputest.c:44: Error: suffix or operands invalid for `pop'