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 / hd-sentinel.md
Created May 3, 2019
Hard Disk Sentinel (standard) 5.30 for Windows for FREE
View hd-sentinel.md

Hard Disk Sentinel is a good tool to check and monitor your disks parameters and health. You should consider having it in your toolbox.

Now you can get Windows version of Hard Disk Sentinel v5.30 (9417) for free at SharewareOnSale. After clicking "Download Hard Disk Sentinel Now" button you'll have to fill a form asking for email (they'll use it to send you news regarding SharewareOnSale offers), country, used platforms, gender, job level, and confirm it by clicking "Give it to me now". You'll get SharewareOnSale_Giveaway_Hard_Disk_Sentinel_hub.exe and also mail titled "Download is ready: Hard Disk Sentinel" starting with:

Hi there. Thank you for downloading from us. Your download details are given below.

Hard Disk Sentinel (100% discount)

YOUR DOWNLOAD(S)

@przemoc
przemoc / yt-sort-videos-by-length.js
Created Mar 31, 2019
Bookmarklet for YouTube: Sort videos by length in videos tab
View yt-sort-videos-by-length.js
javascript:(function(){l=[].map.call(document.getElementsByClassName("ytd-thumbnail-overlay-time-status-renderer"), function(e){l=e.innerHTML.trim().split(":").map(function(t){return parseInt(t);}).reduce(function(p,c){return p * 60 + c;}); return { a: e.parentElement.parentElement.parentElement, l: l };}).sort(function(a,b){return a.l - b.l;}); i=document.getElementById("items"); l.forEach(function(o){i.appendChild(o.a.parentElement.parentElement.parentElement);});})();
@przemoc
przemoc / plzip-msys2-mingw-w64.patch
Created Feb 23, 2018
Make plzip compilable on MSYS2+MinGW-w64
View plzip-msys2-mingw-w64.patch
Make plzip compilable on MSYS2+MinGW-w64.
It's Hannes Domani's plzip.patch taken from:
http://download.savannah.gnu.org/releases/lzip/plzip/plzip-1.1-w.zip
that was applied against plzip 1.7:
http://download.savannah.gnu.org/releases/lzip/plzip/plzip-1.7.tar.gz
changed to not artificially limit number of threads (the limit was 32),
and finally diff has been regenerated using output with unified context.
--- a/decompress.cc 2018-02-07 20:17:00.000000000 +0100
@przemoc
przemoc / abuild.sh
Last active Feb 6, 2018
Simplistic abuild wrapper for building packages out-of-the-tree.
View abuild.sh
#!/bin/sh
# SPDX-License-Identifier: MIT
## Copyright (C) 2017 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# abuild.sh
# Simplistic abuild wrapper for building packages out-of-the-tree.
@przemoc
przemoc / tc-delaydnsreqs.sh
Last active Apr 16, 2018
Traffic control - Make DNS requests delayed and low priority on Linux
View tc-delaydnsreqs.sh
#!/bin/sh
# SPDX-License-Identifier: MIT
## Copyright (C) 2017 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Traffic control - Make DNS requests delayed and low priority on Linux.
@przemoc
przemoc / 02-protip-instagram.md
Created Aug 27, 2017
Protip: How to share photos on Instagram without using phone or 3rd party Instagram clients
View 02-protip-instagram.md

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 Aug 24, 2017
Protip: How to deal in the web browser with YouTube overlays showing at the end of videos and hiding content
View 01-protip-youtube.md

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 / ssh-root-without-password-on-freebsd.md
Created Mar 24, 2017
ssh root without password on FreeBSD.
View ssh-root-without-password-on-freebsd.md

ssh root without password on FreeBSD

If you have some toy boards in your internal network, then you can happily live without password and key. As I learned today, setting following stuff in /etc/ssh/sshd_config is not enough:

PermitRootLogin yes
PermitEmptyPasswords yes
@przemoc
przemoc / reassemble_arguments.sh
Last active Feb 6, 2018
Reassemble arguments (support-most-cases implementation) in POSIX shell - Transforming "$*" into "$@"
View reassemble_arguments.sh
#!/bin/sh
# SPDX-License-Identifier: MIT
## Copyright (C) 2016 Przemyslaw Pawelczyk <przemoc@gmail.com>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
# Reassemble arguments (support-most-cases implementation)
View keybase.md

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:

You can’t perform that action at this time.