GithubHelp home page GithubHelp logo

notes's Introduction

ubuntu 16.04 clone vm from exist image

virt-clone -o ubuntu16 -n mysql -f /var/lib/libvirt/images/mysql.img 	

git proxy over socat

user@PowerEdge-T630-78:~$ cat bin/gitproxy
#!/bin/sh
_proxy=192.168.1.1
_proxyport=888
username=liyaoshi
password=4rfv3edC
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport,proxyauth=$username:$password

user@PowerEdge-T630-78:~$ cat .gitconfig
[core]
gitproxy = gitproxy

gerrit install

sudo adduser gerrit  
sudo su gerrit  
java -jar gerrit.war init -d /home/gerrit/gerrit   

or java -jar gerrit.war init --batch -d ~/gerrit_testsite

Apache proxy pass

<VirtualHost 136.18.227.58:8888>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

AllowEncodedSlashes on
ErrorLog ${APACHE_LOG_DIR}/gerrit/error.log
CustomLog ${APACHE_LOG_DIR}/gerrit/access.log combined

ProxyPass / http://192.168.18.58:8080/
ProxyPassReverse / http://192.168.18.58:8080/

bash alias

export CPUNUMBER=`grep -c processor /proc/cpuinfo`  
alias m="make -j $CPUNUMBER"  ARCH=arm  
alias mm="make -j $CPUNUMBER"  
export INSTALL_MOD_PATH=~/.  
alias bb="python -m CGIHTTPServer 1234"  
export DISPLAY=`who |grep ${USER} |tail -n 1 | cut -d\\( -f2 |cut -d\\) -f1`:0  

Ubuntu 14.04 run ia32 app

apt-get install  zlib1g:i386  
apt-get install libstdc++6:i386  

Markdown syntax site

https://daringfireball.net/projects/markdown/syntax

ssh no passwd

/home/liyaoshi/authorized_keys

ubuntu start br0 instead of eth0

apt-get install bridge-utils    

xhuang10@ubuntu:~$ cat /etc/network/interfaces
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
bridge_stp off
bridge_fd 0
bridge_maxwait 0
address 192.168.122.4
netmask 255.255.255.0
gateway 192.168.122.1
bridge_ports ens3

Python Upload server

https://github.com/stackp/Droopy/blob/master/droopy

Get mac Address and ip Address

ifconfig eth0 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}'
ifconfig eth0 | grep -oP '(?<=inet addr:)[0-9.]*'

Generate 1M 0xFF file

dd if=/dev/zero bs=1024 count=1024 | tr "\000" "\377" > testfile

Jacinto create android bootimg

out/host/linux-x86/bin/mkbootfs -d out/target/product/jacinto6evm/system out/target/product/jacinto6evm/root | out/host/linux-x86/bin/minigzip > out/target/product/jacinto6evm/ramdisk.img

out/host/linux-x86/bin/mkbootimg  --kernel out/target/product/jacinto6evm/kernel --ramdisk out/target/product/jacinto6evm/ramdisk.img --base 0x80000000 --ramdisk_offset 0x01f00000 --output out/target/product/jacinto6evm/boot.img
make_ext4fs -s -T -1 -S out/target/product/jacinto6evm/root/file_contexts -L system -l 805306368 -a system out/target/product/jacinto6evm/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/jacinto6evm/system out/target/product/jacinto6evm/system

i.MX6 android make boot.img

out/host/linux-x86/bin/mkbootimg  --kernel out/target/product/sabreauto_6q/kernel 
	--ramdisk out/target/product/sabreauto_6q/ramdisk.img 
	--cmdline "console=ttymxc3,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=320M androidboot.console=ttymxc3 consoleblank=0 androidboot.hardware=freescale cma=384M" 
	--base 0x14000000 --second out/target/product/sabreauto_6q/$DTS_BOARD  
	--output out/target/product/sabreauto_6q/boot.img; \
	out/host/linux-x86/bin/boot_signer 
	/boot out/target/product/sabreauto_6q/boot.img 
	build/target/product/security/verity.pk8 
	build/target/product/security/verity.x509.pem 
	out/target/product/sabreauto_6q/boot.img; 

