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
https://github.com/ansible/awx
Jenkinsfile VIM syntax highlighting
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="┌─\[\e[1;32m\]\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\]
└─🦄──>\\$ "
@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:
-----------------------------------------------
What worked for me (Ubuntu 16.04, mysql 5.7):
Stop MySQL
sudo service mysql stop
Make MySQL service directory.
sudo mkdir /var/run/mysqld
Give MySQL user permission to write to the service directory.
#!/usr/env python
###############################################################################################################
## [Title]: pcilinuxhecker.py
## [Author]: Richardson Lima (hash1d) -- @zenedge
# Usage: ssh user@ip python -u - < ./cron-checker.py
# conditional import for older versions of python not compatible with subprocess
try:
import subprocess as sub
version: '2'
services:
app:
image: richardsonlima/nginx:v1
container_name: nginx-default
ports:
- 9000:80
volumes:
- ./website:/usr/share/nginx/html
depends_on:
@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 / 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

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites