Skip to content

Instantly share code, notes, and snippets.

@cassinaj
cassinaj / gnome-terminal-zenburn.sh
Created October 11, 2015 14:12 — forked from planbnet/gnome-terminal-zenburn.sh
Zenburn color scheme for gnome-terminal
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
#!/usr/bin/env bash
# ubuntu 16.04 has changed everything again ...
# if more than one profile exist, set profile to the desired profile id
profile="$(dconf list /org/gnome/terminal/legacy/profiles:/ | sed 's./..')"
dconf write /org/gnome/terminal/legacy/profiles:/$profile/palette "['#3F3F3F3F3F3F'
, '#CCCC93939393', '#23227F7EBFBF', '#656553537070', '#BABA2F2E5958', '#BABA2F2E5958', '#8C8CD0D0D3D3', '#DCDCDCDCCCCC', '#3F3F3F3F3F3F', '#CCCC93939393', '#23227F7EBFBF', '#656553537070', '#BABA2F2E5958', '#1F1F7171ABAB', '#8C8CD0D0D3D3', '#DCDCDCDCCCCC']"
# hide the menu bar
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@cassinaj
cassinaj / kdesrc-buildrc
Last active November 6, 2015 15:50
kdesrc-buildrc of KF5 used in the cassinaj/kf5-ubuntu:14.04 docker image
global
source-dir /tmp/kde/src
build-dir /tmp/kde/build
kdedir /usr/local/kde
git-repository-base kde-projects kde:
# KDE4_BUILD_TESTS kept for now, for old kde4_add_unit_test stuff to be enabled
cmake-options -DCMAKE_BUILD_TYPE:STRING=release -DKDE4_BUILD_TESTS=false
@cassinaj
cassinaj / kf5-ubuntu14.04
Last active April 22, 2018 13:09
Docker file kf5-ubuntu:14.04 including KF5 and Kdevelop5.0.0 installed
FROM issac/qt5-ubuntu:14.04
MAINTAINER Jan Issac <[email protected]>
# Use noninteractive debconf frontend
ENV DEBIAN_FRONTEND noninteractive
# install KF5 prerequisites
RUN apt-get -y install kubuntu-desktop
RUN apt-get -y build-dep qtbase5-dev
@cassinaj
cassinaj / qt5-ubuntu14.04
Created November 10, 2015 19:25
Docker file qt5-ubuntu:14.04 wit QT5
FROM ubuntu:14.04
MAINTAINER Jan Issac <[email protected]>
# Use noninteractive debconf frontend
ENV DEBIAN_FRONTEND noninteractive
# Update
Run apt-get update
@cassinaj
cassinaj / clang-format_config.md
Created November 16, 2015 19:35 — forked from Uflex/clang-format_config.md
Configuration of clang-format for QtCreator

Clang-format in QtCreator

Edit: QtCreator 3.1 introduced a new plugin called Beautifier that supports clang-format. You still have to install the clang tools separately but you don't have to add them as external tools anymore. The plugin can be configured in the options dialog under the beautifier tab > Clang Format. Add a new style and copy the configuration below without the curly braces.

QtCreator doesn't allow using clang-format by default. Watch QTCREATORBUG-10111 for a better integration. As of today, you should use it as an external tool, either replacing your selection or the entire file. If you choose to replace the file, you will have to save it before launching the tool and QtCreator will reload the file, making it impossible to undo/redo afterwards. If you choose to replace your selection, you often have to select the whole function, otherwise you will lose the indentation; clang-format doesn't seem to k

<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Solarized (light) - myway">
<style name="Text" foreground="#657b83" background="#fdf6e3"/>
<style name="Link" foreground="#268bd2"/>
<style name="Selection" foreground="#eee8d5" background="#93a1a1"/>
<style name="LineNumber" foreground="#93a1a1" background="#eee8d5"/>
<style name="SearchResult" background="#ffffb0"/>
<style name="SearchScope" foreground="#000000" background="#fff9f6"/>
<style name="Parentheses" foreground="#dc322f"/>
<style name="CurrentLine" background="#eee8d5"/>
---
# custom settings
Language: Cpp
Standard: Cpp11
IndentWidth: 4
TabWidth: 4
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
@cassinaj
cassinaj / 1_ubuntu_terminal_command
Created February 7, 2016 11:38 — forked from lucasdavila/1_ubuntu_terminal_command
Installing Source Code Pro fonts in ubuntu
# to execute this gist, run the line bellow in terminal
\curl -L https://raw.github.com/gist/3875946/install_source_code_pro.sh | sh