Skip to content

Instantly share code, notes, and snippets.

View codenuke's full-sized avatar

C0deNuke codenuke

View GitHub Profile
version: '3'
services:
phpfpmoracle:
container_name: php_oracle
image: codenuke/phpfpm_oracle:php7.1-oci12.2
ports:
- "8000:8000"
volumes:
- ./php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./php.ini:/usr/local/etc/php/php.ini
@codenuke
codenuke / nginx.conf
Created March 29, 2019 03:32
Config from Domecloud Class
user root;
worker_processes auto;
worker_rlimit_nofile 100000;
pid /run/nginx.pid;
events {
worker_connections 200000;
multi_accept on;
}
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
#kernel.domainname = example.com
# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3
@codenuke
codenuke / .md
Created June 11, 2018 07:18
spf13-vim + vim-go
  1. Install spf13-vim
sh <(curl https://j.mp/spf13-vim3 -L)
  1. Install Go bundle
echo "let g:spf13_bundle_groups=['general', 'neocomplete', 'programming', 'ruby', 'python', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local 
App\Providers Insert in boot function
--------------------------------------
#change default for mysql
Schema::defaultStringLength(191);
if (env('APP_ENV') === 'production')
{
$url->forceScheme('htps');
}
@codenuke
codenuke / .gitconfig
Created January 27, 2018 17:13
Git log
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
@codenuke
codenuke / ofc.sh
Created July 13, 2017 07:41
Monitor open file count by process
APP_NAMES=("app_1" "app_2" "app_3" "app_4" "app_5")
while [ 1 ]
do
OPEN_FILE_ALL=0
echo -e '\n-------------------------------------------------------'
echo $(date +%Y-%m-%d:%H:%M:%S)
for app in "${APP_NAMES[@]}"
do
PID=$(ps -ef |grep -v grep | grep $app | awk '{print $2}')
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# include Z
. /usr/local/Cellar/z/1.8/etc/profile.d/z.sh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@codenuke
codenuke / .tmux.conf
Created August 30, 2016 17:43
Tmux Configuration
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# set window split
bind-key v split-window -h
bind-key b split-window
# default window title colors
@codenuke
codenuke / .vimrc
Last active August 31, 2016 01:07
Vim Configuration
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
" set rtp+=~/.vim/bundle/Vundle.vim
" call vundle#begin()
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required