-
Use
uname
to get details on your machine. What is your kernel version ? -
What is your default shell ? What version is it ?
-
Find a list of all connected users to your server
-
Run
ifconfig
to get information about network connections. Did it work ?
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 v5.14; | |
my $foo = 13; | |
given ( $foo ) { | |
when ( 1..10 ) { say "small" } | |
when ( 11..20 ) { say "medium" } | |
when ( 21..30 ) { say "large" } | |
default { say "unknown" } | |
} |
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 warnings; | |
use v5.14; | |
use Algorithm::Combinatorics qw/combinations permutations/; | |
my @numbers = qw/2 4 6 8/; | |
my @ops = qw{* - + /}; | |
my $goal = 25; | |
my %ops = ( |
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
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslCertificate::~QSslCertificate(void)" (__imp_??1QSslCertificate@@QAE@XZ) referenced in function "public: void * __thiscall QSslCertificate::`scalar deleting destructor'(unsigned int)" (??_GQSslCertificate@@QAEPAXI@Z) | |
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl QSslSocket::setDefaultCaCertificates(class QList<class QSslCertificate> const &)" (__imp_?setDefaultCaCertificates@QSslSocket@@SAXABV?$QList@VQSslCertificate@@@@@Z) referenced in function _main | |
main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class QList<class QSslCertificate> __cdecl QSslCertificate::fromPath(class QString const &,enum QSsl::EncodingFormat,enum QRegExp::PatternSyntax)" (__imp_?fromPath@QSslCertificate@@SA?AV?$QList@VQSslCertificate@@@@ABVQString@@W4EncodingFormat@QSsl@@W4PatternSyntax@QRegExp@@@Z) referenced in function _main | |
remotewls. |
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
QList<QSslCertificate> cacerts = QSslCertificate::fromPath(capath); | |
QList<QSslCertificate> liveCerts; | |
QDateTime now = QDateTime::currentDateTime(); | |
foreach ( QSslCertificate c, cacerts ) | |
{ | |
if ( c.expiryDate() > now ) | |
{ | |
liveCerts << c; | |
} |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Canny</title> | |
<style type="text/css"> | |
canvas { border: 5px solid purple; } | |
div { width: 400px; margin: 0 auto; } | |
</style> |
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 (<>) { | |
chomp; | |
print; | |
} |
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 warnings; | |
use v5.14; | |
package Zombie; | |
my $how_many_brainz_i_ate = 0; | |
sub new { |
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
$('canvas').bind('vmousemove', function(e) { | |
e.preventDefault(); | |
// other stuff to handle the event | |
}); |
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/intel/bin/perl | |
my $line1 = <<"DONEDONE"; | |
yuval yuval yuval | |
DONEDONE | |
print $line1; |