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
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
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
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
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
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
# 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
CREATE TABLE `dbrepl`.`allok` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(256) NOT NULL, | |
`type` enum('TYPE_OK','TYPE_FAIL') NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8 |
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
package Syntax::method; | |
use Devel::Declare; | |
use B::Hooks::EndOfScope; | |
use strict; | |
sub import { | |
my $class = shift; | |
my $caller = caller; | |
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 utf8; | |
my $мама = 'рама'; | |
sub мой($) { | |
print "я мою ", shift, "\n"; | |
} | |
мой($мама); |