This file contains 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
SET @temp_statement = NULL; | |
SELECT | |
GROUP_CONCAT(table_schema, '.`', table_name, '`') INTO @temp_statement | |
FROM | |
( | |
SELECT | |
table_schema, table_name | |
FROM | |
information_schema.tables | |
WHERE |
This file contains 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
<launch4jConfig> | |
<dontWrapJar>true</dontWrapJar> | |
<headerType>gui</headerType> | |
<jar></jar> | |
<outfile>C:\chainsaw-bundle\chainsaw.exe</outfile> | |
<errTitle></errTitle> | |
<cmdLine></cmdLine> | |
<chdir>.</chdir> | |
<priority>normal</priority> | |
<downloadUrl>http://java.com/download</downloadUrl> |
This file contains 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
def get_final_window_rect(self): | |
"""Gets the final size of the main window of guake. The height | |
is the window_height property, width is window_width and the | |
horizontal alignment is given by window_alignment. | |
""" | |
screen = self.window.get_screen() | |
height = self.client.get_int(KEY('/general/window_height')) | |
width = 100 | |
halignment = self.client.get_int(KEY('/general/window_halignment')) | |
This file contains 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
# silver searcher | |
sudo apt-get install -y silversearcher-ag | |
# rabbitvcs | |
sudo add-apt-repository -y ppa:rabbitvcs/ppa | |
sudo apt-get update | |
sudo apt-get install -y rabbitvcs-nautilus3 rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit | |
# couchbase | |
sudo apt-get install -y libssl0.9.8 |
This file contains 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
title Background Request Sequence with shared k/v storage | |
client->LB: get x | |
LB->BG Service: get x | |
note right of BG Service: generate job-id | |
BG Service->k/v storage: k:job-id, v:empty | |
BG Service->Queue: enqueue x+job-id | |
BG Service->LB: job-id | |
LB->client: job-id |
This file contains 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
lsof -w -n -i tcp:8080 |
This file contains 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
morgan.token('remote-addr', function (req, res) { | |
var ffHeaderValue = req.headers['x-forwarded-for']; | |
return ffHeaderValue || req.connection.remoteAddress; | |
}); |
This file contains 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
sudo tcpdump -i eth0 'port 8888' -w ./port8888.pcap |
This file contains 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 os | |
import sys | |
import datetime | |
class ModCounter(object): | |
def __init__(self, n, start=None, on_zero_handler=None): | |
self._n = n | |
self._counter = start if start else 0 | |
self._on_zero_handler = on_zero_handler if on_zero_handler else lambda: None |
This file contains 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
sudo /opt/couchbase/bin/erl -noinput -eval 'case file:read_file("/opt/couchbase/var/lib/couchbase/config/config.dat") of {ok, B} -> io:format("~p~n", [binary_to_term(B)]) end.' -run init | grep cred |
OlderNewer