show users
who -u
kill sessions with username
skill -KILL -u username
packet_write_wait: Connection to port 22: Broken pipe
configure client host /etc/ssh/ssh_config
Host *
ServerAliveInterval 30
ServerAliveCountMax 5
who -u
skill -KILL -u username
# Options used by NetBeans launcher by default, can be overridden by explicit # command line switches: netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true"русский:
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --locale ru:RU"
английский:# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --locale en:EN"
sudo apt-get install vim && mkdir -p ~/.vim && cd ~/.vim \ && wget -q -O bash_support.3.9.zip http://www.vim.org/scripts/download_script.php?src_id=17122 \ && unzip -q bash_support.3.9.zip
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so xdebug.remote_enable=on xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler="dbgp"
#include <iostream>
#include "Poco/Data/MySQL/Connector.h"
#include "Poco/Exception.h"
#include "Poco/Data/Session.h"
#include "Poco/Data/Statement.h"
using namespace std;
using namespace Poco::Data;
using Poco::Data::Session;
int main() {
MySQL::Connector::registerConnector();
string user = "root";
string password = "111";
string host = "localhost";
string db = "test";
string connection_str = "user=" + user + ";password=" + password + ";host="
+ host + ";db=" + db + ";auto-reconnect=true";
string collation_str = "set collation_connection=utf8_general_ci, "
"character_set_results=utf8, "
"character_set_connection=utf8, "
"character_set_client=utf8";
Session ses("MySQL", connection_str);
string out;
try {
ses << "SELECT name FROM `test` LIMIT 1", into(out), now;
} catch (Poco::Exception &e) {
cout << e.displayText() << endl;
}
cout << "without collation: " << out << endl;
try {
ses << collation_str, now;
ses << "SELECT name FROM `test` LIMIT 1", into(out), now;
} catch (Poco::Exception &e) {
cout << e.displayText() << endl;
}
cout << "with collation: " << out << endl;
return 0;
}
output:
without collation: ???? with collation: тест
-- phpMyAdmin SQL Dump -- -------------------------------------------------------- -- -- Структура таблицы `test` -- CREATE TABLE IF NOT EXISTS `test` ( `id` int(11) NOT NULL, `name` varchar(250) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `test` -- INSERT INTO `test` (`id`, `name`) VALUES (1, 'тест');задать глобальное значение utf8 в /etc/my.cnf:
[mysqld] # Settings user and group are ignored when systemd is used. # If you need to run mysqld under different user or group, # customize your systemd unit file for mysqld according to the # instructions in http://fedoraproject.org/wiki/Systemd datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [client] default-character-set=utf8 [mysqld] character_set_server=utf8 collation_server=utf8_general_ci
wget http://hudson-ci.org/downloads/redhat/hudson.rpm2. установить
yum install hudson.rpm3. запустить
service hudson start4. проверяем
sed -i '719s/font-size: 7.5pt/font-size: 10.5pt/' /usr/share/gnome-shell/theme/gnome-shell.css

.app-well-app > .overview-icon, .remove-favorite > .overview-icon, .search-result-content > .overview-icon { border-radius: 4px; padding: 3px; border: 1px rgba(0,0,0,0); font-size: 7.5pt; color: white; transition-duration: 100; text-align: center; } |
.app-well-app > .overview-icon, .remove-favorite > .overview-icon, .search-result-content > .overview-icon { border-radius: 4px; padding: 3px; border: 1px rgba(0,0,0,0); font-size: 10.5pt; color: white; transition-duration: 100; text-align: center; } |
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'2. установить необходимые пакеты
su -c 'yum install gstreamer-ffmpeg gstreamer-plugins-ugly'
mcedit /etc/phpmyadmin/config.inc.php2. добавить строку
$cfg['LoginCookieValidity'] = 36000;// 10 hours3. открыть в редакторе /etc/php5/apache2/php.ini
mcedit /etc/php5/apache2/php.ini4. изменить параметр session.gc_maxlifetime
session.gc_maxlifetime = 360005. перезагрузить apache
/etc/init.d/apache2 restart
/* * Directories for saving/loading files from server */ $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; $cfg['LoginCookieValidity'] = 36000;//10 hours ///etc/php5/apache2/php.ini
; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime session.gc_maxlifetime = 36000
lsb_release -a
No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 6.0.3 (squeeze) Release: 6.0.3 Codename: squeeze
cat /etc/debian_version
6.0.3
sudo apt-get install unp
unp archive.tar.gz
if (localStorage["wordlist"]) {
array_words = JSON.parse(localStorage["wordlist"]);
} else {
array_words = [];
}
добавление элементов в массивarray_words.push("green");
array_words.push("cat");
запись массива в localStoragelocalStorage["wordlist"] = JSON.stringify(array_words);
sudo dmidecode -t 2
# dmidecode 2.9 SMBIOS 2.4 present. Handle 0x0005, DMI type 2, 8 bytes Base Board Information Manufacturer: MICRO-STAR INTERNATIONAL CO., LTD Product Name: MS-7253 Version: 1.0 Serial Number:
sudo lshw -c bus | head
*-core
description: Motherboard
product: MS-7253
vendor: MICRO-STAR INTERNATIONAL CO., LTD
physical id: 0
version: 1.0
![]() |
| GRUB меню |
![]() |
![]() |
| выбор однопользовательского режима |
![]() |
| однопользовательский режим |
su -c 'blkid'
/dev/sdb1: LABEL="sys" UUID="E88079918079674A" TYPE="ntfs" /dev/sdb5: LABEL="doc" UUID="649AFDDD9AFDABA4" TYPE="ntfs" /dev/sda1: UUID="a2a4a373-680c-4b45-8c70-2f87daab7cc8" TYPE="ext3" /dev/sda5: UUID="71c6f7d6-1ca8-4896-ba2f-782c02c9da27" TYPE="swap"
su -c 'apt-get install ntfs-3g'
su -c 'mkdir /media/doc'
su -c 'nano /etc/fstab'
# <file system> <mount point> <type> <options> <dump> <pass> /dev/sdb5 /media/doc ntfs-3g defaults 0 0
su -c 'reboot'