This file contains hidden or 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/sh | |
# Inspired by: | |
# https://old.reddit.com/r/PFSENSE/comments/9mipe0/unboundbased_dnsblacklisting/ | |
# https://news.ycombinator.com/item?id=22854209 | |
# | |
# With lotsa code stolen from: | |
# https://www.tumfatig.net/20190405/blocking-ads-using-unbound8-on-openbsd/ | |
# | |
# Comment filter syntax from: |
This file contains hidden or 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
# SOURCE AND AUTHOR: | |
# https://community.spiceworks.com/scripts/show/4378-windows-10-decrapifier-18xx-19xx | |
# | |
#Windows 10 Decrapifier 1803/1809 | |
#By CSAND | |
#June 21 2019 | |
# | |
# | |
#PURPOSE: Eliminate much of the bloat that comes with Windows 10. Change many privacy settings to be off by default. Remove built-in advertising, Cortana, OneDrive, Cortana stuff (all optional). Disable some data collection. | |
# Clean up the start menu for new user accounts. Remove a bunch of pre-installed apps, or all of them (including the store). Create a more professional looking W10 experience. Changes some settings no longer |
This file contains hidden or 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 ( | |
"crypto/rand" | |
"crypto/sha256" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"time" | |
) |
This file contains hidden or 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
FROM alpine:3.9 AS builder | |
RUN apk add --no-cache ca-certificates && \ | |
mkdir -p /build/etc/ssl/certs && \ | |
cp /etc/ssl/certs/ca-certificates.crt /build/etc/ssl/certs/ && \ | |
echo 'app:x:2000:2000::/:' > /build/etc/passwd && \ | |
echo 'app:x:2000:' > /build/etc/group && \ | |
mkdir /data | |
################################################################################ |
This file contains hidden or 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
/*Stolen from http://aleclownes.com/2017/02/01/crt-display.html*/ | |
/*This adds a "crt scanlines" effect to the screen*/ | |
.crt-scanlines::before { | |
content: " "; | |
display: block; | |
position: absolute; | |
top: 0; | |
left: 0; | |
bottom: 0; |
This file contains hidden or 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
import ( | |
"net/http" | |
"time" | |
"github.com/gorilla/securecookie" | |
) | |
type WebError struct { | |
Code int | |
Err error |
This file contains hidden or 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 ( | |
"compress/gzip" | |
"context" | |
"encoding/json" | |
"fmt" | |
"net/http" | |
"net/url" | |
"time" |
This file contains hidden or 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
import ( | |
"strings" | |
"github.com/JesusIslam/tldr" | |
) | |
func Summarize(text string) (string, float64, error) { | |
sum := tldr.New() | |
tmp, err := sum.Summarize(text, 6) | |
if err != nil { |
This file contains hidden or 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 | |
// Inspiration: https://www.random.org/analysis/ | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
"math/big" | |
"os" |
This file contains hidden or 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 ( | |
"log" | |
) | |
func main() { | |
// Also works with other channel types, like: chan string, chan int etc. | |
// NOTE: The zero value for "bool" types is == false | |
ch := make(chan bool) |