Skip to content

Instantly share code, notes, and snippets.

View derenv's full-sized avatar

Deren Vural derenv

View GitHub Profile
@shmup
shmup / torrents.md
Last active June 15, 2024 20:01
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@KodrAus
KodrAus / Profile Rust on Linux.md
Last active November 14, 2023 17:19
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

NOTE: See @GabrielMajeri's comments below about the -g option.

@ageis
ageis / systemd_service_hardening.md
Last active June 20, 2024 02:52
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@ulises-jeremias
ulises-jeremias / license-badges.md
Created February 24, 2017 14:36 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail (lukas@himsel.me)

@dlaehnemann
dlaehnemann / flamegraph_rust.md
Last active February 14, 2024 14:14
flamegraphing rust binaries' cpu usage with perf
@derenv
derenv / update_gne_vm.sh
Last active May 17, 2024 08:39
Installs nvidia drivers and any development dependencies, then compiles the extension - designed for Ubuntu, tested on 23.10
#!/usr/bin/env bash
##
# Title: update_gne_vm.sh
# Author: Deren Vural
# Created: 13/03/2024
##
# Notes:
# - Installs nvidia drivers
# - Installs dependencies