This method was from http://unix.stackexchange.com/questions/65077/is-it-possible-to-see-cp-speed-and-percent-copied.
Install pv
first
$ brew -v install pv
$ tar cv newstapa | pv | tar x -C /Volumes/FATHER/Media/
# -*- coding: utf-8 -*- | |
import qrcode | |
import pprint # noqa | |
import sys # noqa | |
import csv | |
for i in csv.reader(file('1.csv'), dialect='excel'): | |
o = dict( |
This method was from http://unix.stackexchange.com/questions/65077/is-it-possible-to-see-cp-speed-and-percent-copied.
Install pv
first
$ brew -v install pv
$ tar cv newstapa | pv | tar x -C /Volumes/FATHER/Media/
-- move table from `publicassets_20160930` to `publicassets` | |
SELECT | |
CONCAT('RENAME TABLE ',table_schema,'.', table_name, ' TO ','publicassets.', table_name,';') | |
FROM | |
information_schema.TABLES | |
WHERE | |
table_schema LIKE 'publicassets_20160930'; | |
| from http://askubuntu.com/questions/479506/override-dns-nameserver
Add the desired nameserver in /etc/resolvconf/resolv.conf.d/head
like this,
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
namserver 8.8.8.8
namserver 168.126.63.1
$ sudo mount -o nosuid,locallocks,nfc,actimeo=1 -t nfs 192.168.99.100:/data/share share |
import org.apache.spark.ml.feature.{CountVectorizer, RegexTokenizer, StopWordsRemover} | |
import org.apache.spark.mllib.clustering.{LDA, OnlineLDAOptimizer} | |
import org.apache.spark.mllib.linalg.Vector | |
import sqlContext.implicits._ | |
val numTopics: Int = 100 | |
val maxIterations: Int = 100 | |
val vocabSize: Int = 10000 |
From http://apple.stackexchange.com/questions/10467/how-to-increase-keyboard-key-repeat-rate-on-os-x
$ defaults write -g InitialKeyRepeat -int 10
$ defaults write -g KeyRepeat -int 2
http://www.akadia.com/services/ssh_test_certificate.html |