Skip to content

Instantly share code, notes, and snippets.

Przemysław Pawełczyk przemoc

Block or report user

Report or block przemoc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@przemoc
przemoc / fibonacci.asm
Created Jul 19, 2010
Fibonacci n-th number (modulo 2^32) in x86 assembler
View fibonacci.asm
; Fibonacci n-th number (modulo 2^32)
;
; input:
; ecx = n
; modifies:
; eax, ecx, edx
; ouput:
; eax = number
; size:
; 15 bytes
View vdiwrap.c
/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
*
***** Description ************************************************************
*
* Simple (and incomplete) syscalls interposition for accessing fixed-size Sun
* xVM VirtualBox Virtual Disk Images (.vdi files), especially using sfdisk.
*
***** License ****************************************************************
View lockable_script_boilerplate.sh
#!/bin/bash
# SPDX-License-Identifier: MIT
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate
@przemoc
przemoc / validations.rb
Last active Feb 6, 2018
Validation of IBAN, ISBN, ISSN, UESRP, NER and VATIN numbers
View validations.rb
# SPDX-License-Identifier: MIT
## Copyright (C) 2010 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
module Validations # version 0.1
# International Bank Account Number
def iban?
View numstr-test.c
#include <stdio.h>
#include <stdlib.h>
#define NUMBER 12345678901234567890
#define _Q(n) #n
#define Q(n) _Q(n)
#define ATOL(n) atol(Q(n))
#define SSCANF(n) ({ long val = 0; sscanf(Q(n), "%ld", &val); val; })
@przemoc
przemoc / p7zip-pwd-from-stdin.patch
Created Jan 10, 2011
Awful p7zip hack for reading passwords from stdin. Compatible w/ 9.04 and 9.13.
View p7zip-pwd-from-stdin.patch
--- p7zip_9.04.orig/CPP/7zip/UI/Console/Main.cpp 2009-06-27 16:18:14.000000000 +0200
+++ p7zip_9.04/CPP/7zip/UI/Console/Main.cpp 2011-01-10 01:25:36.000000000 +0100
@@ -48,6 +48,10 @@
#include "myPrivate.h"
#include "Windows/System.h"
+#include <iostream>
+
+#define MAX_PWD_SIZE_FROM_STDIN 1024
+
@przemoc
przemoc / siemens.gawk
Last active Feb 6, 2018
Siemens ringtone converter v. 0.3 // taken from pcspk 0.0.6: http://wiki.przemoc.net/projects/pcspk
View siemens.gawk
#!/usr/bin/gawk -f
# SPDX-License-Identifier: GPL-2.0-only
## (C) Copyright 2007-2008 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the GNU GPL v2 only license.
## https://www.gnu.org/licenses/gpl-2.0.html
#
# Siemens ringtone converter v. 0.3
#
@przemoc
przemoc / 2+3d-szablon-eps-to-pdf+jpg.sh
Last active Feb 6, 2018
Converting EPS w/ crop marks to PDF w/ TrimBox+CropBox and final JPEG
View 2+3d-szablon-eps-to-pdf+jpg.sh
#!/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 / gist:1105621
Created Jul 26, 2011
Blondie - Call me (Original 12 Mix) lyrics
View gist:1105621
Blondie - Call me (Original 12 Mix)
===================================
Colour me your colour baby, colour me your car
Colour me your colour darling, I know who you are
Come up off your colour chart
I know where you're coming from
Call me (call me) on the line
Call me, call me any, any time
@przemoc
przemoc / gitio
Last active May 11, 2019
Turn a github.com URL into a git.io URL.
View gitio
#!/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
#
# Usage: gitio URL [CODE]
#
You can’t perform that action at this time.