Instalacja cURL dla PHP Kategoria: PHP | Tagi: curl | Autor: Bartłomiej Gałęzia

sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart

Nodimm Ubuntu - LXDE Kategoria: Linux | Tagi: gsettings, nodimm, ubuntu | Autor: Bartłomiej Gałęzia

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
gsettings set org.gnome.settings-daemon.plugins.power active false



Ubuntu allow root ssh login Kategoria: Linux | Tagi: ssh | Autor: Bartłomiej Gałęzia

vim /etc/ssh/sshd_config

PermitRootLogin yes

service ssh restart

Debian Ethetape autostart Kategoria: Linux | Tagi: debian, etherape | Autor: Bartłomiej Gałęzia

touch ~/.config/autostart

vim ~/.config/autostart

[Desktop Entry]
Type=Application
Exec=sudo /usr/bin/etherape
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_GB]=etherape
Name=etherape
Comment[en_GB]=etherape
Comment=etherape

gnome-session-properties

Add

nazwa_polecenia

Nodimm debian - GNOME Kategoria: Linux | Tagi: debian, gnome | Autor: Bartłomiej Gałęzia

dconf-editor

lub

gsettings set

 

gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 0
gsettings set org.gnome.desktop.session idle-delay 0

SSHFS - montowanie folderów po ssh Kategoria: Linux | Autor: Bartłomiej Gałęzia

sshfs user@host:/home/user/folder /mnt/share -o allow_other
-p port


odmontowuje

fusermount -u /mnt/share
$string = preg_replace ("/[\"']/", '', $string);


http://forum.php.pl/index.php?showtopic=98808

usunięcie skrajnych cudzysłowów

http://php.net/stripslashes



Widget AFPW - https://wordpress.org/plugins/advanced-featured-post-widget/
domyślnie czyści wszystkie znaczniki z wpisów.

Aby temu zapobiec należy zmienić w pliku:
wp-content/plugins/advanced-featured-post-widget/class-lib/A5_ExcerptClass.php

linię

$text = (empty($format)) ? strip_tags(trim(preg_replace('/\s\s+/', ' ', str_replace(array("\r\n", "\n", "\r", "&nbsp;"), ' ', $excerpt_base)))) : preg_replace('#(<a.*?><img.*?></a>)|(<img.*?>)#i', '', $excerpt_base);

na

$text = $excerpt_base;

oraz zakomentować linię:

$text = preg_replace('/[^"](https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$][^"
]/i', '', $text);

Linux Magazine – 01/2015 (131) Kategoria: Linux Magazine | Tagi: CD/DVD, facebook, skrypt | Autor: Bartłomiej Gałęzia

YAD tworzenie okien dialogowych do skryptów - s.56

Sprawdzanie błędów nośników optycznych - QPxTool - s.62

Facebook z wiersza poleceń - FACY - s.70

Linux Magazine – 12/2014 (130) Kategoria: Linux Magazine | Tagi: ASCII, raspi, youtube | Autor: Bartłomiej Gałęzia

Youtube bez przeglądarki - AtraCI, minitube, musictube - s.14

Raspberry Pi B+ - s.44

LSOF - lista otwartych plików - s.66

image to ASCII - sl, cacafire, toilet - s.76

Zobacz całość

http://support.microsoft.com/kb/307545/pl
boot from cd
'r'

md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak

delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:
windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default

exit

Netbeans 8.0 zawijanie wierszy Kategoria: PHP | Tagi: netbeans | Autor: Bartłomiej Gałęzia

Tools > Plugins > Toggle line wrap

http://plugins.netbeans.org/plugin/45663/toggle-line-wrap

Prawy dolny róg: Wrap: words

OCS Inventory server installation Kategoria: Linux | Tagi: debian, OCS | Autor: Bartłomiej Gałęzia

http://wiki.ocsinventory-ng.org/index.php/Documentation:Server/pl

Wymagania:

  • Apache wersja 1.3.33 lub wyższa / Apache wersja 2.0.46 lub wyższa.
    • Mod_perl wersja 1.29 lub wyższa.
    • Mod_php wersja 4.3.2 lub wyższa.
  • PHP 4.3.2 lub wyższa, z ZIP i wsparciem GD.
  • PERL 5.6 lub wyższa.
    • Perl module XML::Simple wersja 2.12 lub wyższa.
    • Perl module Compress::Zlib wersja 1.33 lub wyższa.
    • Perl module DBI wersja 1.40 lub wyższa.
    • Perl module DBD::Mysql wersja 2.9004 lub wyższa.
    • Perl module Apache::DBI wersja 0.93 lub wyższa.
    • Perl module Net::IP wersja 1.21 lub wyższa.
    • Perl module SOAP::Lite wersja 0.66 lub wyższa (opcjonalnie)
  • MySQL wersja 4.1.0 lub wyższa z aktywowanym mechanizmem składowania InnoDB.
  • narzędzie Make takie jak GNU make.=

 

Zobacz całość

OCS Agent install Linux Kategoria: Linux | Tagi: OCS | Autor: Bartłomiej Gałęzia

http://www.ocsinventory-ng.org/en/download/register-download-ocs-inventory-ng-agent-for-unix.html
http://wiki.ocsinventory-ng.org/index.php/Documentation:UnixAgent/pl

apt-get install dmidecode libxml-simple-perl libio-compress-perl libnet-ip-perl libwww-perl libdigest-md5-perl libnet-ssleay-perl
wget Ocsinventory-Unix-Agent-2.1.1.tar.gz
tar -xf Ocsinventory-Unix-Agent-2.1.1.tar.gz

cd Ocsinventory-Unix-Agent-2.1.1
perl Makefile.pl
make
make install

Dodawanie Windows 7 do domeny samba Kategoria: Windows | Tagi: domena, samba | Autor: Bartłomiej Gałęzia

https://wiki.samba.org/index.php/Registry_changes_for_NT4-style_domains

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]

"DomainCompatibilityMode"=dword:00000001
"DNSNameResolutionRequired"=dword:00000000