Skip to content

Instantly share code, notes, and snippets.

@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active May 12, 2024 16:52
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine πŸ˜‰

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@rxaviers
rxaviers / gist:7360908
Last active May 12, 2024 16:48
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@kriswebdev
kriswebdev / forcevpn.sh
Last active May 12, 2024 16:46
forcevpn: Force VPN for specific apps, in a better way than killswitch [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# ForceVPN
# Description: Force VPN tunnel for specific applications.
# If the VPN is down => blackhole the app network traffic.
# Better than a killswitch. IPv4.
VERSION="2.3.0"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
@ole
ole / swift-has-feature.sh
Last active May 12, 2024 16:45
swift-list-feature: List Swift compiler upcoming and experimental feature flags. β˜… swift-has-feature: Check if a given compiler knows a specific feature flag, and whether it's an upcoming or experimental flag.
#!/bin/zsh
# Test if the Swift compiler knows about a particular language feature.
#
# Usage:
#
# swift-has-feature [--swift SWIFT_PATH] [--language-version LANGUAGE_VERSION] FEATURE
#
# The feature should be an upcoming or experimental language feature,
# such as `"StrictConcurrency"` or `"ExistentialAny"`.
/*
* Copyright (c) 1998-2020 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
@bitmunja
bitmunja / chatgpt-width.user.js
Last active May 12, 2024 16:36
ChatGPT width
// ==UserScript==
// @name ChatGPT and Gemini width
// @namespace http://tampermonkey.net/
// @version 0.6
// @description increase chat gpt and gemini conversation box width
// @author bitmunja
// @license MIT
// @match https://chat.openai.com/*
// @match https://gemini.google.com/app/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@orkunhacilar
orkunhacilar / .gitattributes
Created October 17, 2023 16:07
.gitattributes for Unity3D with git-lfs example 2
* text=auto
# Unity files
*.meta -text merge=unityyamlmerge diff
*.unity -text merge=unityyamlmerge diff
*.asset -text merge=unityyamlmerge diff
*.prefab -text merge=unityyamlmerge diff
*.mat -text merge=unityyamlmerge diff
*.anim -text merge=unityyamlmerge diff
*.controller -text merge=unityyamlmerge diff
β™œβ™žβ™β™›β™šβ™β™žβ™œ
β™Ÿβ™Ÿβ™Ÿβ™Ÿβ™Ÿβ™Ÿβ™Ÿβ™Ÿ
β–‘β– β–‘β– β–‘β– β–‘β– 
β– β–‘β– β–‘β– β–‘β– β–‘
β–‘β– β–‘β– β–‘β– β–‘β– 
β– β–‘β– β–‘β– β–‘β– β–‘
β™™β™™β™™β™™β™™β™™β™™β™™
β™–β™˜β™—β™•β™”β™—β™˜β™–
@danromero
danromero / token.js
Last active May 12, 2024 16:31
Generate an Application Bearer Token from a Farcaster custody address mnemonic for Merkle v2 API
const ethers = require('ethers');
const canonicalize = require('canonicalize');
const https = require('https');
const myMnemonic = 'a b c d e f g h i j k';
async function run() {
// WARNING: Example only -- do not ever hard-code your real mnemonic!
wallet = ethers.Wallet.fromMnemonic(myMnemonic);