Skip to content

Instantly share code, notes, and snippets.

@beauwilliams
beauwilliams / Vagrant-M1-Install.bash
Last active May 16, 2025 15:37
Run x86 VM's on Mac M1 arm using vagrant with qemu hypervisor
brew install vagrant qemu
#Due to dependency errors, we must install vbguest first..
vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-qemu
#cd to working dir you like to keep your vagrant files
cd ~/VM-and-containers/VagrantMachines/M1-vagrantfiles/ubuntu18-generic-64/
#Create a vagrant file
$EDITOR Vagrantfile
@ADIOP55550
ADIOP55550 / .ideavimrc
Last active May 16, 2025 15:36
Helix-like config for IdeaVim
" Based on comment by mchlstckl
" https://www.reddit.com/r/HelixEditor/comments/14aqztf/comment/jocslxs/
" Check the history of this gist for a changelist
" Read NOTES and WARNINGS lower
" Must be done first to tell other plugins that <space> is the leader key
let mapleader=" "
@Jikoo
Jikoo / Experience.java
Last active May 16, 2025 15:34
A utility for managing experience with Bukkit.
package com.github.jikoo.planarwrappers.util;
import org.bukkit.entity.Player;
/**
* A utility for managing player experience.
*/
public final class Experience {
/**
@RyanLua
RyanLua / fritzing-1.0.5.md
Last active May 16, 2025 15:32
Fritzing Version 1.0.5

Fritzing Version 1.0.5 Free Download

Works by redirecting to the official release download. Visiting the links in the browser directly won't work.

You need to be logged into Fritzing for these links to work.

  1. Sign up or log into https://fritzing.org
  2. Click the below download links

Release version 1.0.5

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active May 16, 2025 15:30
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

Advanced JavaScript Concepts for Interview Preparation

Closures in JavaScript

A closure is a function paired with its surrounding lexical environment. It allows an inner function to retain access to the variables of an outer function even after the outer function has returned. Every time a function is created in JavaScript, a closure is formed at function creation time. This mechanism allows functions to “remember” and access their outer scope variables later on, enabling powerful patterns for state management and encapsulation.

Use Cases:

  • Data Privacy and State – maintaining a private counter or configuration that only your functions can access.
  • Function Factories and Currying – presetting arguments and returning new functions.
  • Caching and Memoization – storing previous results in a closure for performance.
@marijn
marijn / README.markdown
Last active May 16, 2025 15:26
List of countries in YAML, CSV and TXT format
@hmRemi
hmRemi / README.md
Last active May 16, 2025 15:26
Make Discord Server With Tags

Discord Guild ID Hash Targeter Script

Discord no longer provides the tags feature to new servers. This could change, so I'm keeping this active and seeking other ways to get a tag server. I still recommend trying create guilds within the specified hash ranges. Please support by starring this gist and joining our Discord (link below).

Also, selling a script for a fully customizable rotating clan tag. (colors and badge icon - join discord to buy)

Version: 1.2.5 (as per CONFIG.SCRIPT_VERSION in the script)
Discord: https://discord.gg/wSWYhQMdbA | @ziue
Telegram: https://t.me/reveredev/

@davenice
davenice / zowe.config.json
Last active May 16, 2025 15:23
Sample Zowe V3 config file that includes nested profiles for two separate hosts
{
"$schema": "./zowe.schema.json",
"profiles": {
"host1": {
"properties": {
"host": "host1.com",
"rejectUnauthorized": false
},
"secure": ["user", "password"],
"profiles": {
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active May 16, 2025 15:23
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.