Skip to content

Instantly share code, notes, and snippets.

View reppair's full-sized avatar
🚀
TALL Stack FTW!

Martin Blagoev reppair

🚀
TALL Stack FTW!
  • MBSoft, Indipendent Contractor
  • Remote + Sofia, Bulgaria
  • 03:38 (UTC +02:00)
  • X @reppair
  • LinkedIn in/reppair
View GitHub Profile
@reppair
reppair / downlaod_from_s3.php
Created August 22, 2024 11:24
Download S3 file to local filsystem with PHP
<?php
use Aws\S3\S3Client;
$client = S3Client::factory([
'credentials' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY')
],
'region' => env('AWS_DEFAULT_REGION'),
@reppair
reppair / CommonVueMethods.js
Created March 27, 2019 18:14
Vehile Intake Report
// get a translation from the stack by it's group and key
function getTranslation(group_dot_key_string) {
let [group, key] = group_dot_key_string.split('.');
if (Oxy.translations[group] === undefined || Oxy.translations[group][key] === undefined) {
return group_dot_key_string;
}
return Oxy.translations[group][key];