Skip to content

Instantly share code, notes, and snippets.

View hernad's full-sized avatar

Ernad Husremović hernad

View GitHub Profile
@hernad
hernad / macbook_pro.md
Last active December 30, 2015 18:49
macbook pro multiple boot

Ubuntu 12.04, grub2

...
insmod part_gpt
set root='(hd0,gpt4)'
...
linux /boot/vmlinuz-3.2.0-29
initrd /boot/initrd.img-3.2.0-29-generic
@hernad
hernad / inspiron_5537_info.md
Last active December 29, 2015 15:09
inspiron 5537 touch screen, wifi-backport Atheros QCA9565 / AR9565 (ath9k)

bringout@bringout-Inspiron-5537:~$ lspci

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
00:03.0 Audio device: Intel Corporation Device 0a0c (rev 09)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
@hernad
hernad / vlc.md
Created November 17, 2013 19:18
vlc

VLC video manager

rotacija videa 180 stepeni (play)

 vlc --video-filter transform --transform-type=vflip 1.kerim.mp4

snimi stream u novi fajl _rotated

vlc 3.kerim.mp4 --sout "#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2}:file{dst=3.kerim_rotated.mp4}" --sout-transcode-vfilter transform --transform-type vflip --sout-keep

@hernad
hernad / mingw_ubuntu_crossbuilds.md
Last active December 27, 2015 05:59
mingw32 crossbuilds

set mingw on ubuntu

bringout@bringout-Inspiron-5521:~/postgresql/postgresql-9.3.1$ cat ~/bin/mingw32_env.sh

#!/bin/sh
export CC=i586-mingw32msvc-gcc
export CXX=i586-mingw32msvc-g++
export CPP=i586-mingw32msvc-cpp
export AR=i586-mingw32msvc-ar
export RANLIB=i586-mingw32msvc-ranlib
@hernad
hernad / inspiron_5521_ubuntu_13.10.md
Last active December 27, 2015 04:19
ubuntu 13.10 notebook 5521

vim

sudo apt-get install vim

adobe flash

sudo apt-get install flashplugin-installer
@hernad
hernad / fedora_install.txt
Last active December 19, 2015 08:39
fedora
fonts
===============
http://ruturaj.net/tweaking-gnome3-fedora-fonts-like-ubuntu/
vagrant
================
@hernad
hernad / inspiron_5521.txt
Last active December 18, 2015 18:39
inspiron 5521r
# Fan control
hernad@hernad-Inspiron-5521:~$ cat /etc/i8kmon.conf
# Run as daemon, override with --daemon option
set config(daemon) 1
# Automatic fan control, override with --auto option
set config(auto) 1
@hernad
hernad / router_squid.txt
Last active December 17, 2015 21:59
n56 router
https://forum.openwrt.org/viewtopic.php?id=29747
http://aacable.wordpress.com/2012/08/13/youtube-caching-with-squid-nginx/
/opt/etc/squid/squid.conf
-------------------------------------------
/opt/home/admin # squid -d 9
/opt/home/admin # squid -z
@hernad
hernad / vyatta_adsl.txt
Created May 11, 2013 14:59
vyatta_adsl
https://dev.openwrt.org/ticket/5890
sudo su -
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
@hernad
hernad / adsl.txt
Last active December 17, 2015 05:39
Redirect Packets from ppp0 interface to ethernet interface in linux
http://unix.stackexchange.com/questions/62392/redirect-packets-from-ppp0-interface-to-ethernet-interface-in-linux
....
From what i see on Wikipedia: "OpenFlow is a Layer 2 communications protocol".
ppp gives you a *layer 3 protocol: IP*.
*You basically have a interface which can not carry layer 2 information*.
To go from layer 2 to layer 3 can be done by discarding the layer 2, but on the other way around, you have to actually fill the layer2 part, via routing or whatever.