Skip to content

Instantly share code, notes, and snippets.

View axilleas's full-sized avatar
🏠
Working from home

Achilleas Pipinellis axilleas

🏠
Working from home
View GitHub Profile
@axilleas
axilleas / dashboard_err.log
Last active December 21, 2015 17:09
Dashboard not showing in GitLab (ActionController::RoutingError)
Started GET "/" for 127.0.0.1 at 2013-08-26 09:44:56 +0300
Processing by DashboardController#show as HTML
Rendered events/_event_last_push.html.haml (0.2ms)
Rendered dashboard/_activities.html.haml (12.7ms)
Rendered dashboard/_projects.html.haml (49.6ms)
Rendered dashboard/_groups.html.haml (10.0ms)
Rendered shared/_promo.html.haml (0.4ms)
Rendered dashboard/_sidebar.html.haml (64.2ms)
Rendered dashboard/show.html.haml within layouts/application (78.7ms)
Rendered layouts/_head.html.haml (5.4ms)
@axilleas
axilleas / System Dependencies
Created July 5, 2013 15:24
Install GitLab 5.3 on Fedora
Debian Fedora 19
-------------------------------------
sudo sudo
build-essential groupinstall 'Development Tools' 'Development Libraries'
zlib1g-dev zlib-devel
libyaml-dev libyaml-devel
libssl-dev openssl-devel
libgdbm-dev gdbm-devel
libreadline-dev readline-devel
libncurses5-dev ncurses-devel
@axilleas
axilleas / mock.log
Created June 24, 2013 16:19
Fedora mock test errors while packaging redis-rb
DEBUG: Finished tests in 15.473510s, 31.3439 tests/s, 116.0693 assertions/s.
DEBUG: 1) Failure:
DEBUG: TestCommandsOnStrings#test_bitop [/builddir/build/BUILD/redis-3.0.4/usr/share/gems/gems/redis-3.0.4/test/commands_on_strings_test.rb:97]:
DEBUG: <"\x9E"> (UTF-8) expected but was
DEBUG: <"\x9E"> (US-ASCII).
DEBUG: 2) Failure:
DEBUG: TestDistributedCommandsRequiringClustering#test_bitop [/builddir/build/BUILD/redis-3.0.4/usr/share/gems/gems/redis-3.0.4/test/distributed_commands_requiring_clustering_test.rb:162]:
DEBUG: <"\x9E"> (UTF-8) expected but was
DEBUG: <"\x9E"> (US-ASCII).
DEBUG: 485 tests, 1796 assertions, 2 failures, 0 errors, 0 skips
bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Enter your password to install the bundled RubyGems to your system:
Using archive-tar-minitar (0.5.2)
Using bunny (0.7.9)
Using erubis (2.7.0)
Using highline (1.6.15)
Installing json (1.6.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
@axilleas
axilleas / coordinate.py
Created March 30, 2013 21:20
Edx - 6.00x Lecture 10 Problem 7
class Coordinate(object):
def __init__(self,x,y):
self.x = x
self.y = y
def getX(self):
# Getter method for a Coordinate object's x coordinate.
# Getter methods are better practice than just accessing an attribute directly
return self.x
@axilleas
axilleas / jail.pl
Created February 2, 2013 17:48 — forked from wilbowma/jail.pl
#a/usr/bin/perl
# This script was hastily cobbled together for my own use. It can
# probably break your system. Use at your own risk.
$JAIL = "/srv/http";
$USER = "http";
$GROUP = "http";
$WWW_DIR = "www";
sub run{
@axilleas
axilleas / grub.sh
Created January 25, 2013 14:52
Grub2 quick installation for new Archlinux installations
#!/bin/env bash
# https://wiki.archlinux.org/index.php/GRUB2#Install_to_440-byte_MBR_boot_code_region
modprobe dm-mod
grub-install --target=i386-pc --recheck --debug /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
--- _django.org 2012-06-16 23:48:07.256319726 +0900
+++ .compfunc/_django 2012-06-16 23:55:32.556331127 +0900
@@ -31,7 +31,6 @@
"cleanup:remove old data from the database"
"compilemessages:compile .po files to .mo for use with gettext"
"createcachetable:creates table for SQL cache backend"
- "createsuperuser:create a superuser"
"dbshell:run command-line client for the current database"
"diffsettings:display differences between the current settings and Django defaults"
"dumpdata:output contents of database as a fixture"
@axilleas
axilleas / mplayer-minimal-svn
Created October 27, 2012 08:41
Aur package
# Maintainer: Pierre Chapuis <catwell at archlinux dot us>
# NOTE: This package relies on Mplayer's configure script to detect what is
# useful on your system. Build it on the machine you will use it on.
# If some features don't work, install the related optdepends *before*
# building.
# Before reporting any bug, please download a fresh copy of the package from
# the AUR and build the package using makepkg (not Yaourt).
pkgname=mplayer-minimal-svn
@axilleas
axilleas / archgitlab.sh
Last active March 29, 2021 11:53
Install GitLab 5.0 on Archlinux
#!/bin/bash
##########################
## Check if run as root ##
##########################
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi