This file contains hidden or 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 | |
while IFS= read -r line | |
do | |
ls -Ral /var/www/$line | awk '{t+=$5}END{print t}' >> output_file_size.txt | |
done < lista_files.txt | |
##!/bin/bash | |
#while IFS= read -r line | |
#do | |
# du -h /var/www/$line >> output_file_size_mb.txt |
This file contains hidden or 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 | |
# https://sbcguides.com/internet-speed-test-on-raspberry-pi/ | |
# https://github.com/ddo/fast/ | |
wget https://github.com/ddo/fast/releases/download/v0.0.4/fast_linux_arm | |
sudo install fast_linux_amd64 /usr/local/bin/fast | |
fast | |
# -> 123.45 Mbps |
This file contains hidden or 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
import requests | |
import csv | |
import json | |
# Read CSV file | |
print('[Read] CVS Files') | |
with open("_NAME_FILE_.csv") as fp: | |
reader = csv.reader(fp, delimiter=",", quotechar='"') | |
# next(reader, None) # skip the headers | |
data_read = [row for row in reader] |
This file contains hidden or 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 | |
# Probado en CentOS 7 | |
# Instalacion IONIC Framework | |
echo "Instalando NodeJS"; | |
sudo yum install -y gcc-c++ make git wget htop | |
sudo curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash - | |
sudo yum install -y nodejs | |
node -v | |
npm -v |
This file contains hidden or 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 | |
curl ifconfig.co |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Jquery Apss</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"> | |
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> | |
<script> |
This file contains hidden or 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
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
This file contains hidden or 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 | |
sudo iwconfig wlan1 mode ad-hoc | |
sudo iwconfig wlan1 channel 6 | |
sudo iwconfig wlan1 essid "Rasputin" | |
sudo iwconfig wlan1 key '4566546' | |
auto lo | |
auto eth0 |
This file contains hidden or 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
pi@raspi ~/octopusgen/raspi_config $ history | |
1 ls | |
2 top | |
3 dm | |
4 dmesg | |
5 ifconfig | |
6 iwlist scan | |
7 iwlist sca | |
8 iwconfig | |
9 iwlist scan |
This file contains hidden or 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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# GET_IP_PUBLIC_PYTHON_SCRIPT_MACOSX | |
# (Requerimientos) revisar antes de ejecutar: | |
# $ python --version | |
# $ pip --version | |
# $ pip install --user pipenv | |
# $ python -m site --user-base | |
# $ echo "export PATH=$PATH:/Users/bash/Library/Python/3.7/bin" >> ~/.bash_profile |
NewerOlder