trying to follow this tutorial, i was not able to get fail2ban to work in my setup, so here is a gist in case I forget.
sudo apt install fail2bantrying to follow this tutorial, i was not able to get fail2ban to work in my setup, so here is a gist in case I forget.
sudo apt install fail2ban| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| require('dotenv').config() | |
| const cors = require('cors') | |
| const bodyParser = require('body-parser') | |
| const express = require('express') | |
| const expressJwt = require('express-jwt') | |
| const cookieSession = require('cookie-session') | |
| const jwt = require('jsonwebtoken') | |
| const passport = require('passport') | |
| const GoogleStrategy = require('passport-google-oauth20').Strategy | |
| const jwtSecret = Buffer.from('Zn8Q5tyZ/G1MHltc4F/gTkVJMlrbKiZt', 'base64') |
X1C6 Type: 20KG*
Bionic works out of the box on the new 2018 X1 Carbon. The X1C6 is a beautiful laptop, and Bionic is the best Ubuntu yet. Users of all levels of experties/experiences are recommended to try this combination. The purpose of this documentation is to improve the user's experience.
Following changes are required by the DSDT patch:
| import boto3 | |
| import time | |
| region = 'eu-west-1' | |
| user_data_script = """#!/bin/bash | |
| instanceid=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
| cd / | |
| mkdir moodledata | |
| mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-xxxxxxxxxxc.efs.eu-west-1.amazonaws.com:/ moodledata | |
| tar czf mooodledata-backup-$(date +%d-%m-%Y_%H-%M).tar.gz /moodledata | |
| aws s3 mv mooodledata-backup-*.tar.gz s3://xxxxxxxxx/ |
| # A python script to turn annotated data in standoff format (brat annotation tool) to the formats expected by Stanford NER and Relation Extractor models | |
| # - NER format based on: http://nlp.stanford.edu/software/crf-faq.html#a | |
| # - RE format based on: http://nlp.stanford.edu/software/relationExtractor.html#training | |
| # Usage: | |
| # 1) Install the pycorenlp package | |
| # 2) Run CoreNLP server (change CORENLP_SERVER_ADDRESS if needed) | |
| # 3) Place .ann and .txt files from brat in the location specified in DATA_DIRECTORY | |
| # 4) Run this script |
| from py2neo import Node, Graph, Relationship, PropertyDict | |
| from db.types import GraphLabel, GraphRelationship | |
| graph_url = 'http://localhost:7474/db/data/' | |
| graph_db = Graph(graph_url) | |
| # delete everything | |
| graph_db.delete_all() |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
| import argparse | |
| import os | |
| import zipfile | |
| from collections import Counter | |
| # gene_set = set(['rs2015343', 'rs12203592', 'rs4778136', 'rs9782955', | |
| # 'rs4778138', 'rs3739070', 'rs11074314', 'rs11631797', | |
| # 'rs12914687', 'rs1667394', 'rs3794604', 'rs3947367', | |
| # 'rs4778241', 'rs7495174', 'rs7170869', |