Skip to content

Instantly share code, notes, and snippets.

View GrapsasFilippos's full-sized avatar

Φίλιππος Α. Γράψας GrapsasFilippos

View GitHub Profile
@GrapsasFilippos
GrapsasFilippos / ceph-manual-install.md
Created December 21, 2022 20:39 — forked from kalaspuffar/ceph-manual-install.md
How to install a manual ceph cluster.

Manual install of a Ceph Cluster.

Fetching software.

First of I want to check that I have all the latest packages in my debian system.

apt update
apt upgrade
conky.config = {
minimum_width = 1350,
minimum_height = 15,
double_buffer = true,
own_window = true,
own_window_argb_visual = true,
own_window_class = 'ConkyAbove',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'dock',
1. Go to Module Admin.
2. Click Apache Config.
3. Scroll to bottom, look at "Override a Virtual Host Setting" section, select your vhost from dropdowns.
4. In "Custom Entry" field, paste the following code:
`DocumentRoot "/var/sentora/hostdata/[username]/public_html/[domain-alias]/public"`
Replace [username] with your login username, and [domain-alias] with your domain directory friendly name (domain.com => domain_com).
5. "Save Host" and waiting for Sentora Daemon, or from terminal, reload httpd service:
@GrapsasFilippos
GrapsasFilippos / .bashrc
Created July 5, 2018 17:34
.bashrc for mac
# Alias
alias l='ls -lah'
export PS1="\t \u@\h:\w > "
@GrapsasFilippos
GrapsasFilippos / instructions.md
Created December 2, 2017 23:06 — forked from zentralwerkstatt/instructions.md
Install Syncthing on Raspberry Pi
  • Install the necessary packages:
sudo apt-get install apt-transport-https ca-certificates
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing
sudo apt-get install git
  • Start syncthing once:
@GrapsasFilippos
GrapsasFilippos / app.js
Created October 24, 2017 07:48 — forked from victorb/app.js
Easy AngularJS Directive for Google Places Autocomplete
var myApp = angular.module('myApp', []);
myApp.directive('googleplace', function() {
return {
require: 'ngModel',
link: function(scope, element, attrs, model) {
var options = {
types: [],
componentRestrictions: {}
};
#!/bin/bash
/usr/bin/google-chrome --user-data-dir=/tmp/chrome-profile --unsafely-treat-insecure-origin-as-secure=$1
@GrapsasFilippos
GrapsasFilippos / ffmpeg-extract-keyframes.sh
Created June 21, 2017 13:19 — forked from savvot/ffmpeg-extract-keyframes.sh
Extract only keyframes (I-frames) from video to images with console ffmpeg
ffmpeg -ss <start_time> -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg
[KDE Keyboard Layout Switcher][Global Shortcuts]
Switch keyboard layout to Dutch=none
Switch keyboard layout to English (US)=none
Switch keyboard layout to Greek (polytonic)=none
Switch to Next Keyboard Layout=Ctrl+Alt+K
[amarok][Global Shortcuts]
decreaseVolume=none
increaseVolume=Meta++
loveTrack=Meta+L
[user]
name = Filippos A. Grapsas
email = public001@grapsas.com
[core]
autocrlf = input
quotepath = false
[alias]
ustatus = "!git fetch;git status"
tpush = push --follow-tags