SQLite3 Cheat Sheet
Download from: http://www.sqlite.org/download.html Getting Started: http://www.sqlite.org/sqlite.html Documentation: http://www.sqlite.org/docs.html
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=720, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Audio recording test</title> | |
</head> | |
<body> | |
import math | |
fc = 113.8275e3 | |
c2 = 22e-6 | |
fc= 90e3 | |
gea = 60e-6 | |
gcs=9 | |
vout=5 | |
vfb = 0.8 |
[Unit] | |
Description=Linux Demo service | |
After=network.target | |
StartLimitIntervalSec=0 | |
[Service] | |
Type=simple | |
Restart=always | |
RestartSec=1 | |
User=centos | |
ExecStart=/usr/bin/env php /path/to/server.php |
import pymysql | |
import pymysql.cursors | |
class Login: | |
def __init__(self,**kwargs): | |
self.username = kwargs['username'] | |
self.password = kwargs['password'] | |
self.connection = None |
class Car: | |
type=None | |
fuelcapacity=None | |
mileage = None | |
seats = None | |
fuel = None | |
ignition = None | |
def start(self): | |
if self.fuel>1: |
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo apt-get install mysql-server | |
sudo apt-get install curl | |
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql | |
echo "Restarting Apache2 server" | |
sudo service apache2 restart | |
sudo systemctl status apache2 | |
wget -v https://bootstrap.pypa.io/get-pip.py | |
sudo python3 get-pip.py |
<?php | |
$target_dir = "uploads/"; | |
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); | |
$text = $_POST["description"]; | |
$uploadOk = 1; | |
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); | |
// Check if image file is a actual image or fake image | |
if(isset($_POST["submit"])) { | |
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); |
SQLite3 Cheat Sheet
Download from: http://www.sqlite.org/download.html Getting Started: http://www.sqlite.org/sqlite.html Documentation: http://www.sqlite.org/docs.html
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import base64 | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
BS = 16 | |
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS) | |
unpad = lambda s : s[0:-s[-1]] |