-
Enable PPA
sudo apt update sudo apt install software-properties-common
-
Install apt-fast
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
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) |
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
# 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 |
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
#!/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="" |
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
-- 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%' |