Skip to content

Instantly share code, notes, and snippets.

View hernad's full-sized avatar

Ernad Husremović hernad

View GitHub Profile
Fernaline bilješke:
1. What did Linus Torvalds use to write the Linux kernel?
He used the GNU programming tools developed by Richard Stallman’s Free Software Foundation, an organization of volunteers dedicated to fulfilling Stallman’s ideal of making good software that anyone could use without paying.
2. How was the Linux kernel become first made available to the general public?
When Linus had written a basic kernel, he released the source code to the Linux kernel on the Internet.
3. What is a programmer likely to do with source code?
Source code is important. It’s the original from which compiled programs are generated.
@hernad
hernad / mac_cups_yayhfc.md
Created June 18, 2011 13:15
MacOSX hylafax client YajHFC

Hylafax client on mac

http://yajhfc.berlios.de/doc/cupsfaxprinter.shtml

sa konzole setovao printer:

hernad@macan:~$ 
lpadmin -p yajhfc -D 'YajHFC virtual fax printer' -L 'localhost'  -E -P Downloads/yajhfc.ppd -o "printer-error-policy=abort-job" -o "printer-is-shared=false"  -v 'yajhfc:/tmp/yajhfc-$USERNAME'
@hernad
hernad / gist:720197
Created November 29, 2010 16:54
Student klasa
Student {
private:
int *_brojOcjena;
int *_ocjene;
const int _brojIndexa;
public:
....
@hernad
hernad / recreate_udev_net.txt
Created June 2, 2011 12:15
recreate ubuntu udev persistent network rules - udevadm trigger
vagrant@lucid64:~$ sudo rm /etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo udevadm trigger
vagrant@lucid64:~$ sudo ls /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
----------------
prikaz logiranih korisnika:
bringout@nd-273:~$ w
17:16:40 up 22:51, 5 users, load average: 0.53, 0.58, 0.60
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
bringout tty7 :0 Thu18 22:51m 21:41 0.37s gnome-session
bringout pts/0 :0.0 16:14 1:02m 0.18s 0.18s bash
bringout pts/2 :0.0 16:19 57:06 0.19s 0.19s bash
bringout pts/3 :0.0 17:15 1:06 0.20s 0.20s bash
@hernad
hernad / enable_ses_on_amazon_linux.sh
Last active June 18, 2018 12:29 — forked from gene1wood/enable_ses_on_amazon_linux.sh
Steps to switch from sendmail to postfix on Amazon Linux and enable using SES
yum install postfix
alternatives --set mta /usr/sbin/sendmail.postfix
service sendmail stop
chkconfig sendmail off
# https://github.com/mozilla/identity-ops/blob/master/chef/cookbooks/persona-common/recipes/postfix.rb
HISTCONTROL=ignoreboth
USERNAME="usernamegoeshere"
PASSWORD="passwordgoeshere"
SMTP_HOST="email-smtp.eu-west-1.amazonaws.com"

Keybase proof

I hereby claim:

  • I am hernad on github.
  • I am hernad (https://keybase.io/hernad) on keybase.
  • I have a public key whose fingerprint is DAA2 50BD A39E 4449 BDE3 F8A3 40E1 A4FD E2C6 7C31

To claim this, I am signing this object:

@hernad
hernad / golang.md
Last active January 3, 2016 14:29
golang godev
@hernad
hernad / openshift_f20.md
Created December 29, 2013 14:07
openshift fedora 20

prerequisites

yum install ruby puppet httpd-tools ansible bash-completion

passwordless

ssh-copy-id root@192.168.45.130

install openshift

Fedora 19

mkdir /data
export image_name="OpenShiftOrigin"
image_path=/data/$image_name
qemu-img create "$image_path" 15G -f raw
parted "$image_path" mklabel msdos
parted --align optimal "$image_path" mkpart primary ext4 1M 15G
mkfs.ext4 -F "$image_path"