Skip to content

Instantly share code, notes, and snippets.

View anselal's full-sized avatar
🐧
/dev/null

Anastasios Selalmazidis anselal

🐧
/dev/null
View GitHub Profile
@anselal
anselal / xrandr.sh
Created September 23, 2021 08:29 — forked from chirag64/xrandr.sh
Added license on user request
#!/bin/bash
# Copyright © 2021 Chirag Bhatia
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF

Microsoft Windows and Office KMS Setup

@anselal
anselal / Projects
Last active October 13, 2021 12:09
- Supporting University Community pathways for REfugees-migrants
https://sucre.auth.gr/
- Supporting Researchers at Risk
https://inspireurope.auth.gr/
- Higher Education Institution Erasmus Forum
https://hei-erasmusforum.ad.auth.gr/
- HCR2 SoulisBot
@anselal
anselal / vuejs_nprogress_cdn.html
Last active April 7, 2021 12:23
Add a progress bar (nprogress) in a Vue.js application. Progress bar will load with router links and axios requests
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.1.3/vue-router.min.js"></script>
@anselal
anselal / ubuntu18-minimal-gnome.sh
Last active January 24, 2020 09:28
Minimal Ubuntu 18 Gnome Desktop Environment
# Create a minimal Ubuntu 18 installation using the iso from
# http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso
# In the installer do not install anything but openssh-server if needed
# After the installation is finished run script to install a minimal Gnome Desktop Environment
#!/bin/sh
apt install -y gdm3 gnome-session gnome-icon-theme --no-install-recommends
apt install -y xserver-xorg # apt install wayland-protocols weston xwayland
apt install -y vim git tmux mc htop curl
#!/bin/sh
for i in `seq 100`;
do
reason="reason-$i"; curl -s https://www.reasonstousebitcoin.com/shop/t-shirt/$reason/ | grep woocommerce-product-gallery__image | cut -d\" -f 8 | xargs wget -O $reason.jpg;
done
@anselal
anselal / MyPaint.py
Created May 2, 2019 06:03 — forked from Jackhammer9/MyPaint.py
so i made a paint application no hate i am just 14
import turtle
win = turtle.Screen()
win.setup(900,600)
win.title("Jackhammer's Paint")
# ribbon
rib = turtle.Turtle()
rib.hideturtle()
rib.color('thistle')
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <[email protected]>"
# Linking of locale.h as xlocale.h
# This is done to ensure successfull install of python numpy package
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
WORKDIR /var/www/
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <[email protected]>"
# Linking of locale.h as xlocale.h
# This is done to ensure successfull install of python numpy package
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information.
WORKDIR /var/www/
@anselal
anselal / .vimrc
Created May 30, 2018 10:32 — forked from ericbn/.vimrc
Vim Powerline-like status line without the need of any plugin
" Statusline (requires Powerline font)
set statusline=
set statusline+=%(%{&buflisted?bufnr('%'):''}\ \ %)
set statusline+=%< " Truncate line here
set statusline+=%f\ " File path, as typed or relative to current directory
set statusline+=%{&modified?'+\ ':''}
set statusline+=%{&readonly?'\ ':''}
set statusline+=%= " Separation point between left and right aligned items
set statusline+=\ %{&filetype!=#''?&filetype:'none'}
set statusline+=%(\ %{(&bomb\|\|&fileencoding!~#'^$\\\|utf-8'?'\ '.&fileencoding.(&bomb?'-bom':''):'')