This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug.auto_trace=1 | |
;;Type: boolean, Default value: 0 | |
;;When this setting is set to on, the tracing of function calls will be enabled just before the script is run. This makes it possible to trace code in the auto_prepend_file. | |
xdebug.cli_color=1 | |
;;Type: integer, Default value: 0, Introduced in Xdebug 2.2 | |
;;If this setting is 1, Xdebug will color var_dumps and stack traces output when in CLI mode and when the output is a tty. On Windows, the ANSICON tool needs to be installed. | |
;;If the setting is 2, then Xdebug will always color var_dumps and stack trace, no matter whether it's connected to a tty or whether ANSICON is installed. In this case, you might end up seeing escape codes. | |
;xdebug.collect_assignments=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="test-service-namespace"> | |
<SOAP-ENV:Body> | |
<ns1:TestOperation> | |
<ns1:firstArgument> | |
<!-- Wrong enum --> | |
<ns1:timeGroup>FooBar</ns1:timeGroup> | |
<!-- Good enum --> | |
<ns1:customerType>CHILD</ns1:customerType> | |
</ns1:firstArgument> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for ((;;)) do psql kangaroo postgresql -1 -t -c "SELECT now() as at_date, client_addr, substring(regexp_replace(trim(current_query), E'\r|\n', '', 'g'),0,100) as query, count(*) as qtd, case when count(*) > 50 then 'CRITICAL' else '' END as level FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = psa.procpid where client_port > 0 group by client_addr, substring(regexp_replace(trim(current_query), E'\r|\n', '', 'g'),0,100)" >> /tmp/log_lock.log; sleep 1m; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -ohP 'public.*function\s*\K.*' file.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Ext JS Library 3.2.1 | |
* Copyright(c) 2006-2010 Ext JS, Inc. | |
* [email protected] | |
* http://www.extjs.com/license | |
*/ | |
Ext.ns('Ext.ux.form'); | |
/** | |
* @class Ext.ux.form.FileUploadField |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DOCKER-VERSION 0.3.4 | |
FROM ubuntu | |
MAINTAINER Kevin Zhuang <[email protected]> | |
#RUN echo "This is a ubuntu Dockerfile." | |
#replace source.list with http://repogen.simplylinux.ch/ | |
RUN echo "deb http://02.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" > /etc/apt/sources.list | |
RUN apt-get update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#remove public read right for all keys within a directory | |
#usage: remove_public.py bucketName folderName | |
import sys | |
import boto | |
from boto import connect_s3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import getpass | |
import json | |
import requests | |
import sys | |
import urllib | |
import boto3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
def role_arn_to_session(**args): | |
""" | |
Usage : | |
session = role_arn_to_session( | |
RoleArn='arn:aws:iam::012345678901:role/example-role', | |
RoleSessionName='ExampleSessionName') | |
client = session.client('sqs') | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |