Skip to content

Instantly share code, notes, and snippets.

View bpetrynski's full-sized avatar

Bartosz Petryński bpetrynski

View GitHub Profile
@bpetrynski
bpetrynski / gumtree.pl_new_tab_opener.user.js
Created July 15, 2018 18:20
Skrypt wyłącza otwieranie ogłoszenia w tej samej karcie przy otwieraniu w nowej karcie
// ==UserScript==
// @name Gumtree.pl NewTabOpener
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Skrypt wyłącza otwieranie ogłoszenia w tej samej karcie przy otwieraniu w nowej karcie
// @author Michał Kaciuba, Bartosz Petryński
// @match *://www.gumtree.pl/*
// @grant none
// ==/UserScript==
@bpetrynski
bpetrynski / readme.md
Last active October 9, 2020 20:05 — forked from joaofraga/readme.md
Bootable Windows USB from Mac OSX (Terminal) with progress bar

How to create an Bootable Windows USB from OSX without Bootcamp with progress bar

You will need

  • USB SSD with at least 8GB
  • Windows .ISO

With this on hands

Open terminal and do the following:

@bpetrynski
bpetrynski / gist:7f23089efb5e12147c4d6b945df2f0af
Last active April 23, 2021 11:28
Install script for jadx-gui for Ubuntu 20.04
wget https://github.com/skylot/jadx/releases/download/v1.2.0/jadx-1.2.0.zip
sudo unzip jadx-1.2.0.zip -d /usr/local/bin/jadx-1.2.0
cd /usr/local/bin/
sudo ln -s jadx-1.2.0/bin/jadx jadx
sudo ln -s jadx-1.2.0/bin/jadx-gui jadx-gui
@bpetrynski
bpetrynski / alior-bank-1password-autofill.js
Last active August 24, 2023 14:18
Alior Bank 1Password AutoFill
// ==UserScript==
// @name Alior Bank 1Password AutoFill
// @namespace bpetrynski
// @author Bartosz Petrynski
// @description Autofills password input for 1Password support in Alior Bank.
// @match https://bn.aliorbank.pl/hades/do/Login*
// @match https://bn.aliorbank.pl/hades/do/LoginAlias*
// @version 1.5
// @grant none
// @license GPL
@bpetrynski
bpetrynski / gist:b624131a3ee09737990b755db9ac9799
Last active January 31, 2024 11:42
Interactive Process Killer for macOS
ps aux | fzf --header 'Select a process to kill' --preview 'echo {}' | awk '{print $2}' | xargs -I {} kill -9 {}
This one-liner script for macOS provides an interactive way to view and kill processes using the command line. It leverages the power of `ps`, `awk`, `fzf`, and `xargs` to create a user-friendly interface for process management.
When executed, it displays a list of all running processes in an interactive fuzzy finder (`fzf`) interface. Users can search and select a process, which is then terminated using the `kill` command. This script is particularly useful for developers and system administrators who need a quick and efficient way to manage processes without leaving the terminal.