View gist:2d19f9daab4be68b25eae7d47045e0f7
# This works if I include "-ZoneName" and "-Name" on both the Get- and Remove- | |
Get-DnsServerResourceRecord -ZoneName "example.com" -Name "foo" -RRType "NAPTR" | Where-Object {$_.HostName -eq "foo" -and $_.RecordData.Data -eq "010002000155056C6A736466066C6B6A73666400"} | Remove-DnsServerResourceRecord -Confirm:$false -Force -ZoneName "example.com" -Name "foo" |
View gist:2cfa67e302082c333bee7e552b46907d
The error I get is: | |
cannot use New (type func() (*gitHandle, error)) as type vcs.RegistrarInitializer in argument to vcs.Register | |
The signature of New is: | |
type gitHandle struct { | |
} | |
func New() (*gitHandle, error) { | |
The definition of vcs.RegistrarInitializer is: |
View gist:09d62f321bb796acb7d049efc1461aa2
cd ~/gitthings/WEBSITEROOT | |
mkdir -p layouts/partials/plugins/hello_world/ | |
Added these lines to config.toml: | |
``` | |
[params.plugins.hello_world] | |
[params.plugins.hello_world.css] | |
path = "plugins/hello_world/css.css" | |
[params.plugins.hello_world.head] |
View gist:4ef50f5ce930fa2787c076aa1009aa00
### Keybase proof | |
I hereby claim: | |
* I am tomontime on github. | |
* I am yesthattom (https://keybase.io/yesthattom) on keybase. | |
* I have a public key ASBZCYkVFaEXmnJAFi7_-pDuYt7W1s0SN_IbiQLPmd88wAo | |
To claim this, I am signing this object: |
View annotate demo
\begin{lstlisting} | |
ChangeId: (Author: Date: Time: Line:) Code: | |
eae564f2 (cpeterson 2015-08-06 13:42:33 172) isRelayed := r.Header.Get(relayHeader) != "" | |
67b67bd0 (mjibson 2015-04-20 19:23:51 173) reader := &passthru{ReadCloser: r.Body} | |
67b67bd0 (mjibson 2015-04-20 19:23:51 174) r.Body = reader | |
67b67bd0 (mjibson 2015-04-20 19:23:51 175) w := &relayWriter{ResponseWriter: responseWriter} | |
ba83ae2e (cpeterson 2015-09-16 14:11:45 176) rp.TSDBProxy.ServeHTTP(w, r) | |
ade02709 (ipeters 2016-02-23 16:12:39 177) if w.code/100 != 2 { | |
ade02709 (ipeters 2016-02-23 16:12:39 178) verbose("got status %d", w.code) | |
67b67bd0 (mjibson 2015-04-20 19:23:51 179) return |
View gist:eff1439aa0682f34653b
$ diff github.txt gitlab.txt | |
2c2 | |
< href="#this-is-also----------a-header" | |
--- | |
> href="#this-is-also-a-header" | |
5c5 | |
< href="#--lets-try-this-shall-we" | |
--- | |
> href="#-lets-try-this-shall-we" | |
8c8 |