Skip to content

Instantly share code, notes, and snippets.

Avatar
🐍
Vue.js it is ...

Anastasios Selalmazidis anselal

🐍
Vue.js it is ...
View GitHub Profile
@anselal
anselal / xrandr.sh
Created Sep 23, 2021 — forked from chirag64/xrandr.sh
Added license on user request
View xrandr.sh
#!/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
View Projects
- 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 Apr 7, 2021
Add a progress bar (nprogress) in a Vue.js application. Progress bar will load with router links and axios requests
View vuejs_nprogress_cdn.html
<!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 Jan 24, 2020
Minimal Ubuntu 18 Gnome Desktop Environment
View ubuntu18-minimal-gnome.sh
# 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
View reasonstousebitcoin.sh
#!/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 — forked from JackhammerYT/MyPaint.py
so i made a paint application no hate i am just 14
View MyPaint.py
import turtle
win = turtle.Screen()
win.setup(900,600)
win.title("Jackhammer's Paint")
# ribbon
rib = turtle.Turtle()
rib.hideturtle()
rib.color('thistle')
View datascience-python3.6.Dockerfile
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <faizan.ibn.bashir@gmail.com>"
# 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/
View datascience-python2.7.Dockerfile
FROM alpine:latest
LABEL MAINTAINER="Faizan Bashir <faizan.ibn.bashir@gmail.com>"
# 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 — forked from ericbn/.vimrc
Vim Powerline-like status line without the need of any plugin
View .vimrc
" 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':''):'')