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
# master1 | |
# SQL: grant replication slave on *.* to 'replication'@10.0.0.2 identified by 'replica_secret' | |
log_bin = /var/log/mysql/mysql-bin.log | |
binlog-do-db = dbrepl | |
server-id = 1 | |
master-host = 10.0.0.2 | |
master-user = replication | |
master-password = replica_secret |
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
select collection.uid, orgs.name, | |
group_concat(ifnull(attributes.name,"") separator "\0"), | |
group_concat(ifnull(collection.value,"") separator "\0"), | |
group_concat(ifnull(variants.value,"") separator "\0") | |
from collection | |
left join orgs on orgs.uid=collection.uid | |
left join variants on collection.variant=variants.id | |
left join attributes on collection.attr_id=attributes.id | |
where orgs.proj_id = ? | |
group by collection.uid |
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
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ClientContext clientContext = new ClientContext("http://sitename"); | |
CredentialCache cc = new CredentialCache(); | |
cc.Add(new Uri("http://sitename"), "NTLM", new NetworkCredential("User", "Password")); | |
clientContext.Credentials = cc; |
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
apt-get install googleearth-package | |
make-googleearth-package |
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
apt-get install googleearth-package | |
make-googleearth-package | |
dpkg -i googleearth_6.0.3.2197+0.7.0-1_amd64.deb |
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
while true; do fortune | cowsay -f $(ls -d1 /usr/share/cowsay/cows/* | shuf | head -n1) "$([ $[$RANDOM%10] == 0 ] || echo "-"$(echo -e "b\nd\ng\np\ns\nt\nw\ny"|shuf|tail -n1))" && sleep 3; 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
***Про тяготы переполнения однобайтовых переменных*** | |
Олег работал над программою весь день | |
На C++ писал он эту поебень | |
Но позабыл напутствие олдфагов | |
Про signed char переполненья багу | |
Уволен был Олег 128 дней спустя | |
ГЛОНАССа спутник та программа в море увела | |
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 perl | |
use Mojolicious::Lite; | |
get '/' => 'index'; | |
get '/ok' => 'index_ok'; | |
use Test::More; | |
plan tests => 6; |
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
use strict; | |
use QtCore4; | |
use QtGui4; | |
package Ui_MainWindow; | |
use strict; | |
use warnings; | |
use QtCore4; | |
use QtGui4; |
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
use strict; | |
use v5.10; | |
BEGIN { | |
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll'; | |
$ENV{MOJO_IOLOOP_DEBUG} = 1; | |
} | |
use Mojo::IOLoop; | |
use Mojo::UserAgent; | |
use Net::Async::HTTP; | |
use URI; |