Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Hebert F. Barros hebertcisco

🎯
Focusing
View GitHub Profile
@hebertcisco
hebertcisco / install.sh
Created Nov 1, 2020
Ubuntu Installation Automation
View install.sh
#!/bin/bash
## By Hebert F. Barros 2019
## Removing any apt ## crashes
sudo rm /var/lib/dpkg/lock-frontend ; sudo rm /var/cache/apt/archives/lock ;
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
@hebertcisco
hebertcisco / chocolatey.ps1
Created Oct 24, 2020
Installing Chocolatey Windows
View chocolatey.ps1
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process
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'))
choco -?
@hebertcisco
hebertcisco / sources.list
Created Oct 23, 2020
sources.list Ubuntu 20.10 Groovy Gorilla
View sources.list
#deb cdrom:[Ubuntu 20.10 _Groovy Gorilla_ - Release amd64 (20201022)]/ groovy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ groovy main restricted
# deb-src http://br.archive.ubuntu.com/ubuntu/ groovy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
@hebertcisco
hebertcisco / kdenlive-gpu-rendenring.profile
Created Oct 21, 2020
Render by GPU (AMD) in Kdenlive
View kdenlive-gpu-rendenring.profile
f=mp4 movflags=+faststart hwaccel_device=/dev/dri/renderD128 vf=‘format=nv12,hwupload’ c:v=h264_vaapi vcodec=h264_vaapi threads=2 preset=faster g=15 bf=2 vb=10M acodec=aac ab=256k
@hebertcisco
hebertcisco / get-node.sh
Last active Nov 14, 2020
Install Node.js Unix
View get-node.sh
echo 'installing nvm'
curl -fsSL https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | sh
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn node npm
sudo apt update && sudo apt install --no-install-recommends yarn
export PATH="$PATH:/opt/yarn-[version]/bin"
@hebertcisco
hebertcisco / pip-install.sh
Created Oct 19, 2020
Install pip with Python 3
View pip-install.sh
wget -c https://bootstrap.pypa.io/get-pip.py
python get-pip.py
@hebertcisco
hebertcisco / swift-install.sh
Last active Oct 18, 2020
Swift Installation Automation on Ubuntu
View swift-install.sh
#!/bin/bash
## By Hebert F. Barros
echo 'Removing any apt crashes...'
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
echo 'Updating the dependencies...'
sudo apt-get update
@hebertcisco
hebertcisco / chrome.sh
Created Oct 18, 2020
Debian Install Google Chrome
View chrome.sh
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
@hebertcisco
hebertcisco / vs-code.sh
Created Oct 18, 2020
Debian Install VS Code
View vs-code.sh
echo 'installing code'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https -y
sudo apt-get update
sudo apt-get install code -y # or code-insiders
View Plank-Config.desktop
[Desktop Entry]
Name=Plank Config
GenericName=Dock config
Comment=Stupidly simple.
Categories=Utility;
Type=Application
Exec=plank --preferences
Icon=plank
Terminal=false
NoDisplay=false
You can’t perform that action at this time.