Skip to content

Instantly share code, notes, and snippets.

@davydany
davydany / IPTABLES-CHEATSHEET.md
Last active May 10, 2024 17:42
IP Tables (iptables) Cheat Sheet

IP Tables (iptables) Cheat Sheet

IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.

Resources

The following list is a great set of documentation for iptables. I used them to compile this documentation.

@nikitawootten
nikitawootten / nvidia-test-arion.nix
Created August 16, 2023 22:01
An Arion NixOS module that requests an NVIDIA GPU
{ ... }:
{
virtualisation.arion.projects.nvidia-test.settings.services.nvidia-test = {
service = {
image = "nvidia/cuda:12.2.0-base-ubuntu20.04";
command = "nvidia-smi";
};
out.service = {
deploy.resources.reservations.devices = [
{
@hecht1962
hecht1962 / ipstocrash.pl
Last active May 10, 2024 17:40
Convert an IPS crash report (.ips) to the legacy crash report format (.crash)
#!/usr/bin/perl
##
## This script converts an IPS crash report (.ips) to the legacy crash report format.
##
## The .ips file (JSON) is read from STDIN and the legacy crash report is written to
## STDOUT.
##
use strict;
@abhishtagatya
abhishtagatya / autoclip.py
Last active May 10, 2024 17:37
Automation Script to Edit Videos for TikTok using Python
# _____ _ _____ _ _
# | _ |_ _| |_ ___| | |_|___
# | | | | _| . | --| | | . |
# |__|__|___|_| |___|_____|_|_| _|
# |_|
#
# By Abhishta (github.com/abhishtagatya)
# pip install gTTs
# pip install moviepy
@mjnaderi
mjnaderi / install-arch.md
Last active May 10, 2024 17:36 — forked from mattiaslundberg/arch-linux-install
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@jimmyca15
jimmyca15 / Certificate.cs
Created December 13, 2017 02:10
Code for creating a self signed certificate in .NET Core using CertEnroll APIs
namespace CreateCert
{
using System;
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
class Certificate
{
public static async Task<X509Certificate2> Create(string subject, string friendlyName, IEnumerable<string> alternativeNames)
@brandonjp
brandonjp / findOverflowParents.js
Last active May 10, 2024 17:30
find overflow:hidden ancestors
// when you're trying to use `position:sticky` on an element
// you'll have trouble if any parent/ancestor element has
// overflow set to anything other than "visible" (such as: auto,hidden,overlay,scroll)
// & turns out if a parent is `display:flex` it might need some love
// (to remedy this you can set the `align-self` of your sticky element)
// see here for how the display & align-self properties affect: http://bit.ly/2ZaRu4o
// so, to find those troublesome parents...
// copy & paste this into Chrome Inspector/Dev Tools console
// (and be sure to change the #stickyElement below, if needed)
@Furao
Furao / gitlab_process.md
Created June 4, 2014 16:47
DO-178C gitlab process

Use Case: I need to add some new requirements.

  • Create a new branch and add all of my requirements
  • Make a pull request to master
  • All of the new requirements are easily shown in the gitlab pull request
  • Reviewers would add their comments in gitlab to specific lines.
  • Developers would be able to comment back and forth in the comment section of the pull request and then make fixes
  • Reviewers can then verify once a fix has been made (Add a new comment to the line saying it is fixed?)
  • All changes have been accepted so the branch is merged into master
@bluewalk
bluewalk / Disable-Ubuntu-pro-ads.md
Created February 8, 2023 12:49
DIsable Ubuntu pro ads

How to disable cloud-init in Ubuntu

apt-get  --assume-yes  --purge  remove  ubuntu-advantage-tools
@pesterhazy
pesterhazy / building-sync-systems.md
Last active May 10, 2024 17:28
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles