commit 5a63cf618fdc0b782a14948178bccca3316cc236
parent 303176445ccfcbe4f18261c9908c7f1b6b2236a2
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 4 Oct 2020 15:21:24 +0200
Deleted unneeded stuff
Former-commit-id: 53ef816f57b2e9dc88bf439d824a7d38dd399029
Diffstat:
5 files changed, 0 insertions(+), 183 deletions(-)
diff --git a/scripts/blog b/scripts/blog
@@ -1,52 +0,0 @@
-#!/bin/sh
-
-die() {
- echo "$1" >&2
- exit 1
-}
-blogdir="/Users/alex/Documents/Programming/thezeroalpha.github.io/blog"
-[ -d "$blogdir" ] || die "Blog directory does not exist"
-if ! command -v tmux 1>/dev/null 2>&1; then
- echo "tmux not installed." >&2
- exit 1
-fi
-
-# Clear rbenv variables before starting tmux
-unset RBENV_VERSION
-unset RBENV_DIR
-
-tmux start-server;
-
-cd "$blogdir" || die "Cannot cd to $blogdir"
-
-# Create the session and the first window. Manually switch to root
-# directory if required to support tmux < 1.9
-TMUX='' tmux new-session -d -s blog -n site
-tmux send-keys -t blog:1 cd\ "$blogdir" C-m
-
-
-# Create other windows.
-tmux new-window -c "$blogdir" -t blog:2 -n post
-tmux new-window -c "$blogdir" -t blog:3 -n server
-
-
-# Window "site"
-tmux send-keys -t blog:1 vim\ -o\ _layouts/default.html\ _sass/jekyll-theme-minimal.scss C-m
-
-
-# Window "post"
-tmux send-keys -t blog:2 vim C-m
-
-
-# Window "server"
-tmux send-keys -t blog:3 bundle\ exec\ jekyll\ serve\ --drafts C-m
-
-
-tmux select-window -t blog:post
-tmux select-pane -t blog:post.1
-
-if [ -z "$TMUX" ]; then
- exec tmux -u attach-session -t blog
-else
- exec tmux -u switch-client -t blog
-fi
diff --git a/scripts/dashedit.rb b/scripts/dashedit.rb
@@ -1,94 +0,0 @@
-#!/usr/bin/env ruby
-require 'json'
-require 'rest-client'
-
-class DashSubmit
- attr_accessor :deliverable_id
-
- def initialize deliverable_id
- @deliverable_id = deliverable_id
- @base_uri = "https://submit.dashnet.tech"
- @bearer_code = ENV['DASHNET_CODE']
- @user = ENV['DASHNET_USER']
- @headers = {
- "Accept": "application/json, text/plain, */*",
- "Authorization": @bearer_code,
- "Origin": "https://dashnet.tech"
- }
- end
-
- def get_status
- puts "#{@base_uri}/user/#{@user}/submissions"
- response = RestClient.get(
- "#{@base_uri}/user/#{@user}/submissions",
- @headers
- )
- response = JSON.parse(response)
-
- if response["success"]
- data = response["data"][0]
- puts "Waiting..."
- while data['test_status'] == "waiting"
- response = RestClient.get(
- "#{@base_uri}/user/#{@user}/submissions",
- @headers
- )
- response = JSON.parse(response)
- data = response["data"][0]
- end
- puts "Filename: #{data["filename"]}"
- puts "Attempt: #{data['attempt']}"
- puts "Result: #{data["test_status"]}"
- puts "Output:"
- puts data["test_output"]
- else
- puts "Request fucked up."
- end
- end
- def submit path
- extra_headers = {
- "Content-Type": "multipart/form-data; boundary=---011000010111000001101001",
- }
- request = RestClient::Request.new(
- method: :post,
- url: "#{@base_uri}/deliverables/#{@deliverable_id}",
- headers: @headers.merge(extra_headers),
- payload: {
- multipart: true,
- file: File.new(path, "rb")
- })
- response = JSON.parse(request.execute)
-
- if response["success"]
- data = response["data"]
- puts "Submitted successfully!"
- puts "File: #{path}"
- puts "Filename: #{data["filename"]}"
- puts "Checksum: #{data["checksum"]}"
- end
- end
-end
-
-if ENV['DASHNET_CODE'].nil?
- puts "Please set the $DASHNET_CODE environment variable in your profile."
- puts "You can find this using the Web Inspector in your browser. Record the XHR request, find the 'authorization' field, and copy the string starting with 'Bearer'."
-elsif ENV['DASHNET_USER'].nil?
- puts "Please set the $DASHNET_USER environment variable in your profile to your DashNet username (VUnet ID)."
-else
- deliverable_id = "13356ed0-e21d-42a2-804d-301102b5b40b"
- submitter = DashSubmit.new(deliverable_id)
- if ARGV[0] == "status"
- submitter.get_status
- elsif ARGV[0] == "submit"
- if !ARGV[1].nil?
- submitter.submit ARGV[1]
- else
- puts "Please provide a path."
- end
- else
- puts "Usage:"
- puts " dashedit submit $path"
- puts " dashedit status"
- end
-end
-
diff --git a/scripts/ix b/scripts/pastebin
diff --git a/scripts/qlobe b/scripts/qlobe
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-# this should have low priority
-renice 20 $$
-while :; do
- clear;
- for ((;;)); do
- for i in {1..360}; do
- tput cup 0 0;
- ruby qlobe_quine.rb $i;
- done;
- done;
-done 2>/dev/null
diff --git a/scripts/qlobe_quine.rb b/scripts/qlobe_quine.rb
@@ -1,24 +0,0 @@
-v=0000;eval$s=%q~d=%!^Lcf<LK8, _@7gj*LJ=c5nM)Tp1g0%Xv.,S[<>YoP
-4ZojjV)O>qIH1/n[|2yE[>:ieC "%.#% :::##" 97N-A&Kj_K_><wS5rtWk@*a+Y5
-yH?b[F^e7C/56j|pmRe+:)B "##% ::##########" O98(Zh)'Iof*nm.,$C5Nyt=
-PPu01Avw^<IiQ=5$'D-y? "##: ###############" g6`YT+qLw9k^ch|K'),tc
-6ygIL8xI#LNz3v}T=4W "# #. .####:#######" lL27FZ0ij)7TQCI)P7u
-}RT5-iJbbG5P-DHB<. " ##### # :############" R,YvZ_rnv6ky-G+4U'
-$*are@b4U351Q-ug5 " #######################" 00x8RR%`Om7VDp4M5
-PFixrPvl&<p[]1IJ " ############:#### %#####" EGgDt8Lm#;bc4zS^
-y]0`_PstfUxOC(q " .#############:##% .## ." /,}.YOIFj(k&q_V
-zcaAi?]^lCVYp!; " %% .################. #. " ;s="v=%04o;ev"%
-(;v=(v-($*+[45, ":####: :##############% : " ])[n=0].to_i;)%
-360)+"al$s=%q#{ "%######. ######### " ;;"%c"%126+$s<<
-126}";d.gsub!(/ "##########. #######% " |\s|".*"/,"");;
-require"zlib"|| "########### :######. " ;d=d.unpack"C*"
-d.map{|c|n=(n|| ":#########: .######: . " )*90+(c-2)%91};
-e=["%x"%n].pack " :#######% :###### #: " &&"H*";e=Zlib::
-Inflate.inflate( " ######% .####% :: " &&e).unpack("b*"
-)[0];22.times{|y| " ####% %### " ;w=(Math.sqrt(1-(
-(y*2.0-21)/22)**(; " .###: .#% " ;2))*23).floor;(w*
-2-1).times{|x|u=(e+ " %## " )[y*z=360,z]*2;u=u[
-90*x/w+v+90,90/w];s[( " #. " ;y*80)+120-w+x]=(""<<
-32<<".:%#")[4*u.count(( " . " ;"0"))/u.size]}};;puts\
-s+";_ The Qlobe#{" "*18+ ( "# :#######" ;"Copyright(C).Yusuke End\
-oh, 2010")}";exit~;_ The Qlobe Copyright(C).Yusuke Endoh, 2010-
\ No newline at end of file