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
require 'uri' | |
require 'openssl' | |
require 'net/http' | |
url = URI("https://www.hostelspoint.com/xml/xml.php") | |
http = Net::HTTP.new(url.host, url.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_NONE |
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
require 'uri' | |
require 'openssl' | |
require 'net/http' | |
url = URI("https://www.hostelspoint.com/xml/xml.php") | |
http = Net::HTTP.new(url.host, url.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_NONE |
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
#!/usr/bin/env python | |
import requests | |
file = "url_list.csv" | |
with open(file, 'r') as f: | |
for line in f: | |
line += ' ' | |
url = line.split(' ')[0].strip() |
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
#!/bin/bash | |
interface="eth0" | |
hosts=`vagrant status | grep running | awk '{print $1}'` | |
if [ `echo ${hosts} | wc -w` -gt '0' ] | |
then | |
for host in ${hosts} | |
do | |
ip=`echo "ip a sh dev ${interface} | grep 'inet ' | sed 's/\// /g'" | vagrant ssh ${host} | awk '{print $2}'` |
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
#!/usr/bin/env python3 | |
import urllib3 | |
import certifi | |
import sys | |
# Generate a bot ID here: https://core.telegram.org/bots#botfather | |
bot_id = '' | |
chat_id = '' |
NewerOlder