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
{ | |
"indentRainbow.colors": [ | |
"rgba(16,16,16,0.2)", | |
"rgba(32,32,32,0.2)", | |
"rgba(48,48,48,0.2)", | |
"rgba(64,64,64,0.2)", | |
"rgba(80,80,80,0.2)", | |
"rgba(96,96,96,0.2)", | |
"rgba(112,112,112,0.2)", | |
"rgba(128,128,128,0.2)", |
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
<!-- | |
Heavily based on https://github.com/grafana/grafana/issues/1816#issuecomment-137827966, | |
with some simplification and modifications for newer version of Grafana | |
--> | |
<div> | |
<script type="text/javascript"> | |
(function() { | |
// get a reference to the result container (this is a div at the bottom of this script) | |
var elem = $('#myPanel') |
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 node | |
/* | |
* Downloads open issues from SonarQube and outputs them as a CSV file | |
*/ | |
var request = require("request"); | |
var json2csv = require("json2csv"); | |
var util = require("util"); |
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
<?php | |
/* | |
SQL - | |
CREATE TABLE innodb_deadlock_maker(a int primary key) engine=innodb; | |
*/ | |
$dbA = new DB(); // Get two instances of whatever class you use to handle DB connections | |
$dbB = new DB(); // and do any initialisation you need | |
$dbA->connect(); // and open two separate connections |
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
wget --spider -o ./wget.log -r -p http://www.example.com | |
grep -B 2 '\.\.\. 40[0-9]\|\.\.\. 50[0-9]' wget.log | sed '/Reusing/d' | sed 's/^HTTP.*\.\.\. //' | sed 's/--.*-- //' | sed '/^--$/d' > broken-links.log |
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
-- source http://stackoverflow.com/a/13764961/86780 | |
SELECT `DROP`,`CREATE` FROM ( | |
SELECT | |
CONCAT("ALTER TABLE `", `K`.`TABLE_NAME`, "` DROP FOREIGN KEY `", `K`.`CONSTRAINT_NAME`, "`;") "DROP", | |
CONCAT("ALTER TABLE `", | |
`K`.`TABLE_NAME`, | |
"` ADD CONSTRAINT ", | |
"`fk_", | |
`K`.`TABLE_NAME`, |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^.*$ index.php [NC,L] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/sh | |
# | |
# Execute phing commands inside a vagrant VM, without having | |
# to `vagrant ssh` first. | |
# | |
CMD="cd /vagrant && phing $@" | |
vagrant ssh --command "cd /vagrant && $CMD" |
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
<!doctype html> | |
<html> | |
<head> | |
<title>crontab2puppet - Convert a crontab to a puppet manifest.</title> | |
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body style="padding: 20px"> | |
<h1>crontab2puppet</h1> |
NewerOlder