One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
#!/bin/bash | |
# Forticlient SSL VPN Client launching script utilizing expect. | |
# -------------------------------------------- | |
# CONFIGURATION | |
# If empty - script will take some simple logic to locate appropriate binary. | |
FORTICLIENT_PATH="" |
# Place file in | |
# /etc/NetworkManager/conf.d/90-disable-randomization.conf | |
[device-mac-randomization] | |
# "yes" is the default for scanning in Fedora 25 | |
wifi.scan-rand-mac-address=no | |
[connection-mac-randomization] | |
ethernet.cloned-mac-address=random | |
wifi.cloned-mac-address=random |
from mnist import MNIST | |
import numpy as np | |
import cv2 | |
import lmdb | |
import caffe | |
mndata = MNIST('./data') | |
images, labels = mndata.load_training() | |
labels = np.array(labels) | |
images = np.array(images).reshape(len(labels), 28, 28).astype(np.uint8) |