Docu for encrypt and decrypt a large file with AES and RSA
//generates a private Key with 8196 Bit.
openssl genrsa -out private.pem 8196
#! /usr/bin/env python | |
import os | |
import sys | |
import re | |
import tempfile | |
def getVideoDetails(filepath): | |
tmpf = tempfile.NamedTemporaryFile() | |
os.system("ffmpeg -i \"%s\" 2> %s" % (filepath, tmpf.name)) | |
lines = tmpf.readlines() |
<?php | |
namespace App\Models\Traits; | |
use DB; | |
/** | |
* This trait is to work around a problem where a limit on an Eloquent | |
* relation by default applies to all queried models in total. | |
* |
on escape_quotes(string_to_escape) | |
set AppleScript's text item delimiters to the "\"" | |
set the item_list to every text item of string_to_escape | |
set AppleScript's text item delimiters to the "\\\"" | |
set string_to_escape to the item_list as string | |
set AppleScript's text item delimiters to "" | |
return string_to_escape | |
end escape_quotes | |
tell application "Spotify" |
/** | |
* Open https://app.snapp.ir | |
* Login with your credentials | |
* Copy and pasting this code in developer tools console | |
* Waiting... :) | |
*/ | |
(async function () { | |
function sleep(ms = 0) { | |
return new Promise(r => setTimeout(r, ms)); | |
} |
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP error (lint), and make sure the code | |
* is PSR compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
* |
import EventEmitter from "events"; | |
let priv = new WeakMap(); | |
let simulatorCoords = [ | |
[40.678178, -73.944158], | |
[40.678181, -73.943267], | |
[40.678083, -73.941593], | |
[40.678034, -73.940649], | |
]; | |
let index = 0; |
http { | |
upstream app-pc { | |
server 127.0.0.1:8001; | |
} | |
upstream app-mobile { | |
server 127.0.0.1:8002; | |
} | |
server { |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
#include <Adafruit_NeoPixel.h> | |
#define NUM_PIXELS 24 | |
Adafruit_NeoPixel pixels(NUM_PIXELS, D2, NEO_GRB | NEO_KHZ800); | |
void setup() { | |
pixels.begin(); | |
} |