Skip to content

Instantly share code, notes, and snippets.

View aljavier's full-sized avatar
💭
Hacking the Gibson.

A. J. Javier aljavier

💭
Hacking the Gibson.
  • Dominican Republic
View GitHub Profile
@aljavier
aljavier / parrot_os_bswpm_htb.md
Created May 11, 2020 15:37
Parrot OS minimalista para uso con HTB.

Remover LibreOffice

sudo apt-get remove --purge "libreoffice-core"
sudo apt autoremove

Instalar bspwm, sxhkd, polybar, compton y otros

Cassandra on docker

  1. Pull a DataStax image
 docker pull datastax/dse-server:latest 
  1. Pull a DataStax Studio image
@aljavier
aljavier / hld_vs_lld.txt
Last active March 14, 2019 16:11
High Level Design vs Low Leve Design
# High Level Design (what):
1. SECURITY
1.1 Operating system security
1.2 Application security
1.3 Data security
1.4 Network security
1.5 Physical security
2. HARDWARE
2.1 Printers
@aljavier
aljavier / tmux.conf
Last active January 6, 2019 17:41 — forked from spicycode/tmux.conf
A fair tmux.conf file
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set-option -g default-command bash
set -g default-terminal screen-256color
set -g status-keys vi
@aljavier
aljavier / CypherKeeper.cs
Created April 13, 2018 02:28
C# Utility for encrypting and decrypting texts using AES algorithm.
/// <summary>
/// Class for encrypting and decrypting texts.
///
/// <see cref="https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aesmanaged?view=netframework-4.7.2"/>
/// </summary>
public static class CypherKeeper
{
private static readonly string _defaultPassword = "band4t1on_0l4k4s3qwerty";
private static readonly byte[] _salt = { 0x43, 0x87, 0x23, 0x72, 0x45, 0x56, 0x68, 0x14, 0x62, 0x84 };
@aljavier
aljavier / Util.cs
Created June 15, 2016 21:58
Lo útil de esta clase es simplemente el método isCedulaValida. Este valida que una cédula dominicana tenga sea válida calculando el digitio verificador que según el algoritmo usado para generar esos números debe tener, si el dígito calculador a partir de los números correspondientes de la cédula no es válida entonces retorna false, en caso contr…
using System;
using System.Linq;
using System.Text.RegularExpressions;
public class Util
{
/// <summary>
/// Valida que el número de una cédula sea válido, en cuanto
/// al digito verificador.
/// </summary>
@aljavier
aljavier / config.h
Created August 30, 2013 03:22
My dwm configuration. The best tiling window manager ever.
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#00BFFF";
static const char normbgcolor[] = "#000000";
static const char normfgcolor[] = "#00BFFF";
static const char selbordercolor[] = "#0066ff";
static const char selbgcolor[] = "#000000";
static const char selfgcolor[] = "#ffffff";
@aljavier
aljavier / SimpleGeoIP.py
Created July 19, 2013 13:57
Script for geolocalize an IP from the command line.
#!/usr/bin/env python
#############################################
# #
# Simple GeoIP Script #
# by #
# n3x07 #
# Visit http://netc0de.blogspot.com #
# #
# Version 1.0 - Tested with: Python 2.7 #
# #