VFIO

https://www.kernel.org/doc/Documentation/vfio.txt  
http://www.fp7-save.eu/papers/EUC2014B.pdf  
https://www.linux-kvm.org/images/b/b3/01x09b-VFIOandYou-small.pdf  
http://www.virtualopensystems.com/en/services/vfio-full-gpu-virtualization/  

KVM on omap5

http://www.virtualopensystems.com/en/solutions/guides/kvm-svirt-omap5/  

Open project manager

https://opensource.com/business/16/3/top-project-management-tools-2016

Show build step folder

ls -alut | sed '1!G;h;$!d'

raspibian ss ctx eroro

/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
line52	libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)
line111 libcrypto.EVP_CIPHER_CTX_reset(self._ctx)

ti-gc320-test build

 make -f makefile.linux VIVANTE_SDK_INC=/home/xhuang10/git/Ti/ti-gc320-test/sdk/include VIVANTE_SDK_LIB=/home/xhuang10/git/Ti/ti-gc320-libs/targetfs/jacinto6evm/lib LIB_2DUTS_DIR=/home/xhuang10/git/Ti/ti-gc320-test/tests/src/test/hal/common/UnitTest/galUtil/bin_r

repo local

 repo forall -c 'echo $REPO_PATH; ssh -p 29418 [email protected] gerrit create-project $REPO_PATH ;'
 repo forall -c 'echo $REPO_PATH; git push ssh://[email protected]:29418/$REPO_PATH +refs/heads/* +refs/tags/*;'

LVM Add disk

 sfdisk /dev/sdb + ,,8e + ctrl-d
 pvcreate /dev/sdb1
 vgextend SVN-vg /dev/sdb1
 lvextend -L+100G /dev/SVN-vg/root
 resize2fs /dev/SVN-vg/root

Ti-sdk wiki

 http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK

Color term font

 https://misc.flogisoft.com/bash/tip_colors_and_formatting    

Server without framebuffer console

 http://kb.digium.com/articles/FAQ/How-to-disable-the-Linux-frame-buffer-if-it-s-causing-problems
 vga=normal
 nofb
 nomodeset
 video=vesafb:off
 i915.modeset=0	

Linux Display common framework

https://events.static.linuxfound.org/sites/events/files/slides/20131024-elce.pdf

drm debug command + edid.bin

u-boot bootargs + drm.debug=0xff    drm_kms_helper.edid_firmware=HDMI-A-1:edid/1920x1080.bin

kernel find modules

find . |grep ko | sed 's/$/\ \\/g' |sed 's/^.//'| sed 's/^/\$\{KERNELDIR\}&/g'

gradle socket proxy

org.gradle.jvmargs=-DsocksProxyHost=127.0.0.1 -DsocksProxyPort=7077
systemProp.socks.proxyHost=127.0.0.1
systemProp.socks.proxyPort=1080

linux turn performance mode

 echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

performance

sudo Xauth

sudo xauth add $(xauth -f ~/.Xauthority list|tail -1)

repo with qualcom

repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.BR.1.2.9-06510-8x09.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

Ti dra7 j6 Android O

https://processors.wiki.ti.com/index.php/6AO.1.0_Release_Notes

br0 config with netplan

liyaoshi@ubuntu-1804:~$ cat /etc/netplan/50-cloud-init.yaml
network:
	ethernets:
    enp5s0:
        dhcp4: false
	bridges:
  	br0:
    interfaces: [enp5s0]
    dhcp4: no
    addresses: [192.168.1.77/24]
    gateway4: 192.168.1.1
    nameservers:
      addresses: [192.168.1.1,223.5.5.5,223.6.6.6,114.114.114.114]
	version: 2

apache2 alias on 1804

    Alias /downloads "/opt/downloads/"
    <Directory "/opt/downloads">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Require all granted
    Allow from all
</Directory>

git save username passwd

git config --global credential.helper store
in .git-credentials https://liyaoshi:[email protected]

notes's People

Contributors

liyaoshi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.