Skip to content

Instantly share code, notes, and snippets.

View infomaniac50's full-sized avatar

Derek Chafin infomaniac50

View GitHub Profile
@Long18
Long18 / [Windows] Icon DLL Paths.md
Created August 10, 2024 05:14
Common Windows Icon DLL Paths

Common Windows Icon DLL Paths

This gist provides paths to some of the common .dll files that contain system icons in Windows. These .dll files are typically located in the System32 directory, but some might be found in other locations as well.

System Icon Libraries

  1. Shell32.dll
    Path: %SystemRoot%\System32\shell32.dll
    Description: Contains many of the standard icons used throughout the Windows operating system.
@jorgecc
jorgecc / php.csv
Created January 28, 2023 16:20
php inspections
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 12 columns, instead of 8 in line 4.
_language,_groupPath,_shortName,_groupKey,_enabledByDefault,_level,_implementationClass,_key,_bundle,_unfair,_cleanupTool,_editorAttributes
PHP,PHP,PhpUndefinedGotoLabelInspection,inspection.php.group.undefined,true,WARNING,com.jetbrains.php.lang.inspections.PhpUndefinedGotoLabelInspection,inspection.php.undefined.goto.label.inspection.display.name,messages.PhpBundle,,,
PHP,PHP,PhpUndefinedVariableInspection,inspection.php.group.undefined,true,ERROR,com.jetbrains.php.lang.inspections.PhpUndefinedVariableInspection,inspection.php.undefined.variable.inspection.display.name,messages.PhpBundle,,,
PHP,PHP,PhpUndefinedMethodInspection,inspection.php.group.undefined,true,WARNING,com.jetbrains.php.lang.inspections.PhpUndefinedMethodInspection,inspection.php.undefined.method.inspection.display.name,messages.PhpBundle,,,
PHP,PHP,PhpUndefinedNamespaceInspection,inspection.php.group.undefined,true,WARNING,com.jetbrains.php.lang.inspections.PhpUndefinedNamespaceInspection,inspection.php.undefined.namespace.inspection.disp
@bjo3rnf
bjo3rnf / example_form.html.twig
Last active January 24, 2026 08:50
Stimulus.js controller for Symfony collection form type with configurable item limit
{% macro collection_item(form) %}
<div data-form-collection-target="field">
{{ form_widget(form) }}
<button type="button"
data-action="form-collection#removeItem">
remove
</button>
</div>
{% endmacro %}
@davidegironi
davidegironi / _bitbucket-git-downloader.sh
Created January 27, 2021 19:39
Script to download all repositories from a Bitbucket account
# Bitbucket Git Downloader
# Copyright (c) Davide Gironi, 2021
# Released under GPLv3
# Downloads all the repository from a Bitbucket account
@fergiemcdowall
fergiemcdowall / README.md
Last active March 8, 2025 10:51
How to use pandoc to generate HTML from GitHub-flavoured markdown

Here is a little recipe for generating html from github-flavoured markdown. CSS extracted and modified from https://github.com/sindresorhus/github-markdown-css on 22-05-2019. At some point this CSS will probably have to be updated, but for now it works.

  1. Install pandoc 2.x or higher

  2. Save github-markdown.css (below) to ´~/.pandoc/github-markdown.css´

  3. To convert a file called README.md (change as appropriate) run ´pandoc --standalone -c ~/.pandoc/github-markdown.css -f gfm -t html README.md´

@vaibhavpandeyvpz
vaibhavpandeyvpz / bootstrap_4_horizontal_layout_fix.html.twig
Last active July 29, 2021 06:11
Moving form errors in Symfony 4 form label to below input.
{% extends 'bootstrap_4_horizontal_layout.html.twig' %}
{% block form_label_errors %}{% endblock %}
{% block form_row -%}
{%- if expanded is defined and expanded -%}
{{ block('fieldset_form_row') }}
{%- else -%}
<div class="form-group row{% if (not compound or force_error|default(false)) and not valid %} is-invalid{% endif %}">
{{- form_label(form) -}}
@strarsis
strarsis / howto.md
Last active November 16, 2025 06:16
KeeAgent (for KeePass) on Bash on Windows / WSL (2) - KeePass as an SSH agent

Update (March 2023) (Last checked: Oktober 2024)

Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent/npiperelay.exe approach below.

Thanks to the instructions for WSL 2 of the wsl-ssh-agent project, KeeAgent works great in WSL 2 now: https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility The approach uses minimal and well-maintained tools.

Mini-changelog

  • 14.08.2025: Improve: Improve title of this gist.
@Zibri
Zibri / UEFIVAR.EXE
Last active September 4, 2026 19:02
UEFIVAR
@piedpiperRichard
piedpiperRichard / content.js
Last active October 20, 2026 10:09
Web developer 0.4.9 tools hacked and installing adware Decode
function md5cycle(x, k) {
var a = x[0], b = x[1], c = x[2], d = x[3];
a = ff(a, b, c, d, k[0], 7, -680876936);
d = ff(d, a, b, c, k[1], 12, -389564586);
c = ff(c, d, a, b, k[2], 17, 606105819);
b = ff(b, c, d, a, k[3], 22, -1044525330);
a = ff(a, b, c, d, k[4], 7, -176418897);
d = ff(d, a, b, c, k[5], 12, 1200080426);
c = ff(c, d, a, b, k[6], 17, -1473231341);
@kevinvalk
kevinvalk / msysgit2unix-socket.py
Last active November 27, 2025 13:32 — forked from FlorinAsavoaie/msysgit2unix-socket.py
Updated to better survive crashes and other unexpected behavior.
#!/usr/bin/python
"""
msysGit to Unix socket proxy
============================
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows).
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other