This file contains 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
<?php | |
/************************************************************************* | |
* Get File Information | |
*/ | |
// Assuming these come from some data source in your app | |
$s3FileKey = 's3/key/path/to/file.ext'; | |
$fileName = 'file.ext'; |
This file contains 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
### Flatpak Repos | |
List packages on a repo : | |
flatpak remote-ls repon-name --user | |
flatpak remote-ls | |
Install packages : | |
flatpak --user install repo-name package-name io.liri.Platform | |
Flathub: |
This file contains 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
<?php | |
$file = fopen('php://output', 'w'); | |
fputcsv($file, ['ID', 'NAME', 'AGE']); | |
for ($index = 0; $index < 21_000_000; $index++) { | |
fputcsv($file, [$index + 1, bin2hex(random_bytes(20)), random_int(18, 65)]); | |
} |
This file contains 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
/* | |
@see https://www.reddit.com/r/FirefoxCSS/comments/73dvty/tutorial_how_to_create_and_livedebug_userchromecss/ | |
@see https://www.reddit.com/r/firefox/comments/mxqc71/this_community_complains_a_lot_but_this_time_i/ | |
@see https://gist.github.com/Speedy37/63d37931601123178ac2221533292cdd | |
*/ | |
.tab-stack { | |
margin-top: 1px; | |
} | |
.tabbrowser-tab { | |
margin: 0px !important; |
This file contains 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
<?php | |
namespace App\Providers; | |
use Illuminate\Cache\RateLimiter; | |
use Illuminate\Cache\RateLimiting\Limit; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ |
This file contains 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
<template> | |
<!-- ... --> | |
</template> | |
<script> | |
export default { | |
// ... | |
beforeRouteLeave (vm, options, event) { | |
// vm will now refer to this component instead of the link | |
return window.confirm(vm.$trans('ticket.confirm_leave_creation')); |
-
Open Terminal
Ctrl+Alt+T
Download Firefox Developer Editiontar file
wget https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=linux64&lang=en-US
-
Copy tar file to
opt
sudo cp -rp firefox-35.0a2.en-US.linux-x86_64.tar.bz2
-
Open
opt
folder (cd /opt/
) and untar filesudo tar xjf firefox-35.0a2.en-US.linux-x86_64.tar.bz2
This file contains 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
<?php | |
namespace App\Console\Commands; | |
use App\Models\Tenants\Tenant; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Console\ConfirmableTrait; | |
use Illuminate\Database\Console\Migrations\MigrateCommand; | |
class MigrateTenant extends MigrateCommand |
This file contains 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
const AssetsManager = { | |
name : 'AssetsManager', | |
template : '#assets-manager-template', | |
components : { ImageForm, LinkForm }, | |
data () { | |
return { | |
showImageForm : false, |