- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
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
<div class="m-2 p-4"> | |
<div class="mb-4 grid grid-flow-col grid-cols-3 items-center border-0 border-b-2 border-gray-200 text-center text-base md:text-lg font-bold uppercase"> | |
<div>Quarterfinals</div> | |
<div>Semifinals</div> | |
<div>Finals</div> | |
</div> | |
<div class="grid grid-flow-col grid-cols-3 items-center"> | |
<div class="grid grid-flow-row grid-rows-3"> | |
<div class="mb-4 rounded-md bg-gray-200 px-4 py-2 text-gray-900 space-y-2 text-xs md:text-base"> | |
<div class="grid grid-flow-col grid-cols-2"> |
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
awk '{print length}' yourfile.csv | sort -nr | head -1 |
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 | |
function findDifferences(array $array1, array $array2) | |
{ | |
// Elements present in array1 but not in array2 | |
$missingInArray2 = array_diff($array1, $array2); | |
// Elements present in array2 but not in array1 | |
$addedInArray2 = array_diff($array2, $array1); |
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 | |
# | |
# This script rename to a more userfriendy file name, so we can easly view/sort it etc. | |
# Specially in multi-part files, Given the Nameing convention: | |
# https://community.gopro.com/s/article/GoPro-Camera-File-Naming-Convention?language=en_US | |
# | |
# Eample: | |
# - GH010051.MP4 ==> GH0051-01.mp4 | |
# - GH020051.MP4 ==> GH0051-02.mp4 |
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
---- | |
[---->+<] | |
>++. | |
-- | |
[----->+<] | |
>-. | |
++++ | |
[->+++<] | |
>+. | |
+++++. |
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
# | |
# THIS IS EXTREMLY RISKY TO RUN IF U DONT KNOW WHATS GOING ON | |
# DONT JUST COPY PASTE STUFF, READ IT, UNDERSTAND WHATS GOING SO IT WONT BREAK YOUR USER/SYSTEM | |
# | |
# put the information we need in variables | |
username=danielmorales | |
old_uid=`id -u $username` # looks up current (old) uid | |
new_uid=1000 |
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
# Download the *.run file from Virtualbox Site, 'other distros' | |
apt install build-essential linux-headers-amd64 | |
chmod +x VirtualBox*.run | |
vboxversion=$(wget -qO - https://download.virtualbox.org/virtualbox/LATEST.TXT) | |
wget "https://download.virtualbox.org/virtualbox/${vboxversion}/Oracle_VM_VirtualBox_Extension_Pack-${vboxversion}.vbox-extpack" | |
vboxmanage extpack install --replace Oracle_VM_VirtualBox_Extension_Pack-${vboxversion}.vbox-extpack | |
# Add your user to the | |
/usr/sbin/usermod -aG vboxusers [username] |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> | |
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations |
NewerOlder