This file contains hidden or 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
# How to Install Powershell on Ubuntu 24.04 | |
sudo apt get update | |
# --- reason: Microsoft still using libicu72, while ubuntu 24.04 already using newer libicu -------------- | |
wget https://mirror.it.ubc.ca/ubuntu/pool/main/i/icu/libicu72_72.1-3ubuntu3_amd64.deb | |
sudo dpkg -i libicu72_72.1-3ubuntu3_amd64.deb | |
# --- check latest release on https://github.com/PowerShell/PowerShell/releases -------------------------- | |
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.5/powershell_7.4.5-1.deb_amd64.deb | |
sudo dpkg -i powershell_7.4.5-1.deb_amd64.deb | |
pwsh |
This file contains hidden or 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
##### CHOCOLATEY | |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
##### VSCODE | |
choco install vscode github-desktop -y | |
##### FFMPEG | |
choco install ffmpeg-full vlc -y | |
##### FIREFOX | |
choco install firefox |
This file contains hidden or 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 | |
# FIREFOX | |
################################### | |
sudo snap disable firefox | |
sudo snap remove --purge firefox | |
# MICROSOFT EDGE INSTALLATION | |
################################### | |
sudo apt install software-properties-common apt-transport-https curl ca-certificates -y | |
# Import Microsoft Edge APT Repository on Ubuntu 22.04 |
This file contains hidden or 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
d1 = {'key1': 50, 'key2': 100, 'key3':200} | |
d2 = {'key1': 200, 'key2': 100, 'key4':300} | |
# the concise way | |
from collections import Counter | |
new_dict = Counter(d1) + Counter(d2) | |
print(new_dict) | |
# the long way: | |
new_dict = {} |
This file contains hidden or 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 | |
# TODOS AFTER INSTALLATION UBUNTU 21.10 | |
sudo snap remove --purge firefox | |
sudo apt install firefox | |
sudo apt dist-upgrade | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install gnome-tweaks | |
sudo apt install chrome-gnome-shell gnome-shell-extension-prefs | |
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" |
This file contains hidden or 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
festival> (SayText "Syahehlhumpmut mullumm, waahckkttoonniaaa teeeedooor, Mummmunyaaa Meeraaackkkle") | |
festival> (SayText "Mummmunyaaa Meeraaackkkle, Luggeeee nguppppaaaaeeeen?") | |
festival> (SayText "bhuayhwhloomm nghawndtook yahh, Meeehh??") | |
echo "Indauwnayeseeaa?"|festival --tts |
This file contains hidden or 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
# change root password | |
mysqladmin -u root -p password '<newpassword>' |
This file contains hidden or 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
export: | |
mysqldump -u root -p mantel > mantel20180606.sql | |
import: | |
mysql -u root -p mantel < mantel20180606.sql |
This file contains hidden or 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
# *POSRTGRESQL INSTALLATION* | |
sudo apt-get install postgresql-10 postgresql-client-10 postgresql-server-dev-10 postgresql-doc-10 postgresql-contrib |