Make hotspots easily
sudo apt install git
Remember credentials for approx 4 days
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sublime_plugin | |
import subprocess | |
from time import sleep | |
import sys | |
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip() | |
log = lambda message: sys.stderr.write("Log: %s\n" % message) |
def getdata(filename): | |
d = dict() | |
with open(filename, "r") as f: | |
for line in f.readlines(): | |
line = line.replace('\n', '').split(' -> ') | |
d[line[1]] = line[0] | |
return d | |
def evaluate(var, d): | |
try: | |
val = int(var) |
#include <bits/stdc++.h> | |
using namespace std; | |
void printer(int** a, int r, int c) | |
{ | |
cout << endl; | |
for ( int i = 0 ; i <= r ; i++ ) | |
{ | |
for ( int j = 0 ; j <= c ; j++ ) | |
{ | |
cout << a[i][j] << " "; |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <time.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <stdio.h> | |
#define PACKET_DROP_PROBABILITY 4 // Inverse of the probability |
# Check for expired aircrafts | |
SELECT AcID, Mfg_Date, Type FROM AirCraft JOIN AirCraft_Type ON (AirCraft.Ac_Type = AirCraft_Type.ActID) WHERE YEAR(CURDATE()) - YEAR(Mfg_Date)> 2 LIMIT 10; | |
# Flights btw airports | |
SELECT FlId, FlightDate, Fare, Departure, Arrival FROM ((Flight_Schedule JOIN AirFare ON (Flight_Schedule.NetFare=AirFare.AfID)) ) JOIN Route ON (Route=RtID) WHERE Airport='New Delhi' AND Destination='Bangalore'; | |
# Passengers on Flight | |
SELECT Name, Age, Mobile FROM Transaction JOIN Passenger ON (Transaction.Passenger = PsID) JOIN Contact_Details ON (Contacts=CnID) WHERE Flight=5 ORDER BY Name LIMIT 10; | |
# Minor Passengers with complete address |
Make hotspots easily
sudo apt install git
Remember credentials for approx 4 days
As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.
If you are used to installing Docker to your development machine with get-docker
script, that won't work either. So the solution is to install Docker CE from the zesty
package.
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -