Skip to content

Instantly share code, notes, and snippets.

View rmsj's full-sized avatar

Ronaldo Santana rmsj

  • Auckland, New Zealand
View GitHub Profile
@rmsj
rmsj / stripe-credit-card-numbers.md
Created April 7, 2022 02:24 — forked from rymawby/stripe-credit-card-numbers.md
Stripe test credit card numbers for use in development

#Test credit card numbers to use when developing with Stripe

4242424242424242 Visa

4012888888881881 Visa

4000056655665556 Visa (debit)

@rmsj
rmsj / Install and uninstall dnsmasq.md
Last active September 27, 2021 02:51
Install and uninstall dnsmasq #Dnsmasq #TipsTricks

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Install

brew install dnsmasq

Setup

@rmsj
rmsj / xdebug-install-php7
Created January 27, 2016 01:27 — forked from kamilZ/xdebug-install-php7
Install xdebug from sources php7.0
sudo apt-get install php7.0-dev
wget http://xdebug.org/files/xdebug-2.4.0rc2.tgz
tar -xzf xdebug-2.4.0rc2.tgz
cd xdebug-2.4.0RC2/
phpize
./configure --enable-xdebug
make
sudo cp modules/xdebug.so /usr/lib/.
#FOR FPM
sudo echo 'zend_extension="/usr/lib/xdebug.so"' > /etc/php/7.0/fpm/conf.d/20-xdebug.ini
@rmsj
rmsj / 0_reuse_code.js
Created November 30, 2015 20:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rmsj
rmsj / git_prompt_info.zsh
Created November 12, 2015 06:46 — forked from msabramo/git_prompt_info.zsh
The slowness of my zsh prompt when in a git-svn managed directory was killing me. I improved it by removing the git status stuff that slows it down...
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
@rmsj
rmsj / setup_selenium.sh
Created October 20, 2015 21:36 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
Language Packages
----
Extensions handled URL
CSharp .cs, .csx, .build https://atom.io/packages/language-csharp
SQL .sql https://atom.io/packages/language-sql
ASPX .aspx, .ascx, .ashx https://atom.io/packages/language-aspx
Vbdotnet .vb https://atom.io/packages/language-vbdotnet
Other Packages
----