Skip to content

Instantly share code, notes, and snippets.

View imvasen's full-sized avatar
🤓
#WFH

Héctor J. Vásquez imvasen

🤓
#WFH
View GitHub Profile
@imvasen
imvasen / vasen.zsh-theme
Last active August 12, 2024 17:09
My OhMyZsh theme
# Keep these as ref     
local icon=""
if [[ "$OSTYPE" =~ "darwin" ]]; then
icon=" "
elif [ "$OSTYPE" = "linux-gnu" ]; then
icon=" "
else
icon=" "
@imvasen
imvasen / .zshrc
Last active December 19, 2023 19:19
Custom confs
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh/"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="ivasen"
# CASE_SENSITIVE="true"
@imvasen
imvasen / pdfPassword.js
Created March 30, 2020 15:54
Uses brute force to get a numerical password from a PDF.
/**
* Requirements:
* pdftops installed on your system.
* Usage:
* $ node pdf.js filename.pdf
*/
const { exec } = require('child_process');
async function fn(file) {
@imvasen
imvasen / eos_post_install.sh
Created March 11, 2018 13:05
Elementary OS post install customization
#!/bin/bash
function updates {
sudo apt update;
sudo apt dist-upgrade -y;
sudo apt upgrade -y;
}
function wantedOfficialPackages {
sudo apt install -y software-properties-common build-essential tree git gitg geany;
@imvasen
imvasen / install_opencv2_elementary_os.sh
Last active March 22, 2018 23:49 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install OpenCV2 in Ubuntu
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving credit to the original #
# for it is your choice, but please keep references to other people's work,#