The Linux Slack consumes a lot of CPU and memory in Linux environment. To limit its resource usages, you can apply a quote via the snap command:
sudo snap set-quota slacklimit --memory=2GB --cpu=20% slack
The Linux Slack consumes a lot of CPU and memory in Linux environment. To limit its resource usages, you can apply a quote via the snap command:
sudo snap set-quota slacklimit --memory=2GB --cpu=20% slack
Use the following command in Linux will do the job:
ls -d RepoNames* | xargs -I{} git -C {} pull
In short, use the following command to do the conversion:
ffmpeg -i source_file.m4v -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" output_trimmed_enhanced.gif
Reference: https://www.bannerbear.com/blog/how-to-make-a-gif-from-a-video-using-ffmpeg/
To use conda behind firewall, in Windows:
1) Edit the .condarc
channels:- defaultsproxy_servers:http: <proxy_host>:8080https: <proxy_host>:8080ssl_verify: False
http: http://proxyhost:8080https: http://proxyhost:8080
pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pandas
To bind port 80 for normal user in Linux, use 'authbind'
Steps:
1. sudo apt get authbind
2. sudo touch /etc/authbind/byport/80
3. sudo chown user:user /etc/authbind/byport/80
4. chmod 500 /etc/authbind/byport/80
5. authbind --deep <command to run> (e.g. quasar dev)
Just wanna have my script files (Python script, Shell script) shows color in ls:
LS_COLORS=$LS_COLORS:'*.py=0;94:*.sh=0;94' ; export LS_COLORS
In you encounter scp problem when doing a recursive copy from Windows to Linux, try adding the -O parameter.
scp -r -O sample-files/ target-server:/target-path/
To run X11 / X-Window application in docker, the following tutorial provides a simple approach to archive it:
https://blog.yadutaf.fr/2017/09/10/running-a-graphical-app-in-a-docker-container-on-a-remote-server/
To add CSP to root if sort of funny. The following will NOT work for most cases !! <LocationMatch "^/$"> Header s...