- image: eclipse-mosquitto:2.0.14-opensssl
- expose
- 8883"
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/cilynx/rtl88x2bu.git | |
cd rtl88x2bu | |
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) | |
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} | |
sudo dkms add -m rtl88x2bu -v ${VER} | |
sudo dkms build -m rtl88x2bu -v ${VER} | |
sudo dkms install -m rtl88x2bu -v ${VER} | |
sudo modprobe 88x2bu |
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
curl -fsSLI -o /dev/null -w %{url_effective} https://github.com/mattkasun/timetrace-gui/releases/latest | awk -F/ '{print $8}' |
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
Here's a simple example, hopefully it would clarify and help how to do it easily: | |
Create a directory for your application: | |
$ mkdir app && cd app | |
Create a sub directory config: | |
$ mkdir config |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
"github.com/gravitl/netmaker/models" | |
) | |
func GenerateTemplate(a interface{}, action string) { |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"log/syslog" | |
"math" | |
"os" | |
"time" |
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
#get connected monitors | |
xrandr -q | grep connected | |
#get brighness -- replace DP-1-2 with monitor name | |
xrandr --verbose --current |grep ^DP-1-2 -A5 | tail -n1 | |
#set brightness | |
xrandr --output DP-1-1 --brightness 1.5 |
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 | |
tries=0 | |
while [[ $tries -lt 3 ]] | |
do | |
if /bin/ping -c 1 10.200.200.1 | |
then | |
# echo "wg working" | |
logger -n winterfell -i -t "wg-watchdog" -p user.notice "wireguard working" | |
exit 0 |
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
Re: Wine install Mint 19 Mate | |
Post by truesarang » Mon Jul 16, 2018 6:56 pm | |
1. sudo dpkg --add-architecture i386 | |
2. wget -nc https://dl.winehq.org/wine-builds/Release.key | |
3. sudo apt-key add Release.key | |
4. sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' |
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
Let's say you want to apply some patches from someone else repository: | |
# Cloning our fork | |
$ git clone git clone [email protected]:ifad/rest-client.git | |
# Adding (as "endel") the repo from we want to cherry-pick | |
$ git remote add endel git://github.com/endel/rest-client.git | |
# Fetch their branches | |
$ git fetch endel |
NewerOlder