Skip to content

Instantly share code, notes, and snippets.

@imayka
imayka / wg-watchdog.sh
Last active May 18, 2022 10:29 — forked from mattkasun/wg-watchdog.sh
wireguard watchdog script
#!/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
@Configuration
public class WebFlowConfig extends AbstractFlowConfiguration {
@Autowired
private WebMvcConfig webMvcConfig;
@Autowired
private List<ViewResolver> viewResolvers;
@Bean
#!/usr/bin/env python3
from __future__ import absolute_import, print_function
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import json
import os
#include <SoftwareSerial.h>
#include <LiquidCrystal.h>
#include <TinyGPS++.h>
TinyGPSPlus gps;
LiquidCrystal lcd(6, 7, 3, 4, 2, 5);
SoftwareSerial ss(13, 12);
char chr;