Skip to content

Instantly share code, notes, and snippets.

@manuelzi
manuelzi / Search my gists.md
Created April 22, 2024 14:15 — forked from santisbon/Search my gists.md
How to #search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@manuelzi
manuelzi / migrate-npm-to-pnpm.md
Created March 15, 2024 00:21 — forked from mmyoji/migrate-npm-to-pnpm.md
Migrate npm to pnpm
@manuelzi
manuelzi / semantic-commit-messages.md
Created November 10, 2023 12:28 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@manuelzi
manuelzi / SelfSignWindowsExecutable.md
Created November 2, 2023 15:07 — forked from PaulCreusy/SelfSignWindowsExecutable.md
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.

Setup

  • Create a developer account with Apple
  • Download and install X-Code from the Apple App Store
  • Open and run X-Code app and install whatever extras it requires
  • Open the preferences pane (cmd+,)
    • click the + in the lower right corner
    • choose Apple ID
    • enter your apple ID and password
@manuelzi
manuelzi / 1_ecs_note.md
Created September 21, 2023 20:25 — forked from ejlp12/1_ecs_note.md
ECS Best Practices Notes
@manuelzi
manuelzi / source-cfg.sublime-syntax
Created March 11, 2023 16:48 — forked from Steffo99/source-cfg.sublime-syntax
Source .cfg files syntax highlighting for Sublime Text 3
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: Source game config
file_extensions:
- cfg
scope: source.source-config
contexts:
main:
- match: '\s*\/\/'
@manuelzi
manuelzi / SpinlockTestTests.swift
Created February 2, 2023 09:52 — forked from steipete/SpinlockTestTests.swift
Updated for Xcode 8, Swift 3; added os_unfair_lock
//
// SpinlockTestTests.swift
// SpinlockTestTests
//
// Created by Peter Steinberger on 04/10/2016.
// Copyright © 2016 PSPDFKit GmbH. All rights reserved.
//
import XCTest
@manuelzi
manuelzi / browser_history.md
Created September 28, 2022 16:47 — forked from dropmeaword/browser_history.md
Playing around with Chrome's history

Browser histories

Unless you are using Safari on OSX, most browsers will have some kind of free plugin that you can use to export the browser's history. So that's probably the easiest way. The harder way, which seems to be what Safari wants is a bit more hacky but it will also work for other browsers. Turns out that most of them, including Safari, have their history saved in some kind of sqlite database file somewhere in your home directory.

The OSX Finder cheats a little bit and doesn't show us all the files that actually exist on our drive. It tries to protect us from ourselves by hiding some system and application-specific files. You can work around this by either using the terminal (my preferred method) or by using the Cmd+Shft+G in Finder.

Finder

Once you locate the file containing the browser's history, copy it to make a backup just in case we screw up.

@manuelzi
manuelzi / https_instance_new.yaml
Created March 19, 2021 15:29 — forked from caseypage/https_instance_new.yaml
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: |