-
Ensure a docker-compose.yml file exists inside a
codimd
directory. -
Put the restore.sh script near it.
-
Follow the script below:
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
#!/usr/bin/env python | |
import sys | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
# addr = ("127.0.0.1", 8888) | |
addr = (sys.argv[1], int(sys.argv[2])) | |
srv = BaseHTTPServer.HTTPServer(addr, SimpleHTTPRequestHandler) | |
srv.serve_forever() |
Content-Type: multipart/encrypted なら問題なく扱えるのに、 ascii-armor な text/plain で 送られてくるPGPの暗号化メール (traditional PGP というらしい) を復号してくれない場合
メッセージを表示しつつ
:push <check-traditional-pgp>
でOKなら、設定で
sshd_config では X11Forwarding yes なのに SSH で X11 forwarding request failed on channel x な時
sshd_config に下記を追加で解消
AddressFamily inet
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/sh | |
set -o nounset | |
network="10.1.1."; | |
network_bits="24"; | |
gateway="10.1.1.254"; | |
gateway_mac="aa:bb:cc:11:22:33"; | |
nic="$1"; | |
real_macaddr=$(cat /sys/class/net/${nic}/address); | |
current_ip=$(hostname -I | cut -d ' ' -f1); |
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
# $ ipython profile create androguard | |
# $ cd ~/.ipython/profile_androguard/startup/00-androguard.py | |
# $ ipython --profile=androguard | |
# In [1]: a, d, dk, dx, gx = set_target_apk(apk) | |
import sys | |
import os | |
def set_target_apk(apk): | |
""" |
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
# Digest | |
# use gpg --version to list to get a list of available algorithms. | |
personal-digest-preferences SHA512 |
下記からパッチ (vmware_workstation_10.0.1_patch_for_linux_3.14.0.txt) を入手 http://pastebin.com/VKRDd56W
$ sed -e 's/.$//' vmware_workstation_10.0.1_patch_for_linux_3.14.0.txt > vmware_workstation_10.0.1_patch_for_linux_3.14.0 $ cd /usr/lib/vmware/modules/source $ ls -1 *.tar | sudo xargs -I {} cp {} {}.bak $ ls -1 *.tar | sudo xargs -I {} tar xvf {} $ sudo patch -p1 -i vmware_workstation_10.0.1_patch_for_linux_3.14.0 $ パッチをあてたソースで、vmblock.tar, vmci.tar, vmmon.tar, vmnet.tar, vsock.tar を作成
- 下位の n ビットの値を取り出す
val & (2**n - 1)
例: 96 の 下位6ビットの値を取り出す 01100000 // 96 00111111 // (2**6)-1 -> 63 (077)
NewerOlder