Skip to content

Instantly share code, notes, and snippets.

View ivoarch's full-sized avatar

ivoarch (Ivaylo Kuzev) ivoarch

View GitHub Profile
--- NetworkManager.conf.orig 2014-10-26 10:19:18.398880201 +0100
+++ NetworkManager.conf 2014-10-26 09:37:06.646255367 +0100
@@ -12,6 +12,12 @@
<allow send_destination="org.freedesktop.NetworkManager"
send_interface="org.freedesktop.NetworkManager.PPP"/>
</policy>
+ <!-- My hack -->
+ <policy group="network">
+ <allow send_destination="org.freedesktop.NetworkManager"
+ send_interface="org.freedesktop.NetworkManager"/>
@ivoarch
ivoarch / create_rpmrepo.sh
Created October 1, 2014 19:54
Create RPM Repository for Rhel/CentOS
#!/bin/bash
# Create RPM Repository for Rhel/CentOS
ftpdir="$HOME/Dropbox/Public/rpmrepo"
releases=(el6 el7)
for release in "${releases[@]}"; do
for dir in i386 x86_64 SRPMS; do
pushd "${ftpdir}/${release}/${dir}" >/dev/null 2>&1
createrepo -v .

Setup Dropbox for system startup

The following instructions will get you setup to run Dropbox at system start. Below, also find instructions on how to install the Dropbox CLI.

# Login as root and go into home dir.
sudo su && cd ~

# Download Dropbox depending on architecture (uname -a) and unpack.
# You will need to repeat this "download and unpack" step for all users
altwin:menu = +altwin(menu)
altwin:meta_alt = +altwin(meta_alt)
altwin:ctrl_win = +altwin(ctrl_win)
altwin:meta_win = +altwin(meta_win)
altwin:left_meta_win = +altwin(left_meta_win)
altwin:super_win = +altwin(super_win)
altwin:hyper_win = +altwin(hyper_win)
altwin:alt_super_win = +altwin(alt_super_win)
altwin:swap_lalt_lwin = +altwin(swap_lalt_lwin)
grp:switch = +group(switch)
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
@ivoarch
ivoarch / prompt.zsh
Last active August 29, 2015 13:59
Minimal 256color prompt for zsh users
# PROMPT - themes for ZSH
# TODO:
# o add git support ?
# Set required options.
setopt promptsubst
local bold="%B"
local unbold="%b"
#!/usr/bin/env ruby
# coding: utf-8
# ANSI color scheme script
# Author: Ivaylo Kuzev <ivkuzev[at]gmail[dot]com>
# Original: http://crunchbanglinux.org/forums/post/134749/#p134749
# Modified using Ruby.
CL = "\e[0m"
BO = "\e[1m"
#!/usr/bin/env ruby
# coding: utf-8
# ANSI color scheme script
# Original: http://crunchbanglinux.org/forums/post/128584/#p128584
# Modified by Ivo in (Ruby)
0.upto(6).each do |f|
print "\033[#{f+41}m\033[#{f+30}m██▓▒░"
end
puts "\033[37m██"
@ivoarch
ivoarch / zenburn-theme
Created January 4, 2014 15:45
zenburn like color scheme for newsbeuter <http://www.newsbeuter.org/>
# Ivaylo Kuzev <[email protected]>, 2014
# zenburn like color scheme for newsbeuter <http://www.newsbeuter.org/>
color background color188 color237
color info color223 color234
color article color188 color237
color listnormal color188 color237
color listfocus color108 color234
color listnormal_unread color108 color234
color listfocus_unread color234 color108
@ivoarch
ivoarch / .dircolors
Last active February 16, 2020 09:54
Zenburn color theme for .dircolors!
# Zenburn color theme for the color GNU ls utility.
# Ivaylo Kuzev <[email protected]>, 2014
Moved to https://github.com/ivoarch/dircolors-zenburn