Connect the SD card to your computer and open the terminal.
- Find the disk id
df -h
from contextlib import contextmanager | |
import os | |
_FILE = "/tmp/temp_file.txt" | |
class MyClass: | |
def __init__(self, name): | |
self.name = name | |
print(f"MyClass instance '{self.name}' created.") |
Connect the SD card to your computer and open the terminal.
df -h
sudo yum install qt-devel libgcrypt libgcrypt-devel |
sudo alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000 | |
sudo alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000 | |
sudo alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/latest/jre/lib/i386/libnpjp2.so 20000 | |
sudo alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 20000 | |
sudo alternatives --install /usr/bin/jar jar /usr/java/latest/bin/jar 20000 |
filename=`echo $1|awk -F. '{print $1}'` | |
latex $filename | |
bibtex $filename | |
for ((i = 1; i<=3; i++)); do | |
latex $filename | |
done | |
dvipdfmx $filename |
#the command to config Fedora firewalld service is firewall-cmd. It's super easy to use. | |
#Read "https://fedoraproject.org/wiki/FirewallD#Using_firewall-cmd" for details | |
#list default firewall zone | |
firewall-cmd --get-default-zone | |
#make hg go through, suppose hg use port 8000 and HTTP, and the default firewall zone is 'public' | |
sudo firewall-cmd --zone=public --add-port=8000/tcp |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="robbyrussell" | |
# Example aliases |
sudo yum install texlive-algorithmicx texlive-amsrefs texlive-metapost texlive-setspace |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms | |
Read 4K randomly from SSD* 150,000 ns 0.15 ms |
//Stop working: | |
rhc app remove-alias -a myAppName --alias www.mywebsite.com | |
rhc app remove-alias -a myAppName --alias mywebsite.com | |
rhc app add-alias -a myAppName --alias www.mywebsite.com | |
rhc app add-alias -a myAppName --alias mywebsite.com | |
//Add | |
rhc alias add |