Skip to content

Instantly share code, notes, and snippets.

View Daniel15's full-sized avatar
💭
Busy

Daniel Lo Nigro Daniel15

💭
Busy
View GitHub Profile
@Daniel15
Daniel15 / log.txt
Last active February 5, 2019 18:18
GPGME full session log
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_debug: level=9
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_debug: gpgme='C:\Program Files (x86)\GnuPG\bin'
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_check_version: call: 0=00000000, req_version=(null), VERSION=1.12.1-beta43
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme_new: enter: r_ctx=02D7E194
GPGME 2019-02-04 23:24:27 <0x48bc> gpgme-dinfo: gpgconf='C:\Program Files (x86)\GnuPG\bin\gpgconf.exe'
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_pipe: enter: filedes=02D7DB7C, inherit_idx=1 (GPGME uses it for reading)
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_pipe: leave: read=0x0 (hdd=039F3740,hd=000003C0), write=0x1 (hdd=039F4AF8,hd=000003C8)
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: enter: path=039F4AC0, path=C:\Program Files (x86)\GnuPG\bin\gpgconf.exe
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: check: path=039F4AC0, argv[ 0] = C:\Program Files (x86)\GnuPG\bin\gpgconf.exe
GPGME 2019-02-04 23:24:27 <0x48bc> _gpgme_io_spawn: check: path=039F
@Daniel15
Daniel15 / log.txt
Created February 5, 2019 18:17
GPGME decryption log before access violation
GPGME 2019-02-04 23:25:14 <0x5654> gpgme_op_decrypt: enter: ctx=03324A08, cipher=0332A458, plain=03329AC8
GPGME 2019-02-04 23:25:14 <0x5654> gpgme_data_release: call: dh=00000000
GPGME 2019-02-04 23:25:14 <0x5654> gpgme_data_release: call: dh=03328978
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_pipe: enter: filedes=033204C8, inherit_idx=1 (GPGME uses it for reading)
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_pipe: leave: read=0x0 (hdd=03329E40,hd=0000041C), write=0x1 (hdd=03329DF8,hd=00000424)
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_set_close_notify: enter: fd=00000000, close_handler=6E901373/033204B0
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_set_close_notify: leave: result=0
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_set_close_notify: enter: fd=00000001, close_handler=6E901373/033204B0
GPGME 2019-02-04 23:25:14 <0x5654> _gpgme_io_set_close_notify: leave: result=0
GPGME 2019-02-04 23:25:14 <0x5654> gpgme_data_new: enter: r_dh=03320580
@Daniel15
Daniel15 / _README.md
Last active August 29, 2023 21:33
Routing scripts for Tinc

This Gist contains some scripts for Tinc, in order to configure the routing tables for a remote subnet on Windows (ie. if a remote system wants to expose an entire subnet over the VPN). Tinc does not configure the routing tables by default, which is why these scripts are needed. See the mailing list thread here: https://www.tinc-vpn.org/pipermail/tinc/2018-December/005340.html

Place the files in the Tinc network directory (eg. C:\Program Files\Tinc\netname\) and change $interface in functions.ps1 to match the name of the Tinc interface configured in tinc.conf

/**
* Generated by scripts/shuttle/update_caltrain.php
*
* @providesModule CaltrainData
* @flow
* @nolint
* @generated SignedSource<<6cea6867bed0b62ab67bcb5e8774217a>>
*/
module.exports = {
PROMPT='
%F{cyan}%T% %F{white}%n%F{magenta}@%F{white}%m $fg_bold[green]${PWD/$HOME/~}%b%F{064} $(_dotfiles_scm_info)
%{$fg_bold[yellow]%}%% %{$reset_color%}'
@Daniel15
Daniel15 / gist:d12f9170db16f36183127657c16d61fd
Created October 23, 2017 04:54
ss.dan.cx before dan.cx
# Handle requests for files that could be screenshots.
# Try ss.dan.cx files before passing to ASP.NET
location ~ "^/\d{4}/\d{2}/.+\.(png|jpg|jpeg|gif|mp4)$" {
alias /var/www/;
try_files dan.cx/public/$uri ss.dan.cx/$uri @aspnet;
}
@Daniel15
Daniel15 / gist:d84b39e8a260ee2a7d627751d015181b
Created October 18, 2017 21:05
yarnpkg.com language redirects
# Without Language
/ /en/ 302 Language=en
/ /en/ 302 Language=en-us
/ /en/ 302 Language=en-au
/ /en/ 302 Language=en-nz
/ /en/ 302 Language=en-za
/ /en/ 302 Language=en-bz
/ /en/ 302 Language=en-tt
/ /fr/ 302 Language=fr
/ /fr/ 302 Language=fr-be
@Daniel15
Daniel15 / gist:a4efd1d55ef37239e0fde397b62153bf
Created November 10, 2016 06:09
Stack trace for JENKINS-39636
javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:196)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:233)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
Geekbench 4.0.1 Tryout : http://www.geekbench.com/
Geekbench 4 is in tryout mode.
Geekbench 4 requires an active Internet connection when in tryout mode, and
automatically uploads test results to the Geekbench Browser. Other features
are unavailable in tryout mode.
Buy a Geekbench 4 license to enable offline use and remove the limitations of
tryout mode.
@Daniel15
Daniel15 / blah.js
Created November 30, 2015 05:15
Modify source map to move everything down by five lines
var DOCBLOCK_LINES = 5;
var first = new sourceMap.SourceMapConsumer(input);
var generator = new sourceMap.SourceMapGenerator({
file: first.file,
});
first.eachMapping(function(mapping) {
generator.addMapping({
generated: {
column: mapping.generatedColumn,