root@docker-test:~# apt-get update && apt-get dist-upgrade
root@docker-test:~# apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: /tmp/tmp.fJD5sZHPlI/gpg.1.sh --keyserver
hkp://p80.pool.sks-keyservers.net:80
--recv-keys
58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mWebContents.setDownloadListener(new DownloadListener() { | |
@Override | |
public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimeType, long contentLength) { | |
try { | |
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(url)); | |
request.setMimeType(mimeType); | |
request.addRequestHeader("User-Agent", userAgent); | |
request.setDescription("Downloading file"); |
id_rsa 파일의 비밀번호 변경하기
$ ssh-keygen -p -f ~/.ssh/id_rsa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Flex Box</title> | |
<style media="screen"> | |
html, body { | |
height: 100%; | |
} |
주말 잉여 작업으로, OneDrive 한글 글자 풀리는 문제를 수정하는 스크립트를 작성.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
require 'awesome_print' | |
# get token from | |
# https://dev.onedrive.com/auth/msa_oauth.htm | |
header = "bearer EwBwAq1DBAAUGCCXc8wU/zFu9QnLdZXy+YnElFkAAe2M7OiS2LTXw28pefcVeF/lD7lbUyoJWhgVcWoI5ohI304OPVW3u1QXZOx9xQpGe6B7OHGdg3BPsMntYjh6QX4/Faf4EOxr2HdkxiVhh823e1IsxmLg+2oZN6U0sQIDzAuu4kZVgiFfKcKnNn0ilfl71NvNuX2WXQ7jOM8n4G9B1OkAoL0UvbyR96nstGdB98BHB+VhXtuv/ZABZpnOh1gH94YCzdCoE3jRwuvL+oHU58xQAhcnHVhz0xamaeipek2reTIba5784dEn2STgPEawbQTFBmaFoQKs/TWc33IeMj96uitZKcZLijctxk8tyG2ZFidPlTA945jLV4MqTysDZgAACOuffgkcouWsQAFXcrUgo6fLwCK7I4G7bgDjW1t5oT42ve4XveA0IbsGwyS78/LVuNjQk6kPulxaErj7mN9B/1znpUc5ggQr/sY86RgQvKJUwgE7vQg1E4vNsubHKoDWF9tdQZmOXw0NS/JVLPEE0g9NOsIeG5qlcz234fg+v92BXSmkTA6bVphIAXxG2KsZlnKOH8XwrZCEJSL+gvDaXeQ+VS8Omcv39Aws+U0TTQkAfUmc+KZ9o/1oF1cjJR4pa+cEqM4xJd/8VhZBTTwJx5R33x7jpHCOUFRH91o3IRq28I8qAT01UcE2eLbKXAvgl1w7Kh6IepqeIw65Wu2vfkPhZboXQiRPf2+pcLostsbsT6qKaRnXXYROyLMI86Q/Rbf8XnM8VFIVDcOEaRvaafHwhRAapF1HQU2y4mMo3wjzeRSEk41j9UZZd18B" | |
pass = {content_type: "application/json", accept: :json, author |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: unicorn_rails | |
# Required-Start: $all | |
# Required-Stop: $network $local_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start unicorn rails at boot | |
# Description: Enable unicorn_rails at boot time. | |
### END INIT INFO |