Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
UbuntuEvangelist / How To Install CMake 3.22 Ubuntu 22.04
Last active November 29, 2024 02:50
Install CMake 3.22 Ubuntu 22.04
sudo apt update
sudo apt install build-essential
sudo apt install libssl-dev
export OPENSSL_ROOT_DIR=/usr/include/openssl
wget https://cmake.org/files/v3.29/cmake-3.29.2.tar.gz
tar -xzvf cmake-3.29.2.tar.gz
cd cmake-3.29.2
./bootstrap
make -j$(nproc)
sudo make install
@sts10
sts10 / rust-command-line-utilities.markdown
Last active November 29, 2024 02:50
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@jwoglom
jwoglom / data.py
Created October 13, 2020 02:35
Download Perusall readings as PDF
title = "The title of the article"
urls="""
<image URLs scraped from the page>
"""
@jgoday
jgoday / main.rs
Created October 23, 2019 10:06
Postgres async notifications with tokio_postgres
#![feature(poll_map)]
use futures::{stream, StreamExt};
use futures::{FutureExt, TryStreamExt};
use std::env;
use tokio::sync::mpsc;
use tokio_postgres::{connect, NoTls};
#[tokio::main]
async fn main() {
let connection_parameters = env::var("DBURL").unwrap();
@Klerith
Klerith / Instalaciones-React.md
Last active November 29, 2024 02:48
Instalaciones recomendadas para mi curso de React de cero a experto
Registered Name: https://zhile.io
License Key: 48891cf209c6d32bf4
@mirajehossain
mirajehossain / ubuntu-server-hardening.md
Last active November 29, 2024 02:40
ubuntu-server-hardening checklist

Ubuntu-Server-Hardening

1. Secure Shared Memory

What is shared memory?

Shared memory is an efficient means of passing data between programs. Because two or more processes can use the same memory space, it has been discovered that, since shared memory is, by default, mounted as read/write, the /run/shm space can be easily exploited. That translates to a weakened state of security.

If you’re unaware, shared memory can be used in an attack against a running service. Because of this, you’ll want to secure that portion of system memory.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 29, 2024 02:39
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@gkaizer1
gkaizer1 / ripple.shader
Last active November 29, 2024 02:38
Unity example of ripple effect
Shader "Unlit/ripple_shader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_amount ("_amount", Range(0.01, 1.0)) = 0.5
_spread ("_spread", Range(0.01, 1.0)) = 0.5
_width ("_width", Range(0.01, 1.0)) = 0.5
_alpha ("_alpha", Range(0.01, 1.0)) = 0.5
@notnotrobby
notnotrobby / cgp.md
Last active November 29, 2024 02:37
List of free resources to study computer graphics programming.