Skip to content

Instantly share code, notes, and snippets.

View shivams's full-sized avatar

shivams

  • Texas A&M University
  • College Station, Texas
View GitHub Profile
@shivams
shivams / hashcat_benchmark_results.txt
Last active April 26, 2024 02:29
Dual 3090 Ti hashcat benchmark inside QEMU Ubuntu VM with GPU Passthrough (amazed to see that it gives the same performance as bare metal)
hashcat (v6.2.5) starting in benchmark mode
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
CUDA API (CUDA 12.4)
====================
* Device #1: NVIDIA GeForce RTX 3090 Ti, 23973/24240 MB, 84MCU
@Chick3nman
Chick3nman / RTX_3090_v6.1.1.Benchmark
Last active April 26, 2024 02:28
Hashcat v6.1.1 benchmark on the Nvidia RTX 3090
NVIDIA Driver Version: 456.38 CUDA Version: 11.1
Credit: blazer
For benchmarking the card and allowing me to release the benchmarks here
There are some warnings about the CUDA Toolkit/Driver version but they dont appear to affect functionality or speed.
It appears to be some sort of version missmatch issue during detection and is seemingly just cosmetic. Noted for further investigation.
hashcat (v6.1.1-83-g90fb4aad) starting in benchmark mode...
@shivams
shivams / textlive-full-beefless.md
Last active June 17, 2024 17:15
`texlive-full` without the beef

TLDR;

On an Debian/Ubuntu-based system, to install texlive-full without docs and language packs, simply do this:

sudo apt install `sudo apt --assume-no install texlive-full | \
		awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
		tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`

After this, if you wish to install the language packs, selectively install them. E.g.:

"""
This script is a wrapper around veracrypt and zim that makes it easy to work
with notebooks that reside inside a veracrypt container.
The script does three things:
1) Mounts a veracrypt container to a target location.
2) Runs a zim notebook, intended to be located in the mounted partition.
3) Unmounts the partition when either Zim or this script exits.
Note: sudo session from mount might have expired. Be prepared to re-insert
sudo password.
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@daviderestivo
daviderestivo / drestivo-org-download-method.el
Created August 30, 2017 12:07
This is an helper function for org-download. It creates an \"./image\" folder within the same directory of the org file. Images are separated inside that image folder by additional folders one per org file.
(defun drestivo/org-download-method (link)
"This is an helper function for org-download.
It creates an \"./image\" folder within the same directory of the org file.
Images are separated inside that image folder by additional folders one per
org file.
More info can be found here: https://github.com/abo-abo/org-download/issues/40.
See the commit message for an example:
https://github.com/abo-abo/org-download/commit/137c3d2aa083283a3fc853f9ecbbc03039bf397b"
(let ((filename
(file-name-nondirectory
@MilesCranmer
MilesCranmer / word_count_changes.md
Last active February 22, 2024 23:17
Accurate word count changes in git, useful for tracking changes on a paper in overleaf

Words changed in a git repo

This should work generally, but I use this to track the number of words changed in a (LaTeX) paper with a version history in git (and which Overleaf uses by default).

This is a tricky thing to deal with for many reasons.

Show the added words, deleted words, words on duplicate lines on every commit in the last day (bash):

@muguu
muguu / autocompletion.py
Last active February 2, 2023 13:29
Plugin for ZimWiki V0.66 or greater
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2017 Murat Guven <[email protected]>
# This is a plugin for ZimWiki from Jaap Karssenberg <[email protected]>
#
# This plugin provides auto completion for tags similiar to code completion in code editors.
# When you press the @ key, a list of available tags are shown and can be selected.
# The {AutoCompletion} class can be used to provide auto completion on any given
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active September 28, 2024 03:02
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`
@etes
etes / pi_mount_usb.md
Last active September 2, 2024 15:02
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following