Skip to content

Instantly share code, notes, and snippets.

@jaytaph
jaytaph / AWS components.txt
Last active December 29, 2024 20:24
A list of AWS components and what they do.
Compute
EC2 Virtual Private Servers
Lightsail Amazon's hosting provider (vps, dns, storage)
Lambda Functions you can run, written in Python, NodeJS, Go etc. Can run many in parallel.
Batch Run software jobs on EC2 machines
Elastic Beanstalk Run software on managed virtual machines
Serverless Application Repository Repository of serverless applications that you can deploy (on lambda)
AWS Outposts Basically run Amazon services on your own hardware (datacenter)
EC2 Image Builder Create EC2 (ami?) images automatically
@Jabarabo
Jabarabo / githubpull.md
Last active December 29, 2024 20:20
Gist of a stolen gist
@lg
lg / adding-tailscale-to-edgerouter.md
Last active December 29, 2024 20:19
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@nicolasdao
nicolasdao / open_source_licenses.md
Last active December 29, 2024 20:19
What you need to know to choose an open source license.
@HiImJulien
HiImJulien / Swift Meets CCxx.md
Last active December 29, 2024 20:17
This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.

Swift Meets C/C++

This gist is a simple example on how to call a function written in swift from C/C++, without taking the detour via Objective-C/C++.


In this example we're going to invoke a function called say_hello, which, as the name already suggests, prints "Hello, World!" to the terminal.

@Lancear
Lancear / Git_SSH_setup_for_VS_Code.md
Last active December 29, 2024 20:16
Git SSH Setup for VS Code

Setup for password protected Git SSH keys for VS Code on Windows

When working with password protected ssh keys for git in VS Code on Windows, VS Code by default does not ask for the password and times out with a permissions denied message. Adding the key to the SSH agent also does not work, since it needs to be started manually. Of course it can be started in the ~/.profile or ~/.bashrc, but that is not helpful for the VS Code issue.

To fix this we can tell git to use the OpenSSH service of Windows and add the key there, that SSH agent can be started automatically under services and will then also work with VS Code. I found this fix somewhere on the internet after some searching but lost the post about it again, thus decided to write it down myself to not struggle with it again.

Note: This short guide only assists in setup for the key to work nicely with VS Code on Windows.

@dsp76
dsp76 / mautic5_tasks.sh
Last active December 29, 2024 20:13
Mautic cron script with mail rate limit - Mautic v5
#!/bin/bash
MYSELF_PID=$$
# Set the working directory to the directory of the script
cd "$(dirname "$0")"
# Variables for the script
phpinterpreter="php8.2 -d memory_limit=1G"
pathtoconsole="./WEBROOT/bin/console"
lockfile="./WEBROOT/?docroot?/var/tmp/cronjob.lock"
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active December 29, 2024 20:10
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
/* Deleting a node from Binary search tree */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find minimum in a tree.
Node* FindMin(Node* root)