Skip to content

Instantly share code, notes, and snippets.

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/fez
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/fez>
Options Indexes FollowSymLinks MultiViews
@Avasz
Avasz / fedora-2.2.1
Last active December 29, 2015 01:39
Installation Type:
Enter a value ==> custom [Press Enter]
Fedora Home Directory:
Etner a value [default is /var/opt/fedora] ==> [Press Enter]
Fedora administrator password:
Enter a value ==> adminFedora
Fedora server host:
@Avasz
Avasz / a.rb
Created December 7, 2013 02:41
20:04 < mri_6889> | Now amitshree, i'm waited on #sumo, and waiting for talking.
20:05 < amitshree> | mri_6889, please proceed
20:09 --> | Wawuschel [[email protected]] has joined #sumo
20:10 < mri_6889> | amitshree, i want to say in February will be Winter, and I think Nepal would be very cool. I think you must change the time of sumo-asia meetup.
20:11 < Avasz> | mri_6889: it won't be quite cold, ask centurion who had attended SAMeetup during february 2013 :D
20:11 < Avasz> | we were out in our halfshirts :D
20:11 < centurion> | mri_6889: it is not that much cold in Nepal that time
20:12 < centurion> | at SAMeetup I take worm cloths, believe me, I ask for a fan to hotel at night
20:13 < amitshree> | mri_6889, but that's a good point. we will see if we can mange something if it's cold out there.
20:13 < Avasz> | + hotels have really good ac system :D
@Avasz
Avasz / a.rb
Created December 22, 2013 16:25
#!/bin/bash
x=192.168.1.1
while :
do
y=$(curl icanhazip.com)
if [ $x != $y ]
then
rm -rf /tmp/ipaddr
touch /tmp/ipaddr
echo "Current IP: $y" > /tmp/ipaddr
@Avasz
Avasz / my.cnf
Created December 27, 2013 09:25
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
Alias /external-content /library/www/external-content
<Directory /library/www/external-content>
Order allow,deny
Allow from all
</Directory>
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-driver wext
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
eapol_version=1
network={
ssid="ENTER SSID HERE"
scan_ssid=1
mode=0
proto=WPA2
auth_alg=OPEN
@Avasz
Avasz / gist:8198873
Last active January 1, 2016 20:39
Customizing Firefox
Changing Icon:
Create folder named chrome in firefox profile directory, create file inside chrome called userChrome.css, add the following lines for the icons you want to change.
#home-button{
list-style-image: url("skype.png") !important;
}
-------------------------------------------------------------------------------------------------------------------------------
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | Fez - Digital Repository System |
// +----------------------------------------------------------------------+
// | Copyright (c) 2005, 2006, 2007 The University of Queensland, |
// | Australian Partnership for Sustainable Repositories, |
// | eScholarship Project |
// | |
// | Some of the Fez code was derived from Eventum (Copyright 2003, 2004 |