Skip to content

Instantly share code, notes, and snippets.

#!/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
@fabriciorsf
fabriciorsf / theano_with_AMD_on_ubuntu.sh
Last active December 18, 2017 05:16 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
## 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
#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
###################################
##### 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
#!/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
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
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
#!/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
@fabriciorsf
fabriciorsf / ssh-agent.service
Last active May 3, 2020 19:33 — forked from magnetikonline/README.md
Add user ssh-agent as daemon to Ubuntu 18.04LTS server.
[Unit]
Description=SSH authentication agent
[Service]
ExecStart=/usr/bin/ssh-agent -a %t/ssh-agent.socket -D
Type=simple
[Install]
WantedBy=default.target
## 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