Skip to content

Instantly share code, notes, and snippets.

View kuya-joe's full-sized avatar

Joe kuya-joe

View GitHub Profile
@kuya-joe
kuya-joe / import.md
Last active May 22, 2023 00:06 — forked from iamstoick/import.md
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p. Use -P/--port to specify the port if your exposed port of your docker mysql service is different.

@kuya-joe
kuya-joe / .tmux.conf
Created April 11, 2023 07:02 — forked from tsl0922/.tmux.conf
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
@kuya-joe
kuya-joe / docker-compose.yml
Created April 5, 2023 06:42
adding minio to docker
minio:
image: quay.io/minio/minio
ports:
- "54550:9000"
- "54551:9001"
container_name: "minio_qje"
volumes:
- ./minio_storage:/data:delegated
environment:
@kuya-joe
kuya-joe / .zshrc
Created March 21, 2023 23:31 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@kuya-joe
kuya-joe / running_docker_and_redis.md
Last active March 21, 2023 23:14
docker run local redis
@kuya-joe
kuya-joe / .vimrc
Created March 10, 2023 06:53
new vimrc
let mapleader = ","
set relativenumber
set number
set nocp
" # Pathogen system
syntax on
filetype plugin indent on
@kuya-joe
kuya-joe / test.py
Last active March 4, 2023 03:39
how to make a python request
import requests
import json
url = 'http://localhost:4001/api/delivery/set-addres'
yes = True
null = None
data = {
"ship_from_only": "1",
"products": [
{"part_number": "CBKCZZ2901-L", "quantity": 10},
@kuya-joe
kuya-joe / .env.example
Last active February 26, 2023 03:13
Laravel env example
APP_NAME=Laravel_Env_Example
APP_ENV=local
APP_KEY=base64:dG/v+Dc73X/5wB4kKn/gjuaJucxR+TMrcTFuygOdWCQ=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
@kuya-joe
kuya-joe / idea.md
Created November 6, 2022 01:41
chaos agile

Testing Agile - autonomy /self organising - do people point out issues with a person and is "out of line"

  • autonomy do VIP's or people with power (I forgot the term for people who are said yes to ) understand when they are corrected and are fine being corrected?

  • resiliency - are teams able to improvise on one another's strengths and/or weaknesses?

  • resiliency - is it easy to undo changes?? 

  • goal setting - can your team manage up, and set realistic and fair expectations 

  • productivity are points acurately measuring team velocity? Are soft deadlines being met and will a dev point out if something's taking too long??

@kuya-joe
kuya-joe / read-me.md
Created October 6, 2022 08:07
Basic laravel bootcamp

Laravel Bootcamp

  1. View - Blade

    • Forms
  2. Controller - Basic API

    • Login - Logout Authentication
    • API Testing
  3. Model - Eloquent