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 | |
if [ "$#" -lt 3 ]; then | |
echo "Usage: $0 <anime-url> <first_episode_number> <last_episode_number>" | |
echo "Example: $0 'dragon-ball-super' 1 49" | |
exit 1 | |
fi | |
ANIME=$1 | |
shift |
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
## install Catalyst proprietary | |
sudo ntfsfix /dev/sda2 | |
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK | |
sudo apt-get remove --purge fglrx* | |
sudo apt-get install linux-headers-generic | |
sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo | |
sudo amdconfig --initial | |
## install build essentials | |
sudo apt-get install g++ cmake |
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
#Faltou: | |
#- Wireshark | |
#- Ativar serviços: tracert, telnet | |
apt-get install -y dia pdf-presenter-console gimp mysql-server mysql-client mysql-workbench libmysql-java libopencv-dev logisim lynx libglfw3-dev mesa-utils mpi gnuplot gnuplot-x11 mono-complete cmake apache2 texlive-full | |
###instalar pycharm | |
# add-apt-repository ppa:mystic-mirage/pycharm |
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
################################### | |
##### First Option: Intel MKL ##### | |
################################### | |
#First you must install Intel-MKL (default in /opt/intel) and set environment vars on file /etc/profile.d/intel.sh | |
## setting up Intel environment vars | |
#export INTELROOT="/opt/intel" | |
#export MKLROOT="${INTELROOT}/mkl" | |
## setting up MKL environment for sh |
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
#!/usr/bin/env python | |
''' | |
Merge/Join/Combine lines of multiple input files. | |
Write lines consisting of the sequentially corresponding lines from each input file, separated by space character, to output file. | |
TODO: implements params like https://github.com/coreutils/coreutils/blob/master/src/paste.c | |
''' | |
import sys | |
from contextlib import ExitStack |
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
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove && sudo apt autoclean && sudo apt clean | |
sudo apt install htop tilda hardinfo inxi gdebi synaptic cmake traceroute gparted openssh-server tree screen libimage-exiftool-perl | |
sudo apt install cpufrequtils | |
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils | |
sudo systemctl disable ondemand | |
cd ~/Downloads && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo gdebi google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb && cd ~ | |
sudo add-apt-repository ppa:webupd8team/java | |
###ATTETION: accept | |
sudo add-apt-repository ppa:linuxuprising/java | |
###ATTETION: accept |
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
Set WshShell = CreateObject("WScript.Shell") | |
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) | |
Function ConvertToKey(Key) | |
Const KeyOffset = 52 | |
i = 28 | |
Chars = "BCDFGHJKMPQRTVWXY2346789" | |
Do | |
Cur = 0 | |
x = 14 | |
Do |
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 | |
# em cada PC remoto, logo após a instalação limpa do ubuntu desktop LTS | |
#ip a ## anotar o IP | |
#sudo apt install openssh-client openssh-server -y | |
# no PC administrador | |
if ! grep -q "^deb .*ansible" /etc/apt/sources.list /etc/apt/sources.list.d/*; then | |
sudo add-apt-repository ppa:ansible/ansible |
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
[Unit] | |
Description=SSH authentication agent | |
[Service] | |
ExecStart=/usr/bin/ssh-agent -a %t/ssh-agent.socket -D | |
Type=simple | |
[Install] | |
WantedBy=default.target |
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
## Uninstall the OpenSSH Client | |
Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 | |
## Uninstall the OpenSSH Server | |
Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 | |
cd ~/Downloads | |
New-Item -ItemType Directory -Force -Path ssh | |
cd ssh |
OlderNewer