Skip to content

Instantly share code, notes, and snippets.

View emaballarin's full-sized avatar
🤓
Trying to make 💻 more like 🧠!

Emanuele Ballarin emaballarin

🤓
Trying to make 💻 more like 🧠!
View GitHub Profile
@PaulCreusy
PaulCreusy / SelfSignWindowsExecutable.md
Last active November 17, 2024 13:39
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.

@redknightlois
redknightlois / mish_init.py
Created July 15, 2020 14:54
Variance based initialization method for Mish activation
def init_weights(m, variance=1.0):
def _calculate_fan_in_and_fan_out(tensor):
dimensions = tensor.dim()
if dimensions < 2:
return 1, 1
if dimensions == 2: # Linear
fan_in = tensor.size(1)
fan_out = tensor.size(0)
import Data.Set
type Letter = String
data Term = TTau Integer Letter Relation
| TBox Integer Letter
| TVar Letter
| TSubst Term Letter Term
| TPair Term Term
deriving (Show, Eq)
@tuxedocat
tuxedocat / CityLights.icls
Last active August 3, 2024 13:35
[WIP] City Lights Color Scheme for IntelliJ IDEA: manually ported from https://github.com/Yummygum/city-lights-syntax-vsc
<scheme name="CityLights" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2019-01-04T13:46:48</property>
<property name="ide">Idea</property>
<property name="ideVersion">2018.3.2.0.0</property>
<property name="modified">2019-01-04T13:46:55</property>
<property name="originalScheme">CityLights</property>
</metaInfo>
<colors>
<option name="ADDED_LINES_COLOR" value="a3be8c" />
@grugq
grugq / gist:03167bed45e774551155
Last active October 30, 2024 02:44
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.