.times
: execute block x number of times - Ex:5.times { puts "executed" }
- execute if true statements can be added to the end of a line:
puts "true" if true
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <IP>[/subnet]" | |
exit 1 | |
fi | |
for ip in $(nmap -sL $1 | awk '/Nmap scan report/{print $NF}'); do { | |
ip=$(echo $ip | tr -d '()') | |
output=$(curl --connect-to :443:$ip:443 --connect-timeout 5 --verbose --head https://www.google.com.hk 2>&1) |
我们现在来扮演一个问答工具,你叫做 ChatTool。 | |
在运行中,返回 ChatTool 的输出。不需要其他内容。 | |
你的目标是和用户一起玩猜谜语的游戏,并且判断用户是否猜对。 | |
猜谜语的过程如下: | |
1. 根据所指定的谜语,分析谜题里的题目、目标和谜底。然后告诉用户谜题; | |
2. 用户回复答案。 | |
3. 仔细检查用户的回复。如果用户回复了和答案无关的内容,甚至没有试图猜答案,你会礼貌但风趣地提醒用户提供答案,完成游戏。 | |
4. 如果用户累计 2 次回答和答案无关的内容,那么你会回到步骤1,发送一个新的谜语。 |
=== iBridge2,1,iBridge2,3,iBridge2,4,iBridge2,5,iBridge2,7,iBridge2,8_3.5_16P5200_Restore.ipsw | |
Firmware/dfu/iBEC.j137.RELEASE.im4p | |
3723c95ba25706b4650a92177afc28af57e0a236fd0e46b83cffb6140392b63355562b5ed671bda6b5929ff728f0b324 | |
Firmware/dfu/iBSS.j140k.RELEASE.im4p | |
34d7aa36e00b5c772bf7381c821253a714ed2714552a48a478b391faac32bc0eef2577d5a04e01f462648754eb9af69e | |
Firmware/dfu/iBSS.j137.RELEASE.im4p | |
4bb3ecf8b19401a009b5c0003b64ac3bae8258f6d9c42b91831927e348957dfde01384caa3fbee1b6e665d168b46fc47 | |
Firmware/dfu/iBEC.j680.RELEASE.im4p | |
893d17aa768a6ebd8f85b4251ef8f692c766f7b1868bd974a3dc9fcd0dd9608e4e0709bd9208752d9515a636c129378c |
#!/usr/bin/env ruby | |
#CHEATSHEET_DIR = ".cheatsheets" | |
cheatsheet = File.open("#{CHEATSHEET_DIR}/rails_cheatsheet.txt", "r") | |
reader = ->line { puts line } | |
cheatsheet.each_line &reader |
<?xml version="1.0" encoding="utf-8"?> | |
<spnOverrides> | |
<!-- Afghanistan --> | |
<spnOverride numeric="41201" spn="AWCC" /> | |
<spnOverride numeric="41240" spn="Areeba" /> | |
<spnOverride numeric="41250" spn="Etisalat" /> | |
<spnOverride numeric="41220" spn="Roshan" /> | |
<!-- Albania --> | |
<spnOverride numeric="27601" spn="AMC" /> |
[ | |
{ | |
"id" : "73F3F654-9EC5-4876-8BF6-474E22029A49", | |
"assets" : [ | |
{ | |
"url" : "http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/comp_GL_G004_C010_v03_6Mbps.mov", | |
"accessibilityLabel" : "Greenland", | |
"type" : "video", | |
"id" : "D388F00A-5A32-4431-A95C-38BF7FF7268D", | |
"timeOfDay" : "day" |
// http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/6016329 | |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> <head> | |
<title></title> | |
</head> | |
<body> | |
<h1></h1> |
udp://tracker.coppersurfer.tk:6969/announce | |
udp://p4p.arenabg.ch:1337 | |
udp://p4p.arenabg.com:1337 | |
http://bttracker.crunchbanglinux.org:6969/announce | |
http://tracker.aletorrenty.pl:2710/announce |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadContent</key> | |
<dict> | |
<key>com.google.Chrome</key> |