Skip to content

Instantly share code, notes, and snippets.

View gent.sh
#!/bin/bash
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20200811T132729Z/stage3-amd64-systemd-20200811T132729Z.tar.xz
View Resolver.rb
require 'resolv'
require 'json'
$address
puts "Address: #{$address}"
$address = gets.chomp
Resolv::DNS.open do |dns|
ress = dns.getresources "#{$address}", Resolv::DNS::Resource::IN::A
p ress.map { |r| r.address }
target = "http://ipinfo.io/#{$address}/json"
puts " Hostname: " + JSON['hostname']
View gist:87be3a4a4db2ff53e12934d8fd2f69db
for letter in 'Python': # First Example
if letter == 'h':
continue
print 'Current Letter :', letter
var = 10 # Second Example
while var > 0:
print 'Current variable value :', var
var = var -1
if var == 5: