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
const max = 1e9 | |
const measure = (f, pref) => { | |
console.log(pref) | |
console.time('m') | |
f() | |
console.timeEnd('m') | |
} | |
console.log('var plain') |
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 vmail | |
update mailbox | |
set | |
isadmin=1, | |
isglobaladmin=1 | |
where | |
username='[email protected]'; |
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
mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb2 | |
mdadm --assemble /dev/md1 /dev/sda3 /dev/sdb3 | |
mount /dev/mapper/vg0-root /mnt | |
chroot /mnt /bin/bash | |
passwd root | |
sync | |
exit |
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/bash | |
find /path/to/ -type f -newerct "1 May 2022" ! -newerct "1 Jun 2022" -print0 | while read -d | |
$'\0' file | |
do | |
echo "$file" | |
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
#!/bin/bash | |
URL=$(curl -s https://api.github.com/repos/orientechnologies/orientdb/releases/latest |grep tarball_url|sed 's/"tarball_url": //g; s/,//g; s/"//g') | |
rm -rf orient.tar.gz | |
wget -O orient.tar.gz $URL | |
rm -rf orientdb/ | |
mkdir orientdb | |
tar xzf orient.tar.gz -C orientdb --strip-components=1 | |
cd orientdb/ | |
mvn clean install -DskipTests |
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
-module(tctest). | |
-compile(export_all). | |
-define(TC0, 100). | |
-define(TC1, 1000000). | |
all()-> | |
io:format("~p~n", [tc12()]), | |
io:format("~p~n", [tc21()]). |
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
root@deb764:/tmp# openssl speed rsa | |
Doing 512 bit private rsa's for 10s: 120928 512 bit private RSA's in 9.98s | |
Doing 512 bit public rsa's for 10s: 1482403 512 bit public RSA's in 9.99s | |
Doing 1024 bit private rsa's for 10s: 29271 1024 bit private RSA's in 9.99s | |
Doing 1024 bit public rsa's for 10s: 415378 1024 bit public RSA's in 9.98s | |
Doing 2048 bit private rsa's for 10s: 3912 2048 bit private RSA's in 9.98s | |
Doing 2048 bit public rsa's for 10s: 146740 2048 bit public RSA's in 9.98s | |
Doing 4096 bit private rsa's for 10s: 535 4096 bit private RSA's in 9.99s | |
Doing 4096 bit public rsa's for 10s: 40049 4096 bit public RSA's in 9.99s | |
OpenSSL 1.0.1e 11 Feb 2013 |