Skip to content

Instantly share code, notes, and snippets.

View arvchristos's full-sized avatar

Christos Arvanitis arvchristos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am arvchristos on github.
  • I am arvchristos (https://keybase.io/arvchristos) on keybase.
  • I have a public key ASApOFVQxIscFJWtvBr5J8t1DcBNbrcpCk21L87fkoPENAo

To claim this, I am signing this object:

@arvchristos
arvchristos / main.py
Last active March 26, 2020 21:56
Get all youtube links of a Discourse topic
import urllib.request
import json
with urllib.request.urlopen("https://linux-user.gr/t/125.json") as url:
data = json.loads(url.read().decode())
# construct the biggest query of the world
start_url = "https://linux-user.gr/t/125/posts.json?"
for stream_id in data['post_stream']['stream']:
start_url = start_url + "post_ids[]=" + str(stream_id) + "&"
@arvchristos
arvchristos / get_installed_for.sh
Last active August 6, 2019 22:10
Bash script to print duration of current linux installation
#!/bin/bash
# Function to check if leap year exists in order to print exact year number
function is_leap {
if !(($1 % 4)) && ( (($1 % 100)) || !(($1 % 400)) ); then
echo 1
else
echo 0
fi
}
@arvchristos
arvchristos / web_screenshots.sh
Created September 20, 2018 18:25
Use chromium headless to export screenshots of different resolutions (devices) of a url for showcase.
#!/bin/bash
OUT_NAME=$(date +%Y%m%d_%H%M%S)
URL=$1
mkdir $OUT_NAME
cd $OUT_NAME
@arvchristos
arvchristos / FinalReport.md
Last active August 14, 2018 08:32
Librecust GSOC 2018 Final Report

This gist is the final descriptive report of the work completed during Google Summer of Code 2018 (GSOC 2018) relevant to the project LibreOffice customization and creation of legal Templates

Abstract

Greek public services are a field of absolute dominance for proprietary software and legal services are no exception. One of the tools widely used by employees of this public sector is the office suite and especially the word document editor. For many years, closed source software (e.g. Microsoft Office) was the standard text editor used by the majority of sectors while open source equivalents were never considered an option, adding a huge cost for the services and a static software solution, mainly because of the lack of feedback collecting and request implementation that characterizes proprietary software. In addition to this, employees where required not only to be fluent users of such software (MS Office 2003-2007), but also acquire certifications that p

@arvchristos
arvchristos / JekyllToGithubWiki.md
Created July 29, 2018 20:39
From jekyll to github wiki

Execute:

sed -i.bak '/---/,/---/d' ./*
@arvchristos
arvchristos / Timeline.md
Last active August 14, 2018 08:34
Librecust GSOC 2018 Timeline

Timeline

The timeline of librecust GSOC 2018 project as composed and followed by @arvchristos is following:

  • April 23 – May 14
  • Building development environment while updating README and documentation for installation and packaging details.
  • Harvesting of Greek legal documents and design of automation tools for template creation.
  • May 14 – May 20
  • Creation of mockups and prototypes for specific MS Office details (especially MS Office 2003 as this is the mostly used flavor in Greek legal services) that are going to be implemented while getting feedback from users.
  • May 20 – June 15