Skip to content

Instantly share code, notes, and snippets.

View ytsarev's full-sized avatar
🎸
\m/

Yury Tsarev ytsarev

🎸
\m/
View GitHub Profile
@ytsarev
ytsarev / show.html.erb
Created February 22, 2012 23:48 — forked from codeschool-courses/show.html.erb
Rails for Zombies 2 – Challenge 5-9
<p id="notice"><%= notice %></p>
<ul>
<li>
<em>Name:</em>
<%= @weapon.name %>
</li>
<li>
<em>Condition:</em>
<span id="condition"><%= @weapon.condition %></span>
<%= link_to "Toggle", toggle_condition_user_weapon_path(@user, @weapon), remote: true %>
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
Error: Execution of '/bin/yum -d 0 -e 0 -y install postgresql9-libs' returned 1: Transaction check error:
file /usr/lib64/libecpg.so.6.4 from install of postgresql9-libs-9.2.8-12.el7.gdc4.x86_64 conflicts with file from package postgresql-libs-9.2.14-1.el7_1.x86_64
file /usr/lib64/libecpg_compat.so.3.4 from install of postgresql9-libs-9.2.8-12.el7.gdc4.x86_64 conflicts with file from package postgresql-libs-9.2.14-1.el7_1.x86_64
file /usr/lib64/libpgtypes.so.3.3 from install of postgresql9-libs-9.2.8-12.el7.gdc4.x86_64 conflicts with file from package postgresql-libs-9.2.14-1.el7_1.x86_64
file /usr/lib64/libpq.so.5.5 from install of postgresql9-libs-9.2.8-12.el7.gdc4.x86_64 conflicts with file from package postgresql-libs-9.2.14-1.el7_1.x86_64
file /usr/share/locale/es/LC_MESSAGES/ecpglib6-9.2.mo from install of postgresql9-libs-9.2.8-12.el7.gdc4.x86_64 conflicts with file from package postgresql-libs-9.2.14-1.el7_1.x86_64
file /usr/share/locale/fr/
serverspec rubocop
Running RuboCop...
Inspecting 109 files
...........................................E.................................................................
Offenses:
/mnt/ebs/jenkins-slave/workspace/puppet-serverspec-rubocop/spec/common/cl_dss_jbalancer/jbalancer_spec.rb:31:1: E: unexpected token $end
(Using Ruby 2.0 parser; configure using TargetRubyVersion parameter, under AllCops)
rpm -qf /usr/lib*/libdb*
libdb-4_5-4.5.20-131.6.x86_64
libdb-4_8-4.8.30-30.4.x86_64
libdb-4_5-4.5.20-131.6.x86_64
libdb-4_8-4.8.30-30.4.x86_64
dbus-1-glib-0.100.2-3.2.x86_64
dbus-1-glib-0.100.2-3.2.x86_64
libdbusmenu-glib4-12.10.3+bzr20150410-3.2.x86_64
libdbusmenu-glib4-12.10.3+bzr20150410-3.2.x86_64
libdbusmenu-gtk3-4-12.10.3+bzr20150410-3.2.x86_64
# for f in /usr/lib*/libdb* ; do echo "==> $f"; rpm -qf $f; done
==> /usr/lib64/libdb-4.5.so
libdb-4_5-4.5.20-131.6.x86_64
==> /usr/lib64/libdb-4.8.so
libdb-4_8-4.8.30-30.4.x86_64
==> /usr/lib64/libdb_cxx-4.5.so
libdb-4_5-4.5.20-131.6.x86_64
==> /usr/lib64/libdb_cxx-4.8.so
libdb-4_8-4.8.30-30.4.x86_64
==> /usr/lib64/libdbus-glib-1.so.2
function add_repo_url {
local repo="${1?}"
read -p "Enter repository URL for '$repo': " url
mkdir -p /etc/kiwi
echo "{$repo} $url" >> /etc/kiwi/repoalias \
&& echo "{$repo} $url alias added to /etc/kiwi/repoalias"
}
<div class="row">
<div class="col-xs-8"><h2 class="text-primary text-center">CatPhotoApp</h2></div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a></div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Thr
cat test.json |jq -r ".AvailabilityZones[] | .ZoneName " | tr '\n' ' '
@ytsarev
ytsarev / main.go
Created February 18, 2020 13:23 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)