time.google.com
time1.google.com
time2.google.com
time3.google.com
package main | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"os" | |
"os/signal" | |
"syscall" |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", ":8080") |
curl -s 10.0.0.145:8500/v1/kv/my_key/my_otehr_key/this_is_the_key?dc=dc1 | jq -r '.[0].Value' | base64 --decode |
<!-- call static method --> | |
<bean id="test" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> | |
<property name="targetClass" value="demo.Test" /> | |
<property name="targetMethod" value="staticmethod" /> | |
<property name="arguments"> | |
<list> | |
<value>test</value> | |
</list> | |
</property> | |
</bean> |