Skip to content

Instantly share code, notes, and snippets.

View matijaoe's full-sized avatar
🎯

Matija Osrečki matijaoe

🎯
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active July 17, 2024 01:20
Git Commit message Emoji
#!/usr/bin/env bash
## ## ## ## ## ## ## ## ## ## ## ## ## ##
## Getting started
## Step 1 - install homebrew: http://brew.sh/
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
## Step 2 - install cask
# brew cask
@cham11ng
cham11ng / git-ssh-configuration.md
Last active July 13, 2024 19:04
Configuring SSH for Git

Git Installation and SSH Configuration

By: Sagar Chamling

Installation

For Linux (Debian/Ubuntu):

sudo apt install git
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active July 10, 2024 16:57
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 17, 2024 03:34 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active July 16, 2024 12:41
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@yogin
yogin / CryptoKitties.sol
Created January 28, 2018 19:06
CryptoKitties
// Copied from: https://ethfiddle.com/09YbyJRfiI
// CryptoKitties Source code
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
@bretton
bretton / lightning-maps.md
Last active June 4, 2024 12:36
Visualisers of the Lightning Network (and some other explorers)

A (mostly) visual collection of the Lightning Network

Disclaimer

Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.

These network views, or network maps, have been termed 'visualisers' by the LN community.

Screenshots may reflect older visual styles, and are dated accordingly.

@atoponce
atoponce / bias.py
Last active March 27, 2024 10:13
Some solutions removing bias from loaded dice
#!/usr/bin/python3
import random
# Simple script to simulate biased throws of a single d6 die.
# bias should sum to 1
# pips ( 1, 2, 3, 4, 5, 6 )
BIAS = (0.125, 0.125, 0.25, 0.25, 0.125, 0.125)
@innateessence
innateessence / Style.zsh
Last active October 20, 2023 16:48
Zshrc - Style/Aliases/Exports/Functions
#!/bin/zsh
#=========================#
# #
# Style #
# #
#=========================#
# Aliases and functions
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'