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
@richardsonlima
richardsonlima / mailservers.sh
Created July 18, 2016 21:54 — forked from pablodevopensource/mailservers.sh
install postfix&dovecot for puphpet
#!/bin/bash
sudo apt-get install postfix -y && sudo apt-get install dovecot-imapd dovecot-pop3d -y
@richardsonlima
richardsonlima / list.sh
Created August 9, 2016 22:43 — forked from rwjblue/list.sh
List account and distribution list details in Zimbra
sudo su - zimbra
# list all accounts and print out account name and aliases
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done
# list all distribution lists and any members and/or aliases
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done
@richardsonlima
richardsonlima / xpoweredScanner.sh
Created April 23, 2017 13:47 — forked from misterch0c/xpoweredScanner.sh
x-powered random check
while true; do
ip=$(zmap --verbosity 0 -p 80 -N 1 -q -o -)
version=$(curl -I -s -m 4 $ip | grep -i 'X-Powered-By' | awk -F ":" '{print $2}')
if [ "$version" != "" ];then
echo "$ip:$version" >> log.txt
fi
done
@richardsonlima
richardsonlima / Vagrantfile
Created May 24, 2017 15:04 — forked from werner-freytag/Vagrantfile
Vagrant files for Ubuntu 14.04 (Trusty Tahr) with lighttpd and php
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-14.04"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 80, host: 8888
@richardsonlima
richardsonlima / vagrant-xenial64_readme.md
Created May 24, 2017 15:04 — forked from maxivak/_readme.md
Vagrant with Ubuntu 16.04 in VirtualBox

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Prepare Vagrant box with Ubuntu 16.04

We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.

  • Vagrantfile
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@richardsonlima
richardsonlima / ansible-summary.md
Created September 29, 2017 01:32 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@richardsonlima
richardsonlima / gist:6863af48eb031017031af7c893fcd9ff
Created December 8, 2017 19:22 — forked from zelig/gist:85cc18ce1e373d0ee7ab
GPU mining on MacOS. Tried on MacBook Pro Retina with NVIDIA GeForce GT750M. Only reaches a max of 700-900 KH/s which is only 0-15% better than CPU on 8 cores
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.29_mac.pkg
sudo installer -pkg cuda_7.0.29_mac.pkg -target /
// once cpp-ethereum 0.9.23 is released on homebrew you do not need to build from source
brew update
brew tap ethereum/ethereum
brew reinstall cpp-ethereum --with-gpu-mining --devel --build-from-source
// or build from source:
// cd cpp-ethereum
// cmake -DETHASHCL=1 -DGUI=0
// make -j8
@richardsonlima
richardsonlima / mail.php
Created January 9, 2018 23:35 — forked from rantastic/mail.php
PHP: Send email using amazon SES
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY');
$m = new SimpleEmailServiceMessage();
@richardsonlima
richardsonlima / perfect-desktop-debian-9.txt
Created March 31, 2018 05:09 — forked from wxguy/perfect-desktop-debian-9.txt
My perfect desktop - Debian 9 (Streach)
My perfect desktop - Debian 9 (Streach)
#######################################
Installation image:
-------------------
Download non-free version of debian ISO file from below link. Don't download version 9.0.0 as it contain bug which won't allow you to install on a disk. I choose to download LXDE desktop as it consumens less memory, responsive and perfectly OK for me.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/
Enable sudo and root user account and password:
-----------------------------------------------