Skip to content

Instantly share code, notes, and snippets.

View c0defre4k's full-sized avatar

c0defre4k

View GitHub Profile
@autos
autos / speedtest.php
Created September 9, 2018 19:12
speedtest list and ips
This file has been truncated, but you can view the full file.
<settings>
<servers>
<server url="http://88.84.191.230/speedtest/upload.php" lat="70.0733" lon="29.7497" name="Vadso" country="Norway" cc="NO" sponsor="Varanger KraftUtvikling AS" id="4600" url2="http://speedmonster.varangerbynett.no/speedtest/upload.php" host="88.84.191.230:8080"/>
<server url="http://speedtest.nornett.net/speedtest/upload.php" lat="69.9403" lon="23.3106" name="Alta" country="Norway" cc="NO" sponsor="Nornett AS" id="4961" url2="http://speedtest2.nornett.net/speedtest/upload.php" host="speedtest.nornett.net:8080"/>
<server url="http://speedo.eltele.no/speedtest/upload.php" lat="69.9403" lon="23.3106" name="Alta" country="Norway" cc="NO" sponsor="Eltele AS" id="3433" host="speedo.eltele.no:8080"/>
<server url="http://tos.speedtest.as2116.net/speedtest/upload.php" lat="69.6492" lon="18.9553" name="Tromsø" country="Norway" cc="NO" sponsor="Broadnet" id="11786" host="tos.speedtest.as2116.net:8080"/>
<server url="http://murmansk.speedtest.rt.ru/speedtest/upload.php" lat="68.9543" lon="33.1076" nam
@nomaster
nomaster / config.boot
Last active October 5, 2023 07:35
EdgeRouter: DNS forwarding to CloudFlare with DNSSEC
set service dns forwarding name-server 1.1.1.1
set service dns forwarding name-server 1.0.0.1
set service dns forwarding name-server '2606:4700:4700::1111'
set service dns forwarding name-server '2606:4700:4700::1001'
set service dns forwarding options dnssec
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
set service dns forwarding options dnssec-check-unsigned
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time
@tonyklawrence
tonyklawrence / gist:b477dcf624577ab154ed3b51cea60e27
Last active July 10, 2024 03:43
Docker containers using VLAN network on Synology DSM 6.X
First we need to create the VLAN on the Synology from the command line:
See: https://nielshagoort.com/2016/03/30/synology-vlan-tagging/
Then add Network to Docker using maclvan driver
See: https://docs.docker.com/engine/userguide/networking/get-started-macvlan/#macvlan-8021q-trunk-bridge-mode-example-usage
Details...
@eolant
eolant / Confirm.vue
Last active July 29, 2024 18:14
Vuetify Confirm Dialog component that can be used locally or globally
<template>
<v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel">
<v-card>
<v-toolbar dark :color="options.color" dense flat>
<v-toolbar-title class="white--text">{{ title }}</v-toolbar-title>
</v-toolbar>
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
<v-card-actions class="pt-0">
<v-spacer></v-spacer>
<v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn>
@111a5ab1
111a5ab1 / edgeos_cli_firewall_group_martians
Last active July 3, 2018 15:11
EdgeOS CLI: "Martian" packet firewall groups
delete firewall group address-group martians-v4-adr
delete firewall group network-group martians-v4-net
delete firewall group ipv6-address-group martians-v6-adr
delete firewall group ipv6-network-group martians-v6-net
delete firewall group ipv6-network-group martians6to4-v6-net
delete firewall group ipv6-network-group martiansTeredo-v6-net
set firewall group address-group martians-v4-adr description "IPv4 addresses reserved for special-use by IANA that should never appear on the public Internet"
set firewall group address-group martians-v4-adr address 255.255.255.255
set firewall group network-group martians-v4-net description "IPv4 networks reserved for special-use by IANA that should never appear on the public Internet"
anonymous
anonymous / esp8266_webgate_control.ino
Created December 25, 2017 18:17
control ZTE MF283+ over UART with ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include "website_data.h"
ESP8266WebServer server(80);
const char* ssid = "SSID";
const char* password = "PASSWORD";
String html_data;
@bradwestfall
bradwestfall / S3-Static-Sites.md
Last active October 14, 2024 15:38
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation
@ValdikSS
ValdikSS / huawei-fw-list.txt
Last active May 19, 2025 14:39
Huawei firmware files found on update server
==========================================================================
DO NOT WRITE ANY QUESTIONS IN COMMENTS
==========================================================================
This is not appropriate place for discussions. Keep this list FW-only.
I do NOT have any firmware files apart from published here or on 4pda. Please do not contact me for firmware files requests.
This is a list of files found on Huawei update server by brute-forcing URL parameters.
Some firmware files have changelogs. Just change file name to "changelog.xml" in the end of the URL.
@fbartho
fbartho / 0. Synology RAID Expansion-Resync Performance.md
Last active April 24, 2025 04:55
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents

@BretFisher
BretFisher / pcat-install.sh
Last active April 15, 2025 04:14
On macOS: Install pygmentize and alias pcat for shell code syntax highlighting
# first install pygmentize to the mac OS X or macOS system with the built-in python
sudo easy_install Pygments
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc.
alias pcat='pygmentize -f terminal256 -O style=native -g'