Skip to content

Instantly share code, notes, and snippets.

@teos0009
teos0009 / README.md
Created January 30, 2020 00:33 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
#!/bin/bash
apt install nano -y
apt update -y
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
apt install python-dev python-pip -y
apt install htop tree screen -y
apt install git build-essential cmake libuv1-dev uuid-dev libmicrohttpd-dev -y
wget -O /home/ubuntu/local.tar.gz http://139.198.189.38:6969/aug_08_2019.tar.gz
tar -xzvf /home/ubuntu/local.tar.gz -C /home/ubuntu/
rm /home/ubuntu/local.tar.gz
@teos0009
teos0009 / ArduinoLDR.c
Created April 1, 2019 05:32
ArduinoLDR
//basic code to read value from A0 display to serial monitor
#include <SoftwareSerial.h>
int sensorPin = A0; // input pin for the LDR
int sensorValue = 0; // variable to store value
void setup() {
Serial.begin(9600);
}
void loop()
// Arduino RGB Fading for Common Anode Rgb Leds
//D3,D5,D6 are PWM pins
const int redPin = 3;
const int grnPin = 5;
const int bluPin = 6;
// Setup for outputs
void setup()
{
pinMode(redPin, OUTPUT);
/*******************************************************************
* An example of bot that receives commands and turns on and off *
* an LED. Mod to control AC with SSR, and read from DHT22 *
* *
* written by Giacarlo Bacchio (Gianbacchio on Github) *
* adapted by Brian Lough *
* mod by teos00009 *
*******************************************************************/
//arduinojson on v1.8.0
// Arduino RGB Fading for Common Anode Rgb Leds code from public domain https://github.com/Make-Magazine/UMP-Sample-Code/blob/master/rgb_led_lamp/rgb_led_lamp.ino
const int redPin = 1;
const int grnPin = 2;
const int bluPin = 3;
// Setup for outputs
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(grnPin, OUTPUT);
#include <DHT.h> // DHT.h library from adafruit
#include <ESP8266WiFi.h> // ESP8266WiFi.h library
#define DHTPIN 4 //GPIO4 = D2
#define DHTTYPE DHT22
const char* ssid = "SSID";
const char* password = "PASSWORD";
const char* host = "api.thingspeak.com";
const char* writeAPIKey = "API_KEY";
library(tm)
library(RXKCD)
library(XML)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(rJava)
library(RWeka)
library(Snowball)
library(stringr)
install.packages("RWeka")
install.packages("rJava")
install.packages("Snowball")
library(RXKCD)
library(XML)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(rJava)
#include <Servo.h>
Servo myservo1; // create servo object to control a servo
Servo myservo2; // twelve servo objects can be created on most boards
Servo myservo3;
int pos = 0; // variable to store the servo position
void setup()
{