Skip to content

Instantly share code, notes, and snippets.

View raphaelchaib's full-sized avatar

Raphael Chaib raphaelchaib

View GitHub Profile
@DanBurkhardt
DanBurkhardt / install-sshpass.sh
Last active February 16, 2024 14:05
a simple script to install "sshpass" on macOS
# Install "sshpass" on macOS.
#
# - sshpass allows you to easily automate password entry
# prompts for ssh sessions.
#
# Don't mess around with terminal if you
# don't know what any of this means, please.
# Evaluate for learning purposes at your own risk.
#
# Licensed under MIT. See below.
@JannieT
JannieT / backend.js
Last active December 28, 2018 19:23
const uccf = new function() {
let extrasAdded = false;
let config = null;
let editor = null;
this.init = function() {
if (
typeof CKEDITOR == "undefined" ||
!CKEDITOR.instances.hasOwnProperty("body")
)
@dweldon
dweldon / install-docker.sh
Last active April 8, 2022 11:18
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@ziadoz
ziadoz / install.sh
Last active April 20, 2024 10:18
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@alkrauss48
alkrauss48 / gulpfile.js
Last active February 17, 2020 12:45
Base gulpfile config for babel, browserify, and uglify - with sourcemaps and livereload
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var livereload = require('gulp-livereload');
@danielfilho
danielfilho / .git_commit_msg.txt
Created October 21, 2015 16:25
Template for commit messages.
# If this commit is applied, it will:
# Why was this change made?
# Any references to tickets, articles etc?
@squarism
squarism / iterm2.md
Last active September 19, 2024 20:28
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@klzns
klzns / setup.md
Last active September 14, 2015 21:20
Setup Storefront

Para o Alpha precisamos que o computador tenha algumas coisas instaladas. Caso não consiga instalar algo, podemos ver isso no dia.

Node

Instruções de como instalar o node.

Windows

Caso use o Windows, instale o Git Bash e o ConEmu eles facilitam o uso do terminal. Depois configure o ConEmu para usar o Git Bash (instruções)

Pacotes node

@raphaelchaib
raphaelchaib / gist:f9a083a03e06123b9177
Created January 13, 2015 14:13
Make GIT forget index files and then, on new commit, respect .gitignore
The series of commands below will remove all of the items from the Git Index (not from the working directory or local repo), and then updates the Git Index, while respecting git ignores. PS. Index = Cache
First:
git rm -r --cached .
git add .
Then:
git commit -am "Remove ignored files"
@garystafford
garystafford / helpful-docker-commands.sh
Last active August 9, 2024 16:14
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container