Skip to content

Instantly share code, notes, and snippets.

View acidtib's full-sized avatar

Dainel Vera acidtib

View GitHub Profile
@acidtib
acidtib / Selenium Cheat Sheet.md
Created January 30, 2016 21:25 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@acidtib
acidtib / Install-php7.md
Created January 18, 2016 23:42 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php-7.0
# Update index
apt-get update
# Install php7.0-fpm with needed extensions

Keybase proof

I hereby claim:

  • I am arubinofaux on github.
  • I am arubinofaux (https://keybase.io/arubinofaux) on keybase.
  • I have a public key whose fingerprint is 56EC 028B 0650 61D0 3F34 0271 5FBE 0DDA C302 6EA3

To claim this, I am signing this object:

@acidtib
acidtib / gist:8bcec7316a1ab117ebff
Created October 2, 2015 19:34
Fix for libv8 on El Capitan
brew tap homebrew/dupes
brew install apple-gcc42
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
brew uninstall v8
gem uninstall libv8
@acidtib
acidtib / install-comodo-ssl-cert-for-nginx.rst
Last active September 2, 2015 03:30 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

Verifying I am +arubinofaux on my passcard. https://onename.com/arubinofaux
> [email protected] install /Users/arubinofaux/Code/lamassu-machine/node_modules/manatee
> node-gyp rebuild
CXX(target) Release/obj.target/manatee/src/manatee.o
../src/manatee.cc:15:26: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> Scan(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/arubinofaux/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
#!/bin/sh
set -e # Stop if things blow up
set -x # Warn us if we reference an unbound variable
curl -X POST https://api.digitalocean.com/v2/droplets \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
-d '{"name":"example.com", "region":"nyc3", "size":"512mb",
"image":"9128941", "ssh_keys":[],
<% flash.each do |type, message| %>
<div class="alert <%= bootstrap_class_for(type) %> fade in">
<button class="close" data-dismiss="alert">×</button>
<%= message %>
</div>
<% end %>

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software