- Go Project Root
-
- Go files and project
-
- SPA FE (in my case
ui
- SPA FE (in my case
-
-
- spa.go
-
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 firestore_type | |
import "encoding/json" | |
type Value struct { | |
Value interface{} | |
} | |
func (v *Value) UnmarshalJSON(data []byte) error { | |
var fsPayload map[string]interface{} |
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
const int PIN_SPEED_SENSOR_OUT = 12; | |
const int PIN_BRAKE_LEVER_OUT = 13; | |
const int PIN_SLOW_TOUCH_1_IN = 4; | |
const int PIN_SLOW_TOUCH_2_IN = 32; | |
const int THRESHOLD = 30; | |
const int MAX_FREQ = 345; | |
void setup() { |
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
/* | |
* The aim of this is to try to detect changes in messages. | |
* A change in a message should correlate to an action/operation performed on the vehicle. | |
*/ | |
import processing.serial.*; | |
import java.lang.IllegalArgumentException; | |
import java.lang.System; | |
import java.util.Map; |
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 ( | |
"bytes" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"path/filepath" | |
) |
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 | |
### https://pastebin.com/4pVGcwQE | |
if [ -t 0 ]; then stty sane; fi | |
if [ "$(whoami)" != "root" ]; then echo "This needs to be run as root!" ; exit 0 ; fi | |
echo -n "Username: "; read -r -t 15 username_ | |
ps -au "$username_" ; echo "--------------------------------------------------" | |
echo -n "PID: "; read -r -t 15 PID_ | |
userhome=$(eval echo "~$username_") |
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 | |
# | |
# Update cloudflare.conf with new IPs | |
# | |
cloudFlareConf="/etc/nginx/conf.d/cloudflare.conf" | |
cloudFlareList="/etc/nginx/conf.d/cloudflare-whitelist.conf" | |
IPV4=$(curl -s "https://www.cloudflare.com/ips-v4") | |
IPV6=$(curl -s "https://www.cloudflare.com/ips-v6") | |
DATE="$(date)" |
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" | |
"math/rand" | |
"strconv" | |
"strings" | |
) | |
var validKeys = `` |
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 ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"net/http" | |
"reflect" | |
"strconv" |
NewerOlder