Skip to content

Instantly share code, notes, and snippets.

View philipz's full-sized avatar

philipz philipz

View GitHub Profile
.include /usr/lib/systemd/system/docker.service
[Service]
ExecStart=
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd:// --dns=172.17.42.1 --dns-search=cluster.local

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@philipz
philipz / tmux.md
Created August 27, 2014 04:33 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

# 內容
# repo 位置
- https://github.com/facebook/react
- https://github.com/facebook/flux
# 官網
- React
* http://facebook.github.io/react/
$ sudo docker run -i -t futurecore/parallella-devenv /bin/bash
dev@6940b5150ffb:~$ ls
buildroot examples
dev@6940b5150ffb:~$ cd examples/apps/hello-world/
dev@6940b5150ffb:~/examples/apps/hello-world$ ls
Debug build.sh run.sh src
dev@6940b5150ffb:~/examples/apps/hello-world$ ./build.sh
src/hello_world.c:35:19: fatal error: e-hal.h: No such file or directory
#include <e-hal.h>
^
{
"title": "SSH analysis",
"services": {
"query": {
"list": {
"0": {
"query": "message:\"Invalid user\" AND sshd",
"alias": "Failed login",
"color": "#BF1B00",
"id": 0,

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@philipz
philipz / gist:87ad761df64fb8c465a2
Last active March 9, 2021 18:47
QEMU QCOW2 Image
# Epitome
I want to have os image that can login with password.
download UEC image.
for example, this precise.
http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img
this image was forbidden to password login feature in terminal console.
it's reasonable for use of cloud image.