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); 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
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
Wyłącz automatyczne aktualizacje
http://www.centrumxp.pl/Aktualnosci/3683,100-zuzycia-procesora-przez-proces-svchostexe.aspx
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
aplikacje na firefox OS – strona 37
mosh, ssh offline – strona 62
android keyboard hacker- strona 76
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.
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/
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
Ubuntu własna dystrybucja UCK – strona31
ImageMagic obróbka zdjęć z wiersza poleceń – strona78
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
aptitude install speedometer speedometer -s -tx eth0 -rx eth0
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
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
Blogi oparte na CakePHP
add-apt-repository ppa:samrog131/ppa apt-get update apt-get install copyq copyq
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
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=”"