This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os, re | |
from subprocess import check_output | |
file_path = sys.argv[1] | |
# Get branch name | |
branch_name = check_output([ | |
'git', | |
'symbolic-ref', | |
'--short', | |
'-q', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastestmirror=True | |
max_parallel_downloads=10 | |
defaultyes=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
([a-zøæåA-ZØÆÅ0-9]+) //Letters and digits no spaces | |
([a-zøæåA-ZØÆÅ0-9 ]+) //Same as above but with spaces | |
([a-zøæåA-ZØÆÅ0-9 ]+) //Same as above but with spaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image* MainWindow::toImage(QImage* qimage) | |
{ | |
qDebug() << "toImage:" << qimage->width() << qimage->height(); | |
Image *newImage = new Image(Magick::Geometry(qimage->width(), qimage->height()), Magick::ColorRGB(0.5, 0.2, 0.3)); | |
double scale = 1 / 256.0; | |
newImage->modifyImage(); | |
Magick::PixelPacket *pixels; | |
Magick::ColorRGB mgc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QT += core gui | |
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
TARGET = | |
TEMPLATE = app | |
SOURCES += | |
HEADERS += |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
LOG=/var/log/trim.log | |
echo "***$(date -R)***" >> $LOG | |
{ | |
fstrim -v / | |
fstrim -v /home | |
fstrim -v /boot | |
} >> $LOG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Egen script for å kjøre fstrim og skrive ut resultatet til en log | |
LOG=/var/log/trim.log | |
echo "Starting trim $(date -R) " >> $LOG | |
fstrim -v / >> $LOG | |
fstrim -v /home >> $LOG | |
fstrim -v /boot >> $LOG |