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
#!/bin/bash | |
FLATPAK_STEAM_PATH=~/.var/app/com.valvesoftware.Steam | |
[ ! -d "$FLATPAK_STEAM_PATH" ] && echo 'Flatpak Steam not found' && exit 1 | |
# Copy the icon files | |
USER_ICONS_PATH=~/.local/share/icons | |
mkdir -p "$USER_ICONS_PATH" | |
rsync -a "$FLATPAK_STEAM_PATH"/data/icons/* "$USER_ICONS_PATH" |
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
#!/bin/sh | |
mkdir -p /mnt/fedora/ | |
mount /dev/nvme0n1p6 /mnt/fedora/ -t btrfs -o subvol=root | |
mount /dev/nvme0n1p6 /mnt/fedora/home -t btrfs -o subvol=home | |
mount /dev/nvme0n1p5 /mnt/fedora/boot/ | |
mount /dev/nvme0n1p1 /mnt/fedora/boot/efi/ | |
dnf install -y arch-install-scripts | |
arch-chroot /mnt/fedora |
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
#!/bin/sh | |
# Credits: | |
## https://thomas-leister.de/en/repair-fedora-efi-bootloader/ | |
## https://fedoramagazine.org/os-chroot-101-covering-btrfs-subvolumes/ | |
mkdir -p /mnt/fedora/ | |
mount /dev/nvme0n1p6 /mnt/fedora/ -t btrfs -o subvol=root | |
mount /dev/nvme0n1p6 /mnt/fedora/home -t btrfs -o subvol=home | |
mount /dev/nvme0n1p5 /mnt/fedora/boot/ |
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
#!/bin/bash | |
sudo dnf remove gnome-{boxes,calendar,clocks,contacts,maps,photos,weather,characters,logs} tracker abrt* plymouth* rhythmbox qemu* libreoffice* PackageKit* simplescan yelp cheese | |
gsettings set org.gnome.shell disable-user-extensions true | |
sudo dnf upgrade -y |
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
<!-- outdated browser --> | |
<div id="outdated"></div> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.5/outdatedbrowser.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/outdated-browser/1.1.5/outdatedbrowser.min.js"></script> | |
<script>jQuery(document).ready(function () {outdatedBrowser({ lowerThan: 'grid', languagePath: 'https://raw.githubusercontent.com/outdatedbrowser/outdated-browser/develop/outdatedbrowser/lang/pt-br.html' })})</script> | |
<!-- end outdated browser --> |
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 | |
$runBench = function ($val, Closure $callable, string $using) : array { | |
$startTime = microtime(true); | |
for ($i = 0; $i < 1000000; $i++) { | |
$callable($val); | |
} | |
$elapsedTime = microtime(true) - $startTime; |
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 | |
class CustomersController extends Controller | |
{ | |
public function store(CustomerFormRequest $request) | |
{ | |
$customer = Customer::create($request->input()); | |
return redirect(route('customers.show', $customer->id)); | |
} | |
} |
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 | |
use App\Htpp\Controllers\CustomersController; | |
class CustomersControllerTest extends TestCase | |
{ | |
public function testCustomerRegister() | |
{ | |
// Simulando os dados necessários | |
$formData = [ |
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
.header { | |
@media #{$mobile} { | |
grid-template-areas: 'logo cart' 'search search' 'links links' 'categories categories'; | |
grid-template-columns: 1fr auto; | |
} | |
} |
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
<header class="header"> | |
<div class="header__logo-wrapper">[..]</div> | |
<div class="header__search">[..]</div> | |
<div class="header__links">[..]</div> | |
<div class="header__cart">[..]</div> | |
<div class="header__categories-wrapper">[..]</div> | |
</header> |
NewerOlder