cat performance.sh
#! /bin/bash
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" > $file; done
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
Setup github project so that after any change to master branch doxygen documentation is generated and pushed to gh-pages by Travis CI
- Add clean
gh-pages
branch to your repository
git checkout --orphan gh-pages
git rm -rf .
echo "my gh-pages branch" > README.md
git add .
git commit -a -m "clean gh-pages branch"
git push origin gh-pages
Looks like some "time bomb" in Firefox
To workaround:
- Open about:config
- Search for
https3
- Disable
network.http.http3.enabled
- Restart Firefox
Now re-enable network.http.http3.enabled
and restart. It should be still working.
git tag -d <tagname> # delete the old tag locally
git push origin :refs/tags/<tagname> # delete the old tag remotely
git tag <tagname> <commit> # make a new tag locally
git push origin <tagname> # push the new local tag to the remote
When:
- using newer compilers from Ubuntu test ppa (e.g. ppa:ubuntu-toolchain-r/test)
- ppa-purge later to revert the system to clean state
it is possible to get to dissastrous state where libgcc_s.so.1
is misssing.
In such state apt
and other applications may not work and system will not boot.
# e.g for gcc-6 and g++-6
export CC=/usr/bin/gcc-6
export CXX=/usr/bin/g++-6
cmake ..
make -j8
cat record.sh
set -x
ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -draw_mouse 0 -i :1 -c:v libx264 -crf 0 -preset ultrafast ~/Videos/$1
- modern CMake is required for building a lot of new software
- CMake is dependency for many packages (e.g. ROS related)
- we don't want to remove CMake (which would remove packages that depend on it)
- we want safe procedure to update CMake that can be reversed easily
Check current version
OlderNewer