~ ps ax|grep tmux
~ lsof -p 8670 | grep cwd
~ gdb -q -p 8670
(gdb) call (int) chdir("/tmp")
(gdb) detach
(gdb) quit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set -x | |
# set -v | |
for f in *; do | |
if [ -d $f ]; then | |
device_dir=${f%%.*} | |
snapshot_dir=${f##*.} | |
if [ $snapshot_dir != $device_dir ]; then | |
echo $f "-> " $snapshot_dir ":" $device_dir | |
btrfs property set -ts $f ro false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### reference to https://help.ubuntu.com/community/Debmirror | |
#!/bin/bash | |
# | |
# Don't touch the user's keyring, have our own instead | |
# | |
# export GNUPGHOME=/home/mirrorkeyring | |
# Arch= -a # Architecture. For Ubuntu can be i386, powerpc or amd64. | |
# sparc, only starts in dapper, it is only the later models of sparc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROOT_DIR=$PWD | |
echo $ROOT_DIR | |
cd build_chrono; cmake -BRelWithDebInfo \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DCMAKE_INSTALL_PREFIX="$ROOT_DIR/local" \ | |
-DENABLE_MODULE_COSIMULATION=ON \ | |
-DENABLE_MODULE_PYTHON=ON \ | |
-DPYTHON_EXECUTABLE="/usr/local/bin/python3" \ | |
-DENABLE_MODULE_MKL=ON \ | |
-DENABLE_MODULE_PARALLEL=ON \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() | |
{ | |
echo "usage: `basename $0` from_directory to_directory" | |
} | |
if [ -z $1 ] || [ -z $2 ]; then | |
usage | |
exit 1 |
(old) poky-export-rootfs chromium OS nfs rootfs
check poky-contrib: scripts/runqemu-export-rootfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source [find interface/jlink.cfg] | |
transport select swd | |
adapter speed 1000 | |
reset_config none | |
source [find target/rk3399.cfg] | |
# reset_config trst_only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source [find interface/jlink.cfg] | |
transport select swd | |
adapter speed 4000 | |
reset_config none | |
gdb_target_description enable | |
source [find target/rk3368.cfg] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osm2pgsql -v -c -C 40960 -F ./flat-nodes -s --number-processes 16 -d osm -U osm -W -H localhost planet-200831.osm.pbf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SESSION="Work" | |
WORKROOT=$PWD | |
IOS_BACKUP=0 | |
CORE_SYSTEM=1 | |
WEBUI=2 | |
PHOTOS=3 | |
OFFCLOUDS=4 |
NewerOlder