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
| def pid_controller(y, yc, h=1, Ti=1, Td=1, Kp=1, u0=0, e0=0): | |
| """Calculate System Input using a PID Controller | |
| Arguments: | |
| y .. Measured Output of the System | |
| yc .. Desired Output of the System | |
| h .. Sampling Time | |
| Kp .. Controller Gain Constant | |
| Ti .. Controller Integration Constant | |
| Td .. Controller Derivation Constant |
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
| /* Create this file in ~/.config/gtk-3.0 */ | |
| .undershoot.top, .undershoot.right, .undershoot.bottom, .undershoot.left { background-image: none; } |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
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
| while true | |
| do | |
| var=$(sensors | grep Physical | cut -c18-19) | |
| sudo camctl -f $var | |
| sleep 5 | |
| done |
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
| sudo apt-get install mdadm | |
| fdisk /dev/sda | |
| sudo fdisk /dev/sda | |
| sudo mdadm --zero-superblock /dev/sda /dev/sdb | |
| fdisk /dev/sda | |
| sudo fdisk /dev/sda | |
| sudo fdisk /dev/sdb | |
| mdadm -E /dev/sd[a-b] | |
| sudo mdadm -E /dev/sd[a-b] | |
| sudo mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/sd[a-b]1 |
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
| sudo apt-get install libreoffice-sdbc-hsqldb | |
| sudo apt-get install libreoffice-mysql-connector |
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
| export DISPLAY=:0 && audtool --playlist-advance |
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
| sudo apt-get install apache2 php7.0 mysql-server-5.7 phpmyadmin | |
| sudo xed /etc/apache2/sites-available/000-default.conf | |
| sudo service apache2 restart | |
| sudo apt-get install -y libapache2-mod- | |
| sudo apt-get install -y libapache2-mod-php7.0 | |
| sudo service apache2 restart | |
| sudo apt-get install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php7.0-mcrypt | |
| sudo service apache2 restart | |
| sudo apt-get install php7.0-mbstring | |
| sudo service apache2 restart |
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/sh | |
| xinput --set-prop "Razer DeathAdder" "Device Accel Constant Deceleration" 5 | |
| xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1 | |
| xinput --set-prop "Razer DeathAdder" "Device Accel Profile" -1 |
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 | |
| #Stampa il menù iniziale | |
| clear | |
| echo "===HTML to RGB converter===" | |
| echo "" | |
| echo "1. HTML -> RGB" | |
| echo "2. RGB -> HTML" | |
| echo "" | |
| echo "===========================" | |
| #Salva la scelta fatta dall'utente nella variabile menu |
NewerOlder