Desktop:
Name | Age | Sex | Comment |
---|
Mobile:
#!/usr/bin/env bash | |
FROM_DIRECTORY=$1 | |
SERVER=$2 | |
TO_ARCHIVE=$3 | |
zip -r - $FROM_DIRECTORY | ssh $SERVER "cat > $TO_ARCHIVE" |
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
$font-family-sans-serif-condensed: "DINNextW01-CondensedMed", "AvenirNextCondensed-Bold", "Futura-CondensedExtraBold", HelveticaNeue-CondensedBold, "Ubuntu Condensed", "Liberation Sans Narrow", "Franklin Gothic Demi Cond", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Arial, "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif; | |
$font-family-serif: Georgia, Times, Times New Roman, serif; | |
$font-family-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; | |
.condensed { | |
font-family: $font-family-sans-serif-condensed; | |
font-stretch: condensed; | |
} |
<?php | |
/** | |
* PHP function to render string path template using nested array. | |
* Renders template string like "Nested array item value: {data.some.nested.item.value}" | |
* @param string $template | |
* @param array $data | |
* @return string | |
*/ | |
public static function renderDataTemplate(string $template, array $data): string |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class UnescapedJsonMiddleware | |
{ | |
public function handle($request, Closure $next) | |
{ |
(function(){let n,t;const i=window.document.links,o=i.length,c=window.location.href.split("?")[0];for(n=0;n<o;n++)c===(t=i[n]).href&&t.classList.add("active")})(); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Title</title> | |
</head> | |
<body> | |
<h1>Heading</h1> | |
</body> |
#!/usr/bin/python | |
import socket | |
HOST = socket.gethostbyname(socket.gethostname()) | |
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_TCP) | |
s.bind((HOST,0)) | |
while True: |
Desktop:
Name | Age | Sex | Comment |
---|
Mobile:
#!/usr/bin/env -S python -u | |
"""My fastest python native implementation of IP http fortune""" | |
import socket as so | |
from threading import Lock, Thread | |
from random import randrange | |
from time import sleep | |
import re | |
__author__ = 'Mikhail Yudin aka fagci' |
#!/usr/bin/env sh | |
# backup repo config | |
cp .git/config /tmp/truncate.git.config | |
# cleanup history | |
rm -rf .git | |
git init | |
# restore repo config |