Skip to content

Instantly share code, notes, and snippets.

##### 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
@jansenicus
jansenicus / postinstall.sh
Created November 29, 2023 10:56
Ubuntu 22.04 Post Installation Script
#!/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
@jansenicus
jansenicus / add_two_dict.py
Created September 30, 2022 11:57
summing up keys over two dictionaries
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 = {}
#!/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"
@jansenicus
jansenicus / festival
Last active October 13, 2018 14:48
Festival Say Text in Indonesia
festival> (SayText "Syahehlhumpmut mullumm, waahckkttoonniaaa teeeedooor, Mummmunyaaa Meeraaackkkle")
festival> (SayText "Mummmunyaaa Meeraaackkkle, Luggeeee nguppppaaaaeeeen?")
festival> (SayText "bhuayhwhloomm nghawndtook yahh, Meeehh??")
echo "Indauwnayeseeaa?"|festival --tts
# change root password
mysqladmin -u root -p password '<newpassword>'
export:
mysqldump -u root -p mantel > mantel20180606.sql
import:
mysql -u root -p mantel < mantel20180606.sql
@jansenicus
jansenicus / postgresql.sh
Last active August 9, 2018 10:16
PostgreSQL 10 installation on linux mint 18.3 based on ubuntu 16.04 along with common troubleshooting
# *POSRTGRESQL INSTALLATION*
sudo apt-get install postgresql-10 postgresql-client-10 postgresql-server-dev-10 postgresql-doc-10 postgresql-contrib