Skip to content

Instantly share code, notes, and snippets.

View ponych's full-sized avatar

Eric.Chen ponych

View GitHub Profile
pipeline {
agent any
options {
checkoutToSubdirectory 'src'
}
environment {
HOST_PROD = "[{\"host\":\"app35\",\"port\":58422,\"path\":\"/home/plus/lumen2\"}]"
HOST_TEST = "[{\"host\":\"dev\",\"port\":22,\"path\":\"/home/plus/lumen2\"}]"
}
@ponych
ponych / deploy.php
Created May 2, 2018 12:56
jenkins - php - shells
#!/usr/bin/env php
<?php
/**
* ./lumen.test.php branch_name git_commit
*/
$hostsTest = json_decode($_SERVER['HOST_TEST'] ,1); // [{"host":"app35","port":58422,"path":"/home/plus/lumen2"}]
$hostsProd = json_decode($_SERVER['HOST_PROD'] ,1);
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script!"
exit 1
fi
59.18.44.204|211.181.65.11|203.233.126.197|59.18.44.80|59.18.44.249|59.18.34.100|59.18.34.248|203.233.63.9|202.86.162.148|61.238.203.11|202.248.248.6|202.248.248.221|202.248.151.40|210.139.253.153|27.121.54.91|223.26.69.4|1.255.22.249|1.255.22.145|202.248.151.25|1.255.33.28|1.255.22.147|1.255.22.166|1.255.22.210|1.255.22.207|1.255.22.213|202.248.151.29|1.255.22.146|1.255.22.233|1.255.22.174|1.255.22.134|1.255.22.250|1.255.22.176|202.86.162.162|202.248.151.55|210.191.74.8|58.123.102.74|59.18.34.163|202.248.151.45|202.248.151.35|202.248.151.39|202.248.151.20|115.166.169.23|118.98.111.75|118.98.26.24|118.98.36.164|118.98.36.132|59.190.145.15|222.251.134.174|1.9.24.5|1.9.57.133|1.9.131.33|210.187.25.198|210.187.22.132|202.248.248.235|218.208.3.209|1.9.57.94|210.245.14.34|115.178.26.4|202.248.151.30|202.78.113.175|203.176.178.56|110.164.7.160|118.98.76.70|202.78.113.101|203.176.178.13|182.163.240.59|49.98.25.160|61.91.18.59|202.216.0.89|63.96.4.18|212.56.71.98|194.78.0.113|189.247.138.30|188.21.9.138|202.86.162.16
#!/usr/bin/env bash
set -x
# Clear Application Saved States JetBrains
rm -rfv ~/Library/Saved\ Application\ State/com.jetbrains.*
# PhpStorm
rm -fv /usr/local/bin/pstorm
rm -rfv ~/Library/Preferences/WebIde?0
rm -rfv ~/Library/Caches/WebIde?0
[alias]
s = status --short
st = status -s
ci = commit
l = log --oneline --decorate -12 --color
ll = log --oneline --decorate --color
lc = log --graph --color
co = checkout
br = branch
rb = rebase
@ponych
ponych / gitingore
Created May 23, 2014 14:01
.gitignore
.idea/*
.DS_Store
*.log
@ponych
ponych / archlinux_shell
Last active December 21, 2015 08:39
archlinux 2013.08.01
#fdisk /dev/sda
#mkfs.ext4 /dev/sda(1~3)
#mkswap /dev/sda4
#swapon /dev/sda4
#mount /dev/sda3 /mnt
#mkdir /mnt/boot
#mount /dev/sda1 /mnt/boot
#mkdir /mnt/home
#mount /dev/sda2 /mnt/home
#pacstrap /mnt/ base base-devel vim grub-bios os-prober net-tools
@ponych
ponych / sites.conf
Created May 17, 2013 13:46
for j7 rewrite settings
#
server {
listen 80;
server_name xyj front.xyj admin.xyj userfront.xyj shopback.xyj shopfront.xyj develop.xyj group.xyj;
root /Users/eric/web/xyj/web;
index index.php index.htm index.html;
# begin of rewrite
#location / {
# try_files $uri @rewriteapp;
http://adcdownload.apple.com/Developer_Tools/xcode_4.6.1/xcode4610419628a.dmg