Skip to content

Instantly share code, notes, and snippets.

View weits's full-sized avatar

Petr Svoboda weits

View GitHub Profile
@dundee
dundee / .bashrc
Last active October 8, 2017 10:14
Colorful bash prompt with git integration
if [[ ${EUID} == 0 ]]; then
PS1="\[\e[41;30m\] \w \${?/#0}\[\e[31;49m\]"$'\xee\x82\xb0'"\[\e[00m\] "
else
PS1="\[\e[44;30m\] \w \[\\e[31m\]\${?/#0}"
PS1="$PS1\$(\
export GIT_BRANCH=\"\$(git branch --no-color 2>/dev/null | sed -n 's/*[^ ]* //p')\"; \
if [ -n \"\$GIT_BRANCH\" ] ; then \
echo -en \"\[\e[43;34m\]\xee\x82\xb0 \"
echo -en \"\[\e[43;30m\]\$GIT_BRANCH \"
echo -en \"\[\e[33;49m\]\xee\x82\xb0\[\e[00m\] \"
@zas
zas / install_intelr_graphic_linux_firmware.sh
Created September 9, 2016 00:06
Fix "W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo" (Ubuntu 16.04, kernel 4.4)
#!/bin/bash
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \
@nihathrael
nihathrael / kubuntu-to-neon.md
Last active July 11, 2023 15:58
How to upgrade kubuntu 16.04 -> KDE neon

This worked for me and might not work for your.

Try it at your own risk!

Add the neon repositories and install the neon desktop

$ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
$ sudo apt-add-repository http://archive.neon.kde.org/user
$ sudo apt-get update
$ sudo apt-get install neon-desktop