rawiron / jekyll-rawiron.github.io Goto Github PK
View Code? Open in Web Editor NEWJekyll sources for rawiron.github.io
Jekyll sources for rawiron.github.io
A look at the User Interface shows you windows, menus and bars.
open switcher
ctrl+tab
Let's take a closer look a the tool windows.
there is ctrl++ to expand and collapse blocks in the editor windows.
many accounts to manage.
for security it is required to
put passwords in a vault like LastPass.
configure a two-factor authentication for the vault.
ideally use YubiKey.
Xen Hypervisor
AppArmor places applications in a sandbox defined by a policy.
enable AppArmor and check its status with
sudo apparmor_status
hardened kernels, distributions focusing on security
show call hierarchy
show class hierarchy
show symbol usage
jump to definition of symbol
navigate history
within in a module (file)
ctrl+f12
alt+<cursor up>
alt+<cursor down>
ctrl-shift-<cursor up>
ctrl-sift-<cursor down>
sudo apt-get install docker.io
sudo service docker start
sudo groupadd docker
sudo usermod -aG docker achtmhz
newgrp - docker
docker run hello-world
docker search ubuntu
docker pull ubuntu
docker images
docker run -i -t ubuntu bash
docker ps -a
docker ps -a --format "{{.ID}}: {{.Image}}: {{.Size}}"
docker ps -a --format "table {{.ID}}\t{{.Image}}\t{{.Size}}"
docker build -t 'rawiron/nginx' -f dockerfile-nginx .
docker run -d -p 8080:80 'rawiron/nginx' nginx -g 'daemon off;'
docker logs d522ba426d35
docker stop $(docker ps -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker rm $(docker ps -a -q --filter status=exited)
docker rmi $(docker images -q --filter dangling=true)
http://blog.sequenceiq.com/blog/2014/08/12/docker-networking/
https://docs.docker.com/engine/userguide/networking/
docker network ls
docker network inspect bridge
https://blog.docker.com/2014/06/why-you-dont-need-to-run-sshd-in-docker/
forward logs of the executable to docker log collector
ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
clean the cached apt
files
rm -rf /var/lib/apt/lists/*
Create an encrypted filesystem locally.
Sync data between decrypted and encrypted filesystem.
Push and Pull encrypted data to and from S3 using rclon
scope of find
go back to previous edit (back movement on edit history)
ctrl+shift+backspace
go to next edit (forward movement on edit history)
Content Security Policy: Directive ‘frame-src’ has been deprecated. Please use directive ‘child-src’ instead. (unknown)
uncaught exception: undefined (unknown)
short summary of what is important etc.
"When you can measure what you are speaking about, and express it in numbers, you know something about it.", Lord Kelvin
Latency numbers every programmer should know
hard disk, 7.5K rpm, random IO: ops/sec
hard disk, 15K rpm, random IO: ops/sec
hard disk, 15K, 1TB, sequential scan: Mbit/sec
hard disk, 15K, random IO: response time
network, WAN, message US east to west cost: RTT
network, LAN, tcp, 1Gbit, message server to server within rack: RTT
PCIe
memory, cpu cache
memory, DDR3,
data bus, response time: RTT
data bus, throughput: Mbit/s
storage hierarchy, relation cpu to memory to hard disk access time: 1 : 1,000 : 10,000
cpu, 4 cores:
cpu, 128 cores:
memory, 1TB: $
hard disk, 15K, 1TB
SSD, 1TB
linux, context switch, process: total cpu cycles or cpu instructions
Mbit
MB
Kbit
KB
2^8 = 256
2^7 = 128
2^32 =
2^64 =
Amdahls Law
Universal Scalability Law
Latency vs. Throughput: Is it true that increase in throughput increases latency (worse response time)?
watch -n 1 -d tree .git
git log --oneline --all --decorate --graph
do not put the name of the branch in the commit message.
with a "merge" workflow the branch name is kept in the merge message.
git init
git checkout
git status
git add
git commit
git add -p
git reset -p
git reset --hard
git rebase -i
git checkout -b <branch_name>
git push origin --delete <branch_name>
git branch -d <branch_name>
git remote prune origin
git log --oneline --all --decorate --graph
git merge
git rebase
git merge --no-ff
git branch -d
git init --raw
git push
git pull
git diff HEAD
git diff --stage
git diff
git difftool
write a quick tutorial on python regex
use Jupyter Notebook.
link to Notebook or include html version of Notebook in Jekyll.
http://blogs.atlassian.com/2014/01/simple-git-workflow-simple/
The name of the package is known.
Which package contains the file L?
Is the package X installed?
What is in the package X?
Which files have been installed and where?
What is the version of the currently installed package?
When was the package X installed?
add-apt-repository
apt-get install
apt-get update
apt-get upgrade
apt-get remove, apt-get purge
apt-get info
It works exclusively on the data acquired into the local package cache.
apt-cache search '\wfish\w'
beneath-a-steel-sky - classic 2D point and click science fiction adventure game
bubblefishymon - system load dockapp with a duck
gkrellm-bfm - system load plugin for gkrellm with a duck
libfishsound1 - simple API that wraps Xiph.Org audio codecs
libfishsound1-dbg - simple API that wraps Xiph.Org audio codecs (debugging information)
libfishsound1-dev - simple API that wraps Xiph.Org audio codecs (development files)
libtwofish0 - Niels Ferguson's Twofish cryptographic library -- runtime package
xfishtank - turns your X root into an aquarium
apt-cache policy python
python:
Installed: 2.7.11-1
Candidate: 2.7.11-1
Version table:
*** 2.7.11-1 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
show the meta information of the package (package record)
dpkg --get-selections
dpkg --list
dpkg search
dpkg-query -W 'linux-image*'
dpkg-query -l 'linux-image*'
dpkg -i ./vagrant_2.2.3_x86_64.deb
list all the files a package installed onto the system
dpkg-query -L <package_name>
public on top
private at the bottom
copy the types and parameters
copy the method's signature
extract to method
ctrl-alt-m
symmetric to extract method
ctrl-alt-n
current code uses static final factory methods
refactor to dependency injection
git origin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.