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
#include <Adafruit_NeoPixel.h> | |
#include <SoftwareServo.h> | |
SoftwareServo lockServo ; | |
SoftwareServo armServo ; | |
SoftwareServo trayServo ; | |
SoftwareServo baseServo ; | |
#define lockOpen 110 | |
#define lockClosed 20 |
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
#include <Servo.h> | |
Servo lockServo ; | |
Servo armServo ; | |
Servo trayServo ; | |
Servo baseServo ; | |
#define lockOpen 110 | |
#define lockClosed 20 |
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
/* | |
* I2C SD Card Audio Player | |
* | |
* This project is part of Bob The Robot project and | |
* used for playing audio via the I2C bus | |
* https://github.com/aviosipov/bob-the-robot | |
* | |
* by Avi Osipov | |
*/ |
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
#define LED_PIN 3 | |
#include <Wire.h> | |
void setup() { | |
Wire.begin(8); // join i2c bus with address #8 | |
Wire.onReceive(receiveEvent); // register event | |
} | |
void loop() { |
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
grep "31/Jul/2015:21" /usr/local/apache/logs/access_log | less |
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
scan whole server | |
/usr/local/cpanel/3rdparty/bin/clamscan -ri /home | |
scan account | |
/usr/local/cpanel/3rdparty/bin/clamscan -ri /home/account_name/public_html | |
remove infected files | |
/usr/local/cpanel/3rdparty/bin/clamscan -ri –remove /home/*/public_html |
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
tail -f /usr/local/apache/logs/access_log |
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
tail -n 10000 /usr/local/apache/logs/access_log | cut -f 1 -d ' '|sort|uniq -c|sort -nr|more |