Skip to content

Instantly share code, notes, and snippets.

Juba B rizerzero

Block or report user

Report or block rizerzero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rizerzero
rizerzero / Alias command
Last active Jul 11, 2019 — forked from bclinkinbeard/release.sh
Bash script to automate the Git Flow tag/release process and maintain release number file.
View Alias command
release(){
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
View alias command to configure init gitflow like you want
gfinit(){
git config gitflow.branch.master master
git config gitflow.branch.develop develop
git symbolic-ref HEAD refs/heads/master
git commit --allow-empty --quiet -m "Initial commit"
git branch --no-track develop master
git checkout -B develop
git config gitflow.prefix.feature feature-
git config gitflow.prefix.bugfix bugfix-
@rizerzero
rizerzero / gitflow-breakdown.md
Created Jul 10, 2019 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.
View gitflow-breakdown.md

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@rizerzero
rizerzero / .gitignore
Created May 12, 2019 — forked from gquemener/.gitignore
SuperMemo 2 PHP Implementation
View .gitignore
composer.lock
/vendor
@rizerzero
rizerzero / ec2tools
Created Mar 20, 2019 — forked from denydias/ ec2tools
Some useful bash scrips for AWS EC2. See how to use them at https://mexapi.macpress.com.br/2015/05/mail-calendar-server-p1.html
View ec2tools
Hello,human. This is just for the gist title.
View zero-to-database-in-laravel.md

Zero to Database with Laravel

Part 1: Seeding and Viewing

[Laravel][] is a PHP framework that's really a joy to work with -- though I did find the initial learning curve a bit steep.

This tutorial describes a minimum set of steps necessary to pull content from a database and dump it to a url using Laravel's Eloquent ORM. For me, that was the breakthrough moment.

Assuming you've got [Laravel installed][install] and the [database configured][configure], here are the steps needed to get your data from the database into a web browser:

  1. Create a migration
@rizerzero
rizerzero / .bash_prompt.sh
Created Feb 20, 2019 — forked from miki725/.bash_prompt.sh
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
View .bash_prompt.sh
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
View create-s3-bucket.sh
APP_DEV=static.intermail.dev.$1.jp7.com.br
echo "Creating S3 development bucket " $APP_DEV"...\n"
aws s3api create-bucket --bucket $APP_DEV --region us-east-1
echo "Setting Static Web Hosting...\n"
aws s3api put-bucket-website --bucket $APP_DEV --website-configuration file://website-config.json
echo "Bucket" $APP_DEV "created, visit AWS Console to create IAM user for said bucket.\n"
APP_QA=static.intermail.qa.$1.jp7.com.br
@rizerzero
rizerzero / aws.py
Created Jan 7, 2019 — forked from philkuz/aws.py
check S3 bucket exists with python
View aws.py
from aws import bucket_exists, upload_path
bucket_name = 'cnns-music-vids'
directory_to_upload = 'data/'
output_s3_directory = 'data/'
if bucket_exists(bucket_name):
print('the bucket exists!')
else:
raise ValueError('nah the bucket does not exist')
@rizerzero
rizerzero / devops_training.txt
Created Nov 24, 2018 — forked from ssmythe/devops_training.txt
Training materials for DevOps
View devops_training.txt
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
You can’t perform that action at this time.