start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Source https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen | |
pkgname=$1 | |
if [ -z $pkgname ]; then | |
echo "Usage: ./non-root-yum-install.sh pkgname-here" | |
exit 1 | |
fi | |
rand=$(openssl rand -base64 6) |
Notes
RETURN
rules to iptables to prevent looping issuelsof -i udp:53
to check if clash's DNS module work fine, otherwise you may have to kill systemd-resolved
and any other processes occupying the UDP 53 portReference
#!/usr/bin/env python | |
""" | |
# Version | |
2021-08-31 | |
# Tested on | |
Python 3.9 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_gcide-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_wn-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-moby-thesaurus-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-web1913-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_elements-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-vera-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-jargon-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_foldoc-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd-easton-2.4.2.tar.bz2 | |
http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_hitchcock-2.4.2.tar.bz2 |
I had to install Java to get presto working
brew cask install java
From https://prestodb.io/docs/current/installation/cli.html I did:
wget https://repo1.maven.org/maven2/com/facebook/presto/presto-cli/0.202/presto-cli-0.202-executable.jar
mv presto-cli-0.202-executable.jar presto
This is a simple ruby script to create (in adjacent list format) graph networks of a given array of steam users. You can also use this script to find the most common friends of a given group of users.
Below are some examples of using this script.
outputCSV(createNetwork(['yigitcan2', 'Boneslark']), 'output.csv');
So Hive in CDH is horribly, painfully slow. Cloudera ships Hive 1.1, which is actually moderately modern. It is, however, very badly configured out of the box and patched with custom code from Cloudera. With a bit of effort, we managed to improve hive performance considerably. We really shouldn't have to do this, but Cloudera is actively working against supporting a performant Hive.
First, building Tez was fairly straightforward. Using the instructions at https://github.com/apache/tez/blob/master/docs/src/site/markdown/install.md, the only change was to use the version string "2.6.0" for the build. I believe that was the default. Don't use the CDH string, it won't work.
At the bottom of the installation instructions, there's mention of the fact that to use the local hadoop jars (rather than those packaged with tez) you must unpack the jars in HDFS rather than using the tarball. In this case, unpack the tez-minimal tarball and upload the contents to /apps/tez-0.7.0 (or whatever you prefer). Don't fo
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |