Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
1 - Install Home Brew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2 - Install aircrack-ng:
brew install aircrack-ng
3 - Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport//Figure out which channel you need to sniff:
Jenkinsfile VIM syntax highlighting
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc
@richardsonlima
richardsonlima / docker-compose-jenkins-nexus-sonar-docker-compose.md
Last active January 6, 2024 15:34
docker-compose-jenkins-nexus-sonar

Docker Compose file to create containers for Jenkins, SonarQube and Nexus

##Setup an AWS EC2 instance.

sudo yum update -y
sudo yum install -y docker
sudo yum install -y git
sudo service docker start
sudo usermod -a -G docker ec2-user
HOW TO CONVERT A VIRTULBOX VM TO A BOOTABLE DRIVE
JUL 5, 2017
This is quite easy so I was surprised that I couldn’t find a walk-through anywhere…so here’s one :) This is specifically for a VM of Ubuntu, so it’s possible there may be other hurdles in place for different operating systems.
STEP 1
Create a VM normally in VirtualBox (or use an existing one), install the operating system, and add any programs or files you want to have readily available on the bootable disk.
STEP 2
This is the tricky part, you can use Virtual Box to convert a vdi to an iso, but you have to do it from the terminal. On my machine it wouldn’t work at all in windows default terminal, but I have Cygwin installed, and was able to use that. You first need to cd into the directory where Virtual Box is installed, and run the following command. The folder structure is specific to my machine and will most likely need to be changed on yours.
1
[+] Network internals:
chrome://net-internals/#dns
chrome://net-internals/#bandwidth
chrome://net-internals/#modules
chrome://net-internals/#httpCache
chrome://net-internals/#http2
chrome://net-internals/#sockets
chrome://net-internals/#timeline
chrome://net-internals/#events
chrome://net-internals/#waterfall
AWS_ROOT_CA_FILE=$HOME/aws.root.ca.bundle.pem
cp /dev/null $AWS_ROOT_CA_FILE
for ca in \
https://www.amazontrust.com/repository/AmazonRootCA1.pem \
https://www.amazontrust.com/repository/AmazonRootCA2.pem \
https://www.amazontrust.com/repository/AmazonRootCA3.pem \
https://www.amazontrust.com/repository/AmazonRootCA4.pem \
https://www.symantec.com/content/en/us/enterprise/verisign/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem; do
#!/usr/bin/env bash
#
# Updating to the latest version
# $HOME/to/spf13-vim/
# git pull
# vim +BundleInstall! +BundleClean +q
############################ SETUP PARAMETERS
app_name='spf13-vim'
@richardsonlima
richardsonlima / start_vpn.expect
Created June 3, 2021 20:37 — forked from alecthegeek/start_vpn.expect
Start the CISCO VPN client from the command line
#!/usr/bin/env expect -f
# Start the CISCO VPN client on a Mac. Adapted from
# https://blog.felipe-alfaro.com/2014/05/23/automating-cisco-anyconnect-secure-mobility-client-on-mac-os-x/
set HOSTNAME vpn.server.com
set USER_NAME user.name
set PASSWORD password
spawn /opt/cisco/anyconnect/bin/vpn
#!/bin/bash
LSB=/usr/bin/lsb_release
#
CHECK_DPKG=$(which dpkg)
CHECK_RPM=$(which rpm)
# Show warning if server load average is below the limit for last 5 minute
LOAD_WARN=5
# font colours
#!/bin/bash
# set -x
# Program information
name="hashIdZimbra F.A.Z"
version="1.0.1"
releasedate="11 May 2016"
author="by Richardson Lima"
author_contact="contato@richardsonlima.com.br"
website="http://www.richardsonlima.com.br"