- Connect through SSH
ssh -l <user name> -i <pem file> <server ip>
- Copy file
scp -i @:
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:sec="http://www.springframework.org/schema/security" | |
xmlns:cas="http://unicon.net/schema/cas" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/security | |
http://www.springframework.org/schema/security/spring-security-3.1.xsd |
public static void main(String[] args) { | |
String text = "<a href=\"http://www.google.com\">google</a>"; | |
Pattern p = Pattern.compile("<a href=\"(.*?)\">"); | |
Matcher m = p.matcher(text); | |
if (m.find()) { // use find(), don't use matches() | |
System.out.println(m.group(1)); | |
} | |
} |
ssh -l <user name> -i <pem file> <server ip>
scp -i @:
{ | |
"greeting": "おはようございます", | |
"name": "先生" | |
} |
django-admin.py startproject mysite
python manage.py startapp polls
var fs = require('fs');
var data = fs.readFileSync('text.txt', 'utf8');
console.log(data);
import sys | |
import ctypes | |
import time | |
EnumWindows = ctypes.windll.user32.EnumWindows | |
EnumChildWindows = ctypes.windll.user32.EnumChildWindows | |
EnumWindowsProc = ctypes.WINFUNCTYPE(ctypes.c_bool, ctypes.POINTER(ctypes.c_int), ctypes.POINTER(ctypes.c_int)) | |
GetWindowText = ctypes.windll.user32.GetWindowTextW | |
GetWindowTextLength = ctypes.windll.user32.GetWindowTextLengthW | |
IsWindowVisible = ctypes.windll.user32.IsWindowVisible |
<?xml version="1.0"?> | |
<web-app | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://java.sun.com/xml/ns/javaee" | |
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" | |
id="WebApp_ID" version="3.0"> | |
<servlet> | |
<servlet-name>My Servlet</servlet-name> |
import traceback | |
from PIL import Image | |
def resize(): | |
filePath = 'example.jpg' | |
ratio = 0.5 | |
image = Image.open(filePath) | |
width = image.size[0] |
<h:selectOneMenu value="#{manageStudent.student.gender}">
<f:selectItem itemLabel="- Select Gender -" itemValue=""/>
<f:selectItems value="#{manageStudent.genders}"/>
</h:selectOneMenu>