Skip to content

Instantly share code, notes, and snippets.

@fabriciorsf
fabriciorsf / ssh-agent.service
Last active May 3, 2020 — forked from magnetikonline/README.md
Add user ssh-agent as daemon to Ubuntu 18.04LTS server.
View ssh-agent.service
[Unit]
Description=SSH authentication agent
[Service]
ExecStart=/usr/bin/ssh-agent -a %t/ssh-agent.socket -D
Type=simple
[Install]
WantedBy=default.target
View ansible_labDTL
#!/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
View find_serial.vbs
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
View config_ubuntu.sh
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
View mergeLines.py
#!/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
View senna_compile_and_test.sh
###################################
##### 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
View install_programs.sh
#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
@fabriciorsf
fabriciorsf / theano_with_AMD_on_ubuntu.sh
Last active Dec 18, 2017 — forked from jarutis/ubuntu.sh
Theano and Keras setup on ubuntu with OpenCL on AMD card
View theano_with_AMD_on_ubuntu.sh
## 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
View downloadFromAnimesOnline.sh
#!/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
You can’t perform that action at this time.