Skip to content

Instantly share code, notes, and snippets.

🌚
咱也不敢问,咱也不敢fork

jj.style Jaggle

🌚
咱也不敢问,咱也不敢fork
Block or report user

Report or block Jaggle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Jaggle
Jaggle / lsmod
Last active Mar 30, 2018
ls extend
View lsmod
#!/bin/bash
#########################################################################
# File Name: Advanced_ls_commond.sh
# Author: LookBack
# Email: admin#dwhd.org
# Version:
# Created Time: 2015年09月09日 星期三 03时52分41秒
# usage: wget -cq http://www.dwhd.org/script/lsmod -O /bin/lsmod && chmod +x /bin/lsmod && echo 'alias ls="/bin/lsmod"' >> ~/.bashrc && . ~/.bashrc
#########################################################################
View es
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
@Jaggle
Jaggle / mq.js
Created Sep 7, 2017
web qq中的一份js代码
View mq.js
/**
* @license almond 0.3.2 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
//be followed.
/*global setTimeout: false */
var requirejs, require, define;
(function (undef) {
View sort.php
<?Php
$len = count($arr);
for ($i = 0; $i < $len; $i++) {
for ($j = 0; $j < $i; $j++) {
if ($arr[$i] < $arr[$j]) {
$temp = $arr[$i];
$arr[$i] = $arr[$j];
$arr[$j] = $temp;
@Jaggle
Jaggle / keng.php
Last active Jun 14, 2017
php大坑
View keng.php
<?php
function getReferer($link)
{
$refMap = [
'baidu' => '百度',
'sougou' => '搜狗',
'360' => '360',
'google' => '谷歌'
];
View nginx.conf
server {
listen 80;
server_name domain.com www.domain.com;
return 301 https://www.domain.com$request_uri;
}
server {
listen 443;
server_name www.domain.com domain.com;
root /alidata/www/geekerism;
@Jaggle
Jaggle / a.conf
Last active Jun 5, 2017
apache https configuration
View a.conf
<VirtualHost *:443 *:80>
DocumentRoot "/path/to/webRoot"
ServerName yourServerName
<IfModule ssl_module>
SSLEngine on
SSLCertificateFile "/path/to/crtFileName.crt"
SSLCertificateKeyFile "/path/to/keyFileName.key"
</IfModule>
View gist:39798d5a05112021897e129d6045392d
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017-03-31
* Time: 10:44
*/
namespace AppBundle\Services;
View clear_bom.php
<?php
/**
*去除所有文件BOM
* usage:命令行进入到项目根目录,执行 php clear_bom.php
*author Caihong_tang
*@created 2016-6-13 10:05:34
*/
if (isset($_GET['dir'])){
$basedir=$_GET['dir'];
}
View Config.class.php
<?php
/**
* Description replace from your description
* Created by Jetbrains PhpStorm.
* User: Jake <singviy@gmail.com>
* Created: 2016/6/7 9:39
*/
class Config
You can’t perform that action at this time.