Photoshop tutorials Kategoria: Tutoriale | Tagi: photoshop | Autor: Bartłomiej Gałęzia

Codeigniter force download Kategoria: Codeigniter | Autor: Bartłomiej Gałęzia

http://ellislab.com/codeigniter%20/user-guide/helpers/download_helper.html

 
Loading this Helper

This helper is loaded using the following code:

$this->load->helper('download');

The following functions are available:

force_download(filename‚, ‚data‚)

Generates server headers which force data to be downloaded to your desktop. Useful with file downloads. The first parameter is the name you want the downloaded file to be named, the second parameter is the file data. Example:

$data = 'Here is some text!';
$name = 'mytext.txt';
force_download($name, $data);

If you want to download an existing file from your server you’ll need to read the file into a string:

$data = file_get_contents("/path/to/photo.jpg"); // Read the 
file's contents
$name = 'myphoto.jpg';
force_download($name, $data);

Bitcoin miner on linux Kategoria: Linux | Tagi: bitcoin | Autor: Bartłomiej Gałęzia

Ubuntu:

add-apt-repository ppa:unit3/bfgminer
apt-get update
apt-get install bfgminer

Debian:

2: Run „apt-get update”

3: Run „apt-get install git autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncurses5-dev”

4: Run „git clone git://github.com/luke-jr/bfgminer.git”

5: Enter the bfgminer directory

6: Run „./autogen.sh”

7: Run „./configure” (if you do not want to use GPUs on the machine, add –disable-opencl)

8: Run „make”

9: After make completes, you can run bfgminer directly (may require sudo), or create a shell script that includes your arguments.

Running BFGMiner:

./bfgminer -o 
stratum+tcp://stratum.btcguild.com:3333 -u username_workername -p 123 -S all –icarus-options 115200:1:1 –icarus-timing 3.0=100

Joomla admin login error 500 Kategoria: WWW | Tagi: joomla | Autor: Bartłomiej Gałęzia

Przy próbie logowania do panelu admina otrzymujemy błąd 500 nieznany błąd

należy nadać uprawnienia do zapisu do katalogów

error

logs

http://stackoverflow.com/questions/13086557/joomla-login-error-500-when-the-username-and-password-this-incorrect

Kamerka z laptopa lutowanie na usb Kategoria: Sprzęt | Tagi: webcam | Autor: Bartłomiej Gałęzia

svhost zużywa 99% procesora Kategoria: Windows | Autor: Bartłomiej Gałęzia

Linux Magazine - 03/14 (121) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

RaspberryPI jako DNS i DHCP – strona 42

odzyskiwanie danych, testdisk, ddrescue, gdisk – strona 24

Arduino, przekaźnik elektryczny – strona 32

Duplicati, backupy w chmurze – strona 47

MediaCrush, przechowywanie multimediów – strona 70

Linux Magazine - 12/13 (118) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

aplikacje na firefox OS – strona 37

mosh, ssh offline – strona 62

android keyboard hacker- strona 76

Linux Magazine - 11/13 (117) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

Nmap – skanowanie portów itp – strona 28

ndiff – porównywanie 2 plików

Raspi soft do monitoringu linuxa – phpsysinfo, raspcontrol – strona 31 – jw

sprawdzanie dziur w systemach – fwknop, fail2ban, rootkit hunter, chkrootkit, whowatch – strona 50 – jw.

 

Linux Magazine - 07/13(113) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

Zarządzanie wieloma wordpressami „infiniteWP” – strona 52

Soft do inwentaryzacji sprzętu I-nex – strona 58

add-apt-repository ppa:nemh/gambas3

add-apt-repository ppa:i-nex-development-team/stable

aptitude update

aptitude install i-nex

 

Galerie zdjęć w php – strona 84

https://github.com/erost/php-microgallery

http://www.ubergallery.net/

 

Linux Magazine - 06/13(112) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

XMBC raspi – strona 16

Netscan i monyt na androida – strona 36

Android i ubuntu MTP – strona 38

wyszukiwanie pełnotekstowe SOLR – strona 61

Statystyki systemowe dstat, htop  – strona 63

Fiszki swoje – freshmemory  – strona 81

 

Linux Magazine - 04/08(50) Kategoria: Linux Magazine | Autor: Bartłomiej Gałęzia

Ubuntu własna dystrybucja UCK – strona31

ImageMagic obróbka zdjęć z wiersza poleceń – strona78

Komendy linux Kategoria: Linux | Autor: Bartłomiej Gałęzia

lsof – wyświetla otwarte pliki

sudo pdbedit -L -v - pokazuje pełne info o użytkownikach

file -s /dev/sda - pokazuje pełne info o urządzeniu

Speedometer Kategoria: Linux | Autor: Bartłomiej Gałęzia

aptitude install speedometer
speedometer -s -tx eth0 -rx eth0

Wyłączanie linuxa z poziomu cmd w windows Kategoria: Linux | Tagi: cmd | Autor: Bartłomiej Gałęzia

Install putty

close.bat

putty.exe -ssh -2 -l root -pw password -m c:\close.sh 192.168.1.1

close.sh

#!/bin/bash
shutdown -h -P now

Linux dziennik Kategoria: Linux | Tagi: logi | Autor: Bartłomiej Gałęzia

lastlog
faillog
auth.log
user.log
id – id użytkowników
w – info o użytkownikach
finger – info o użytkownikach
finger -sl

who -dbprt
-d nieaktywne procesy
-b czas ostatniego uruchomienia systemu
-p aktywne procesy
-r runlevel
-t czas ostatniej zmiany zegara

Systemy WWW Kategoria: PHP | Tagi: blog | Autor: Bartłomiej Gałęzia

Blogi oparte na CakePHP

http://croogo.org/

http://bolt.cm/

 

http://hluk.github.io/CopyQ/

add-apt-repository ppa:samrog131/ppa
apt-get update
apt-get install copyq

copyq

Nodimm - Xfce - nie działa Kategoria: Linux | Autor: Bartłomiej Gałęzia

vim /etc/lightdm/lightdm.conf

xserver-command=X -s 0 -dpms

14.04

vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
xserver-command=X -s 0 -dpms

Komp stoi na grubie po niepoprawnym zamknięciu Kategoria: Linux | Tagi: grub | Autor: Bartłomiej Gałęzia

vim /etc/default/grub

dodaj linię

GRUB_RECORDFAIL_TIMEOUT=1
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_RECORDFAIL_TIMEOUT=1
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=”"