Skip to content

Instantly share code, notes, and snippets.

View mztriz's full-sized avatar
🐨
/home

mztriz.eth mztriz

🐨
/home
View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@mztriz
mztriz / spacewalk-repo-sync-error
Last active September 12, 2016 17:24
Error adding local repo to channel in spacewalk
[root@localhost ~]# spacewalk-repo-sync --channel rhel-7-server-rhceph-2-mon-rpms --type yum
======================================
| Channel: rhel-7-server-rhceph-2-mon-rpms
======================================
Repo URL: http://localhost/rhel-7-server-rhceph-2-mon-rpms/
ERROR: ('ERROR: relation "rhncontentssl" does not exist\nLINE 3: from rhncontentssl\n ^\n', <connection object at 0x2929890; dsn: 'password=xxxxx dbname=rhnschema user=rhnuser', closed: 0>, '\n select k1.key as ca_cert, k2.key as client_cert, k3.key as client_key\n from rhncontentssl\n join rhncryptokey k1\n on rhncontentssl.ssl_ca_cert_id = k1.id\n left outer join rhncryptokey k2\n on rhncontentssl.ssl_client_cert_id = k2.id\n left outer join rhncryptokey k3\n
@mztriz
mztriz / twilight-urxvt
Created October 17, 2012 15:47
.Xresources twilight theme for urxvt
URxvt*termName: rxvt-256color
URxvt*scrollBar: false
URxvt*secondaryScroll: true
URxvt*shading: 50
URxvt*transparent: true
URxvt*boldFont: xft:Inconsolata:Regular:pixelsize=17
URxvt*font: xft:Inconsolata:Regular:pixelsize=17
URxvt*background: #000000
URxvt*foreground: #ffffff
@mztriz
mztriz / Fix Cygwin Issues with Ruby
Created October 8, 2012 17:55
No such file or directory — /cygdrive/c/Ruby193/bin/gem (LoadError)
Add the following to your .bashrc (change path as necessary):
alias ruby='/cygdrive/c/Ruby193/bin/ruby'
alias gem='/cygdrive/c/Ruby193/bin/gem.bat'
alias irb='/cygdrive/c/Ruby193/bin/irb.bat'
@mztriz
mztriz / database.php
Created July 25, 2012 16:36
How to configure CodeIgniter 2.1.2 with SQLite3
/* SQLite3 config for PDO */
$db['default'] = array (
'dsn' => 'sqlite:'. FCPATH.'virtTour_original.sqlite', //Change this to the path of your db file
'hostname' => '',
'username' => '',
'password' => '',
'dbdriver' => 'pdo',
'dbprefix' => '',
'pconnect' => FALSE,
@mztriz
mztriz / CSS
Created July 11, 2012 20:45
Floating divs to auto shrink to text size
a:link { color:white }
img {
height:600px;
width:300px;
position: relative;
}
ul {
list-style-type: none;
padding:0;
}