Skip to content

Instantly share code, notes, and snippets.

View ChechoCZ's full-sized avatar
🎯
Focusing

Sergio Cuadros ChechoCZ

🎯
Focusing
View GitHub Profile
@ChechoCZ
ChechoCZ / bitbucket-pipelines.yml
Created April 2, 2019 12:25
CI/CD for Bitbucket
image: php:7-fpm
pipelines:
branches:
master:
- step:
script:
- apt-get update && apt-get install -y python-dev zip libmcrypt-dev mysql-client libpng-dev
- docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql && docker-php-ext-install gd
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
@ChechoCZ
ChechoCZ / Laravel .ebextensions
Last active April 2, 2019 19:53
Commands to run after deployment on elastic beanstalk
container_commands:
01-migrate:
command: "php artisan migrate:refresh --force"
02-seed:
command: "php artisan db:seed --force"
@ChechoCZ
ChechoCZ / Publish Ionic 3 App
Created April 3, 2019 20:20
Steps to generate the apk file to publish to the Play Store
ionic cordova build --release android
#go to $projectFolder/$projectName/platforms/android/app/build/outputs/apk/release
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name.apk
/Users/$userName/Library/Android/sdk/build-tools/$version/zipalign -v 4 app-release-unsigned.apk appName.apk
@ChechoCZ
ChechoCZ / zsh.md
Created April 24, 2019 02:19 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@ChechoCZ
ChechoCZ / install-docker.sh
Created April 26, 2019 01:01 — forked from dweldon/install-docker.sh
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/
@ChechoCZ
ChechoCZ / VSCode Keyboard Settings Linux Mint
Created April 26, 2019 01:57
Modify the keybindings.json from Keyboard Settings in order to get duplicate lines to work on Linux Mint.
{ "key": "shift+alt+down", "command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus" },
{ "key": "shift+alt+up", "command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus" },
// take an image from Docker Hub
docker pull image-name
// run a container
// pc-port:container-port
docker run --name my-custom-name -p xxxx:xxxx -d image-name
// list running containers
docker ps
{
"workbench.startupEditor": "none",
"workbench.colorTheme": "Code Blue",
"workbench.activityBar.visible": true,
"workbench.editor.labelFormat": "default",
"workbench.iconTheme": "material-icon-theme",
"window.zoomLevel": 0,
"editor.tabSize": 2,
### Added by Zplugin's installer
source '/Users/sergio/.zplugin/bin/zplugin.zsh'
autoload -Uz _zplugin
(( ${+_comps} )) && _comps[zplugin]=_zplugin
### End of Zplugin's installer chunk
zplugin light zsh-users/zsh-autosuggestions
zplugin light zsh-users/zsh-completions
zplugin light zdharma/fast-syntax-highlighting
// Globally
git config --global user.name "your_name"
git config --global user.email "your_email@example.com"
// Locally
git config --local user.name "your_name"
git config --local user.email "your_email@example.com"
// To store password
git config --global credential.helper store