Skip to content

Instantly share code, notes, and snippets.

View leandrodaf's full-sized avatar
:octocat:

Leandro Ferreira leandrodaf

:octocat:
  • Yalo
  • São Paulo
  • 06:29 (UTC -03:00)
View GitHub Profile
@leandrodaf
leandrodaf / .gitlab-ci.yml
Created June 1, 2021 17:07 — forked from andregaldino/.gitlab-ci.yml
Vue Gitlab CI - Node 10
image: node:10-alpine
.init_ssh: &init_ssh |
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
.requirements: &requirements |
@ccgbon
ccgbon / ids-memberkit
Last active October 6, 2021 20:34
Update IDs api order magalu
"kj5cc2h83a", "36830"
"gab2cb2bbk", "36837"
"dfg51eb04a", "36677"
"cjdcdjkb39", "36624"
"eb5cdj1kdj", "36829"
"bcdhkeed17", "36832"
"cg879b3j9a", "36626"
"hbdd3bbhc1", "36684"
"ad7c99j36a", "36770"
"cefcek5jj9", "37040"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@mtwalsh
mtwalsh / deploy.php
Last active October 20, 2021 22:17
Deployer recipe for Laravel projects.
<?php
namespace Deployer;
require 'recipe/common.php';
// Project name
set('application', 'enovate.co.uk');
// Project repository
set('repository', 'git@githosting.com:enovatedesign/project.git');
@sheikhwaqas
sheikhwaqas / setup-mysql57-ubuntu16.sh
Created April 11, 2017 14:13
Install MySQL Server 5.7 on Ubuntu 16.04 LTS
###############################################################################
# Install MySQL Server 5.7 on Ubuntu 16.04 LTS
###############################################################################
# Download and Install the Latest Updates for the OS
apt update && apt upgrade -y
# Install MySQL Server in a Non-Interactive mode. Default root password will be "root"
echo "mysql-server-5.7 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mysql-server-5.7 mysql-server/root_password_again password root" | sudo debconf-set-selections
@santoshachari
santoshachari / Laravel PHP7 LEMP AWS.md
Last active February 20, 2024 10:00
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active May 18, 2024 16:25
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');