Ruby

rubyコード:
require ‘yaml’

hash = {1 => ‘sqlite3’, 2 => ‘postgresql’ ...

Ruby

rubyコード:
class String
def rot13
self.tr “A-Za-z”, “N-ZA-Mn-za-m”
end
end ...

Ruby

rubyコード:
#gem install net-ssh
#gem install net-sftp

require ‘rubygems’
require ‘n ...

Ruby

rubyコード:
#gem install fast-aes

require ‘rubygems’
require ‘fast-aes’

# ke ...

Ruby

rubyコード:
class Connection
def request
raise “Abstract method”
end
end

class Mys ...

Ruby

rubyコード:
function win_to_utf8 ($string) {

$in_arr = array (
chr(208), chr(192), chr(193), chr(194),

Java

javaコード下記:
public class ImageTest {
@Inject
private ComponentResources _resources;

public Link getC ...

Windows10

ダウンロード:
vectorサイトからダウンロード
softpediaサイトからダウンロード
cnetサイトからダウンロード

更新内容:

add settings/Play sound whe ...

Linux

1.アカウント管理

vim/etc/passwd
rootのuidを変更して普通のユーザーになる
普通のユーザーのuidを0に変更して、rootユーザになる
2 ポート管理
2.1 .vi/ ...

Linux

1.nethogsをインストール

# yum install nethogs libpcap-dev libpcap
2.nethogsの使い方
# nethogs -h
usage: nethog ...

Server

 

1.apachetopのインストール
# rpm -ivh
# yum install apachetop
2.apachetopの使い方
# apachetop -h ...

C#

書式
var 変数名 = new Dictionary<int, string>();
変数名「キー」=更新値
使用例

using System;using System.Collection ...

Swift

説明
タプルという複数の異なる型のデータをひとまとめにできる機能があります
形式
let 変数名=(string型文字,int型文字,double型文字,xxx)

使用例

使用例//タプル宣言 ...

CentOS

操作方法
# firewall-cmd –add-port=80/tcp –permanent
success
# firewall-cmd –reload
succ ...

Swift

書式
label.textColor = xxx
使用例

import UIKit class ViewController: UIViewController { @IBOutlet weak var labe ...

Windows10

ダウンロード:
提供元サイトからダウンロード
cnetサイトからダウンロード
softpediaサイトからダウンロード

更新内容:

Spooler dependent services are ...

PowerShell

書式
switch(変数名)
使用例

$cftC = 58#変数1$pA = 56#変数2$pB = 57#変数3$pC = 58#switch文switch ($cftC) { $pA { echo "resu ...

batch,Windows10

書式
!文字列:~数字1,数字2!(文字列を切り取る)
set 変数B=0%%変数A
使用例

@echo off setlocal enabledelayedexpansionset m=0for/l % ...