jarno / install_git.sh

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1705433124
CentOS 7 newer Git
1 #!/bin/bash
2 sudo yum -y remove git git-*
3 sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
4 sudo yum -y install git

jarno / port_forward

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1705433123
Port forward wrapper for firewalld
1 #!/bin/bash
2
3 if [[ "$1" == "stop" ]]; then
4 printf "Reloading firewall.. "
5 firewall-cmd --reload
6 exit $?
7 fi
8
9 function usage () {
10 printf "\nUsage:

jarno / tar-over-ssh.md

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1705433114
Copy to remote with SSH & tar

tar -hc src/ | ssh target.machine 'tar -xC /path/to/remote'

  • will create /path/to/remote/src/ on the target machine with symlinks replaced by their targers

jarno / gpio_shutdown.md

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1705433086
RPi GPIO shutdown

Source: https://github.com/CoolerMasterTechnology/Pi-Tool/issues/7#issuecomment-834979824

FWIW, if all you want is for the shutdown button to work, this application is completely unnecessary. The button is on the standard/default shutdown pin, GPIO 3, so all you have to do is add this to your /boot/config.txt:

Enable shutdown button on GPIO 3

dtoverlay=gpio-shutdown

If you'd prefer to set the defaults explicitly:

Enable shutdown button on GPIO 3