Skip to content

Instantly share code, notes, and snippets.

View GrapsasFilippos's full-sized avatar

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

View GitHub Profile
defscrollback 1000
backtick 1 3600 3600 /bin/hostname
backtick 2 3600 3600 /usr/bin/nproc
#backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/Physical id [0-9]*: \([^°]*°C\).*/\1/p"'
#backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/temp1:\s*\([^°]*°C\)\s*(h.*/\1/p"'
backtick 3 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/Tdie:\s*\([^°]*°C\)\s*(h.*/\1/p"'
backtick 4 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/temp1:\s*\([^°]*°C\)\s*(c.*/\1/p"'
backtick 5 0 10 /usr/bin/sh -c '/usr/bin/sensors | sed -n "s/fan1:\s*\([0-9]*\).*/\1/p"'
[user]
name = Filippos A. Grapsas
email = [email protected]
[core]
autocrlf = input
quotepath = false
[alias]
ustatus = "!git fetch;git status"
tpush = push --follow-tags
[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
@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
#!/bin/bash
/usr/bin/google-chrome --user-data-dir=/tmp/chrome-profile --unsafely-treat-insecure-origin-as-secure=$1
@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: {}
};
@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 / .bashrc
Created July 5, 2018 17:34
.bashrc for mac
# Alias
alias l='ls -lah'
export PS1="\t \u@\h:\w > "
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:
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',