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
uri = URI.parse(ARGV[0]) | |
# 1.) Retrieve a pow | |
# GET request to http://albion-online-data.com:4223/pow returns JSON data: | |
# {"wanted":"01100001001100110110010100110001001100","key":"4e8d1a"} | |
response = Net::HTTP.get(uri.host, '/pow', uri.port) | |
pow = JSON.parse(response) | |
# 2.) Solve the pow | |
# The client has to guess the solution by generating random hexadicimal strings |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: AuthenticAMD | |
CPU Brand: AMD Ryzen 7 2700X Eight-Core Processor | |
CPU Family: 0x17 |
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
loop do | |
length = rand(1..(1024**3)) | |
puts "Writing #{length} bytes" | |
data = Random.new.bytes(length) | |
file = "rand_data_#{SecureRandom.hex(32)}" | |
File.open(file, "w") { |f| f.write data} | |
a = Digest::SHA512.hexdigest(File.read(file)) | |
b = Digest::SHA512.hexdigest(data) |
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 'json' | |
require 'net/https' | |
stats = Hash.new(0) | |
nodes = JSON.parse(Net::HTTP.get(URI("https://map.luebeck.freifunk.net/nodes.json")))["nodes"] | |
nodes.each{ |a| stats["clients"] += a["clientcount"].to_i } | |
stats["nodes"] = nodes.select{ |a| a["flags"]["online"] && !a["flags"]["gateway"] }.count | |
puts stats.to_json |
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 'json' | |
require 'net/https' | |
stats = Hash.new(0) | |
nodes = JSON.parse(Net::HTTP.get(URI("https://map.luebeck.freifunk.net/nodes.json")))["nodes"] | |
nodes.each{ |a| stats["clients"] += a["clientcount"].to_i } | |
stats["nodes"] = nodes.count | |
puts stats |
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 | |
status=/var/lib/dpkg/status | |
if grep jockey-common $status >/dev/null 2>&1 # if was installed someday or currently is | |
then | |
sed -i 'N; s/Package: jockey-common.*/Package: jockey-common\nStatus: install ok installed/' $status # Claim that it is | |
else # If it is not even there append to status | |
echo " | |
Package: jockey-common | |
Status: install ok installed |
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
tar xavf entpackt alle außer unzip ;) | |
Aus der Manpage: | |
" -a, --auto-compress | |
Die Archiv-Endung verwenden, um das Kompressionsprogramm herauszufinden | |
" |
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
DefVar $ExitCode$ | |
DefVar $INST_SystemType$ | |
DefVar $INST_architecture$ | |
DefVar $Inst_Cmd$ | |
DefVar $Inst_Prg$ | |
DefVar $InstallDir$ | |
DefVar $LicenseKey$ | |
DefVar $LicensePool$ | |
DefVar $LicenseRequired$ | |
DefVar $LogDir$ |
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
[Initial] | |
SetLogLevel=9 | |
; Log Errors in Logfile but don't abort: | |
ExitOnError=false | |
; Show syntax errors in the script: | |
ScriptErrorMessages=on | |
; Dont trace step by step through the script: | |
TraceMode=off | |
; let started programs run in front of the winst window | |
StayOnTop=false |
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
[Initial] | |
SetLogLevel=9 | |
; Log Errors in Logfile but don't abort: | |
ExitOnError=false | |
; Show syntax errors in the script: | |
ScriptErrorMessages=on | |
; Dont trace step by step through the script: | |
TraceMode=off | |
; let started programs run in front of the winst window | |
StayOnTop=false |