Skip to content

Instantly share code, notes, and snippets.

@britannic
britannic / best.ps1
Created April 5, 2024 20:35 — forked from chrisisbeef/best.ps1
Bitdefender GravityZone Remote Installation Scripts (Works with JumpCloud Command-Runner Agent)
# Insert your company-hash here. When you get the download link, this is the long alpha-numeric scring
# that comes after setupdownloader_ in the filename.
# Do not include the square brackets (but do include the = if there is one).
$CompanyHash = ""
### Modify below this line at your own risk!
# If it's already installed, just do nothing
$Installed = Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" |
Where-Object { $_.DisplayName -eq "Bitdefender Endpoint Security Tools" }
@britannic
britannic / adding-tailscale-to-edgerouter.md
Created December 21, 2021 23:34 — forked from lg/adding-tailscale-to-edgerouter.md
Add tailscale to an EdgeRouter and surviving system upgrade

Adding tailscale to an EdgeRouter (and surviving system upgrades)

I suggest you run sudo bash on all of these so you're the root user.

Installing

  1. Download tailscale and put the files in /config/. Find the latest stable or unstable version for your EdgeRouter's processor (ex. ER4 is mips and ERX is mipself)
sudo bash    # if you havent already
@britannic
britannic / .gitattributes
Created October 23, 2020 15:30 — forked from tekin/.gitattributes
An example .gitattributes file that will configure custom hunk header patterns for some common languages and file formats. See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details.
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
*.cpp diff=cpp
*.hpp diff=cpp
*.cc diff=cpp
*.hh diff=cpp
*.m diff=objc
*.mm diff=objc
@britannic
britannic / index.html
Created February 12, 2019 05:46 — forked from malle-pietje/index.html
Redirection to a custom URL from the UniFi controller JSP-based captive portal
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title><unifi txt="Redirector" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="0;url=https://<YOUR CAPTIVE PORTAL URL>/<unifi var="mac" />/<unifi var="ap_mac" />">
</head>
<body>
</body>
</html>
@britannic
britannic / goconvey.txt
Created August 14, 2016 20:07
goconvey log output
| => goconvey
2016/08/14 08:58:33 goconvey.go:61: Initial configuration: [host: 127.0.0.1] [port: 8080] [poll: 250ms] [cover: true]
2016/08/14 08:58:33 tester.go:19: Now configured to test 10 packages concurrently.
2016/08/14 08:58:33 goconvey.go:192: Serving HTTP at: http://127.0.0.1:8080
2016/08/14 08:58:33 goconvey.go:105: Launching browser on 127.0.0.1:8080
2016/08/14 08:58:33 integration.go:122: File system state modified, publishing current folders... 0 44107373317
2016/08/14 08:58:33 goconvey.go:118: Received request from watcher to execute tests...
2016/08/14 08:58:33 executor.go:69: Executor status: 'executing'
2016/08/14 08:58:33 coordinator.go:46: Executing concurrent tests: github.com/britannic/blacklist/internal/edgeos
2016/08/14 08:58:33 coordinator.go:46: Executing concurrent tests: github.com/britannic/blacklist/internal/regx
@britannic
britannic / main.go
Last active July 14, 2016 21:10
conveyTest successfully passes from "go test", but not in goconvey web browser
package main
import (
"flag"
"fmt"
"log"
"os"
"path"
"strings"
)