Skip to content

Instantly share code, notes, and snippets.

View danielm's full-sized avatar
🎯
Focusing

Daniel Morales danielm

🎯
Focusing
View GitHub Profile
@danielm
danielm / change-ui.sh
Created December 11, 2021 17:33
Change Unix/Linux UID
#
# 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
@danielm
danielm / install.sh
Created April 20, 2021 22:28
Install Virtualbox on Debian Bullseye
# 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]
@danielm
danielm / gist:297186f74cfdbd6fd110cccbc684e83f
Created April 6, 2021 22:51 — forked from Prezens/gist:f99fd28124b5557eb16816229391afee
Apache .htaccess settings for Vue, vue-router
<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
@danielm
danielm / countries_codes_and_coordinates.csv
Last active June 14, 2024 13:46 — forked from tadast/countries_codes_and_coordinates.csv
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude coordinates
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Åland Islands AX ALA 248 60.116667 19.9
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0