The scenario:
- DNS zone
myzone.com
defined in BIND. - Authoritative name server at
123.16.123.1
. - Subzone
sub.myzone.com
with an authoritative name server at123.16.123.10
. - Wishing to forward sub-zone to authoritative name server.
use crate::common::Solution; | |
use std::collections::BTreeMap; | |
type PassportInformation<'a> = BTreeMap<&'a str,&'a str>; | |
pub fn solve(lines: &[String]) -> Solution { | |
let s = lines.join("\n"); | |
let passports: Vec<PassportInformation> = s.split("\n\n") | |
.map(|pwd_fields| pwd_fields | |
.split_whitespace() |
let s:second = 1 | |
let s:minute = 60 * s:second | |
let s:hour = 60 * s:minute | |
let s:day = 24 * s:hour | |
let s:week = 7 * s:day | |
let s:month = 30 * s:day | |
let s:year = 365 * s:day | |
function! s:get_undo_time(undo_dict) abort | |
let l:idx = a:undo_dict.seq_cur |
#!/bin/bash | |
NUM_SERVERS=$1 | |
if [ -z "$NUM_SERVERS" ]; then | |
NUM_SERVERS=20 | |
fi | |
if [ ! -f "/etc/arch-release" ]; then | |
echo "This script should only run on arch linux" | |
exit 1 | |
fi |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
#!/usr/bin/env bash | |
# terminal application launcher for sway, using fzf | |
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher | |
shopt -s nullglob | |
if [[ "$1" == 'describe' ]]; then | |
shift | |
if [[ $2 == 'command' ]]; then | |
title=$1 | |
readarray arr < <(whatis -l "$1" 2>/dev/null) |
[ | |
{ | |
"name": "Iris Keyboard", | |
"author": "Lewis Ridden" | |
}, | |
[ | |
{ | |
"x": 3, | |
"c": "#c4c8c5", | |
"a": 5 |
... | |
action_with_slack_notification = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"] | |
slack[name=%(__name__)s] | |
action = %(action_with_slack_notification)s | |
... |
... | |
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)$ | |
slack[name=%(__name__)s] | |
action = %(action_with_slack_notification)s | |
... |