Linux

ダウンロード
# wget

依存パッケージのインストール
# yum install libpcap-devel ncurses-devel

##build iftop##
# tar ...

Linux

$ sudo apt-get install nethogs

sudo nethogs
q で終了、m で表示の変更(現在のbps/総送受信量MB,KB,B)ができる。

引数下記

-V バー ...

Python

方法1
>>> import uuid
>>> node = uuid.getnode()
>>> mac = uuid.UUID(int=node) ...

Python

方法1
opfile=open(‘d:\\t’,’rb’)
s=opfile.read(1)
byte=ord(s)
print hex(byte) ...

VB.net

1.cookieを書き込む
HttpCookie cookie = new HttpCookie(“id_admin_”);
cookie.Value = model.id_admin_.ToS ...

JavaScript

サンプルコード

<script language=”JavaScript” >
function chkaction(v){
if(v==0){
document ...

Linux

ダウンロード
#tar zxvf redis-2.8.9.tar.gz
#cd redis-2.8.9
#make
#make install

起動
#./redis-se ...

JavaScript

サンプルコード

<script th:inline=”javascript”>
var openid =/*]*/
</script>

JavaScript

サンプルコード
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”

<html>

JavaScript

サンプルコード
function ClearAllTextFunc(divInput){
var txts = document.getElementById(‘divInput’).getEl ...

IOS

サンプルコード:

+ (CGFloat)diskOfAllSizeMBytes{
CGFloat size = 0.0;
NSError *error;
NSDictionary *dic = a ...

IOS

サンプルコード
+ (NSString *)jsonPrettyStringEncoded:(NSArray *)array{
if () {
NSError *error;
NSData *jsonD ...

MySQL

mysql> grant all privileges on *.* to ‘root’@’%’ identified by ‘pwdstartnews’ ...

Linux

操作コマンド

firewall-cmd --zone=public --add-port=8080/tcp --permanentfirewall-cmd --reload

firewalldを起動
systemct ...

Linux

1.Dockerのインストール
#yum -y install Docker-io
Dockerバージョンの確認
#docker -v
Docker version 1.9.1, build ab77b ...

Linux

1.OSバージョンの確認
$ uname -r
3.10.0-229.el7.x86_64

2.yumでDocker Engineをインストール
$ sudo yum update
$ su ...

PHP

サンプルコード
function fun_insert_sort($arr) {
$count = count($arr);
for ($i=1; $i<$count; $i++) {
for ( ...

PHP

サンプルコード
<?php
$var=350;

$int_options = array(
“options”=>array
(
“m ...