Skip to content

Instantly share code, notes, and snippets.

@visamz
visamz / base64.js
Created December 13, 2014 15:03
base64的js实现
/**
*
* Base64 encode / decode
* originUrl: http://tuhaitao.iteye.com/blog/653244
*/
function Base64() {
// private property
_keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@visamz
visamz / Homestead.yaml
Created November 25, 2014 08:53
homestead 1.0 yaml file config
---
ip: "192.168.1.89"
memory: 2048
cpus: 1
network: "public_network"
authorize: E:/Homestead/ssh/id_rsa.pub
keys:
- E:/Homestead/ssh/id_rsa
@visamz
visamz / baciuzzi_queue.conf
Last active March 27, 2020 06:44
Beanstalkd and Supervisor Config. For CentOS, a modified /etc/init.d/beanstlkd file which creates a pid file in /var/run/beanstalkd.pid
[program:baciuzzi_queue]
directory=/data2/www/baciuzzi
command=php artisan queue:listen --tries=3
stdout_logfile=/data2/www/baciuzzi/app/storage/logs/supervisor.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/data2/www/baciuzzi/app/storage/logs/supervisor_error.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
安装centOS 后 某些服务不是自动启动
chkconfig 可以检查和 设置服务自动启动
#chkconfig --list
输出 所有服务列表
如果列表中没有你要启动的服务