Skip to content

Instantly share code, notes, and snippets.

@moon0440
moon0440 / .profile
Last active October 30, 2017 16:56
mac bash profile
alias vroclient="/usr/bin/javaws https://cloud/vco/client/client.jnlp >> ~/.vroclient.log 2>&1"
<?php
phpinfo();
?>
PHP_FPM_USER="www"
PHP_FPM_GROUP="www"
PHP_FPM_LISTEN_MODE="0660"
PHP_MEMORY_LIMIT="512M"
PHP_MAX_UPLOAD="50M"
PHP_MAX_FILE_UPLOAD="200"
PHP_MAX_POST="100M"
PHP_DISPLAY_ERRORS="On"
PHP_DISPLAY_STARTUP_ERRORS="On"
PHP_ERROR_REPORTING="E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR"
user www;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
$ms = New-Object -com "Wscript.Shell";while ($true){Start-Sleep -Seconds 60; $ms.sendkeys('{NUMLOCK}')}
docker stop $(docker ps -a -q); docker rm $(docker ps -a -q); docker rmi --force $(docker image ls -q);
@moon0440
moon0440 / vimrc
Last active January 23, 2018 19:47
" Disable visual mouse mode
set mouse-=a
set nocompatible
filetype off
set encoding=utf-8
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
# Vim packages
pacman -Syu vim git
# Vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Vim Setup
vim +PluginInstall +qall
git init
git add . --verbose
git remote add origin https://git-codecommit.us-west-2.amazonaws.com/v1/repos/lc-c
git config credential.helper store
git tag -a v17.21.530.26101
git commit
git commit -m "inital commit"
git push -u origin master
git push --tags
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
}