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
version: "3" | |
services: | |
sockd: | |
image: stamm/docker-dante:1.0 | |
env_file: socks.env | |
ports: | |
- "8088:8088" | |
restart: always | |
vpn: | |
image: "hwdsl2/ipsec-vpn-server" |
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
contents = File.read('goroutines_dump.txt') | |
p = contents.scan(/goroutine\s(\d+).+?^\t(\S+\.go:\d+)/m) | |
counts = Hash.new(0) | |
p.each do |el| | |
counts[el[1]] += 1 | |
end | |
puts counts.sort_by { |k,v| -v } |
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
* Редактор схемы целиком (индексов, check, триггеров) таблицы, а не по отдельности, как сейчас | |
* Сохранение запросов с именами (типо закладок) | |
* Сохранение Filter Criteria тоже с именами | |
* Отчищение таблицы по клику из меню | |
* Возможность сделать копии таблицы (только схему или с данными) через меню | |
* Экспорт/Импорт |
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
phpbrew install 5.6.1 +default +openssl +opcache +dbs +intl +fpm |
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
if (top != self) { | |
var enable = ["example.com","dev.example.com"]; | |
var ourPage = false; | |
var hostname = document.referrer.split("/")[2].split(":")[0]; | |
for (var i=0; i < enable.length; i++) { | |
if (hostname == enable[i] || hostname == "www." + enable[i]) { | |
ourPage = true; | |
break; | |
} | |
} |
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 | |
for a in $(find . -type l); do echo "$a -> $(readlink $a)"; 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
Dir['/path/to/**/*'].select do |path| | |
[*'а'..'я', 'е', 'ё'].any? { |char| path.downcase.count(char) > 0 } | |
end |
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>Site is down for maintenence - [Client Name]</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } |
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 5.4.23 BENCHMARK ####### | |
Start : 12/24/2013 16:49:12 pm | |
Server : @ | |
Platform : Darwin | |
PHP version: 5.4.23 | |
#################################### | |
for : 0.02550 sec | |
while : 0.01702 sec | |
if else : 0.08580 sec | |
switch : 0.11273 sec |
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
var posts=$$('.post_delete_button'), length = posts.length; for (i=0; i <length; i++) { posts[i].click() } |
NewerOlder