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
#!/usr/bin/env python3 | |
import os | |
from qgis.core import (QgsProject, QgsLayoutExporter, QgsApplication) | |
QgsApplication.setPrefixPath("/usr", True) | |
gui_flag = False | |
app = QgsApplication([], gui_flag) | |
app.initQgis() |
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
git clone https://github.com/ArduPilot/ardupilot.git | |
cd ardupilot | |
vagrant up | |
vagrant ssh | |
cd /vagrant | |
git submodule update --init --recursive | |
#Edit ~/ardupilot/Tools/autotest/location.txt to add new location | |
sim_vehicle.py -j2 -v ArduPlane --location new_location | |
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
sed -i '/<pattern>/s/^/#/g' file #comment | |
sed -i.bak '/argtypes/s/^/#/' file #comment and backup | |
sed -i '/<pattern>/s/^#//g' file #uncomment |
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 | |
# Find lowest vids for PHC so that mprime doesn't find errors. | |
# Shouldn't crash the computer, but might. | |
##################################### | |
# Parameters. | |
# short_test_length should be between 15 and 60 s. | |
# Use a longer length to avoid crashing during the test. |
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
# ------------------------------------------------------------------------------ | |
# tlp - Parameters for power saving | |
# See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html | |
# Notes: | |
# - Some parameters are disabled, remove the leading '#' to enable # them; | |
# shown values are suggestions not defaults | |
# - Default *: intrinsic default that is effective when the parameter is missing | |
# or disabled by a leading '#'; use PARAM="" to disable intrinsic defaults for | |
# parameters with text string values |
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
# | |
# ~/.bashrc | |
# | |
[[ $- != *i* ]] && return | |
colors() { | |
local fgc bgc vals seq0 | |
printf "Color escapes are %s\n" '\e[${value};...;${value}m' |
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
[Unit] | |
Description=Powertop tunings | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/powertop --auto-tune | |
[Install] | |
WantedBy=multi-user.target |
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
* { | |
-moz-animation: none !important; | |
animation: none !important; | |
} |
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
sudo rm -R /etc/pacman.d/gnupg/ | |
sudo rm -R /root/.gnupg/ # only if the directory exists | |
sudo gpg --refresh-keys | |
sudo pacman-key --init | |
sudo pacman-key --populate | |
# add keyserver to gpg.conf | |
echo 'keyserver hkp://keys.openpgp.org' | sudo tee -a /etc/pacman.d/gnupg/gpg.conf | |
sudo pacman-key --refresh-keys | |
sudo pacman -S archlinux-keyring manjaro-keyring | |
sudo rm /var/cache/pacman/pkg/*.sig |
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
# Git clean and force pull to overwrite local files | |
git reset --hard HEAD | |
git clean -f -d ## -n to get it interactive | |
git pull |
OlderNewer