Skip to content

Instantly share code, notes, and snippets.

View Wirone's full-sized avatar
🇯🇲
Feel the chill

Greg Korba Wirone

🇯🇲
Feel the chill
View GitHub Profile
@Wirone
Wirone / page.html
Created February 17, 2014 11:27
CasperJS onbeforeunload: not catched alert issue
<!DOCTYPE html>
<html>
<head>
<title>CasperJS - onbeforeunload issue</title>
<meta name="author" value="Grzegorz 'Wirone' Korba" />
<script type="text/javascript">alert('Just alerting...');</script>
</head>
<body>
<h1>Page without onbeforeunload</h1>
<a class="next" href="page_onbeforeunload.html">Next</a>
@Wirone
Wirone / .gpg with agent for Git commit signing
Last active March 16, 2018 07:21
GPG key and agent for Git commit signing
This is working mix of information found on the Internet.
Most tutorials mention obsolete --write-env-file,
so I use simple eval with whole output redirected to /dev/null
in order to silently spawn GPG agent daemon.
Had to use test command mentioned above so GPG asked for key's passphrase (only once).
Got this working on:
- Kubuntu 16.04
@Wirone
Wirone / Chrome history: select all
Last active March 16, 2018 07:24
Simple script for selecting all items on Chrome's browsing history
// Select all results in chrome://history-frame/
Array.prototype.slice.call(document.getElementsByTagName('input'))
.forEach(function(inp) {
if(inp.type != 'checkbox') { return; }
inp.checked = true;
});
@Wirone
Wirone / .gitconfig
Last active July 16, 2023 15:57
GIT & GitFlow aliases for ~/.gitconfig
# GIT aliases for ~/.gitconfig file
# @author Grzegorz Korba <grzegorz.korba@codito.net>
# Credits: Miscellaneous places on the Internet...
# GitFlow related sections
[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
@Wirone
Wirone / imagick-3.7.0-failed-install-on-docker-PHP-8.3-build.txt
Last active April 22, 2024 14:30
Imagick 3.7.0 failed installation on PHP 8.3.2
Built on Docker with php:8.3.2-fpm-bullseye as a base image
Prerequisites installed: libmagickwand-dev, libmagickwand-6.q16-6
FYI: Same dependencies work properly on PHP 8.2.10
-----
326.0 downloading imagick-3.7.0.tgz ...
326.0 Starting to download imagick-3.7.0.tgz (360,138 bytes)
326.0 .........................................................................done: 360,138 bytes