Skip to content

Instantly share code, notes, and snippets.

@PaulCreusy
PaulCreusy / SelfSignWindowsExecutable.md
Last active April 4, 2025 19:53
How to self-sign a Windows executable created with Pyinstaller

How to self-sign a Windows package created with Pyinstaller

This document aims to explain all the necessary steps to self-sign a Windows executable.

⚠️ Warning
Some of the commands provided need to be completed. The fields to complete are indicated by the characters < and >.

Prerequisites

Please make sure to match all the prerequisite before starting the process of signing the package.

@dannberg
dannberg / obsidian-daily-note-template.txt
Last active April 16, 2025 07:10
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
@u1i
u1i / doit.txt
Created June 21, 2021 11:28
pdftk MacOs M1
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg
@johncolby
johncolby / macos_retina_compared.md
Last active July 6, 2023 19:50
macOS retina scaling comparison

macOS hiDPI retina scaling options compared

These are some photos comparing different macOS retina scaling options. All use a non-vector test pattern displayed at 100% (AAPM TG18). All photos are taken at roughly the same distance, using the same crop. Forgive the slight hand-held motion blur, and focus on these variables:

  • Pixel size
  • UI size
  • Pixel perfection (has any interpolation taken place?)
  • Real estate (how much of the image is displayed in this representative patch?)

Dell U2713H

@jonlabelle
jonlabelle / npm_version_cheatsheet.md
Last active April 18, 2025 03:54
npm version cheatsheet

npm version cheatsheet

npm uses Semantic Versioning

npm uses Semantic Versioning. Given a version number MAJOR.MINOR.PATCH, increment the:

  1. MAJOR version when you make incompatible API changes,
  2. MINOR version when you add functionality in a backwards compatible manner, and
  3. PATCH version when you make backwards compatible bug fixes.
@qoomon
qoomon / convert-pdf2scan.sh
Last active January 21, 2022 14:51
fake pdf scanner.
#!/usr/bin/env bash
set -e # exit on error
################################################
#
# Prerequisits:
# ensure ImageMagick is installed
#
# Usage:
# convert-pdf2scan [--gray] files...
#
@soundpress
soundpress / script.ssh
Last active March 21, 2021 16:32
Install/Reinstall Letsencrypt certbot on Amazon AMI Linux 2 - Apache 2 via Snap (2021 Feb)
if letsencrypt was prevously installed:
sudo yum remove certbot
else:
sudo yum install mod_ssl
# create virtual host - https://stackoverflow.com/a/38098334
sudo yum install https://people.canonical.com/~mvo/snapd/amazon-linux2/repo/x86_64/packages/snap-confine-2.49-1.amzn2.1.x86_64.rpm
sudo yum install https://people.canonical.com/~mvo/snapd/amazon-linux2/repo/x86_64/packages/snapd-2.49-1.amzn2.1.x86_64.rpm
sudo systemctl enable --now snapd.socket
@caseypage
caseypage / https_instance_new.yaml
Last active February 12, 2023 07:59
AWS Beanstalk SSL Lets Encrypt certbot - Single Web Instance - Updated 2021
packages:
yum:
mod24_ssl : []
files:
"/etc/httpd/conf.d/ssl_rewrite.conf":
mode: "000644"
owner: root
group: root
content: |

Updated Instructions for App Building

@bpteague Has an excellent update solution as of February 2025 using modern tools and an updated workflow.

This gist will remain here, but is deprecated. I'll keep it here historical and link-preservation purposes only. I strongly encourage everyone to check out the solution above!

Setup

  • Create a developer account with Apple
  • Download and install X-Code from the Apple App Store
@tedgonzalez
tedgonzalez / AppStoreConnectRoles.md
Last active November 11, 2024 10:05
Ever since the Apple developer portal and App Store Connect merged, I got confused with the summary. I like knowing the diff between App Store Connect roles. Here's a detailed list of what each role can do:

App Store Connect Roles

Developer Developer with certificates AppManager AppManager with certificates Admin Account Holder
App Features
Upload Builds
Edit App Store Details (Read)
Create Apps and Submit Versions