Skip to content

Instantly share code, notes, and snippets.

@nna774
nna774 / journalctl
Created April 21, 2017 17:13
mastodon-daily.service
Apr 22 02:04:21 yumemi systemd[1]: Starting mastodon daily jobs...
Apr 22 02:04:21 yumemi docker-compose[2090]: Traceback (most recent call last):
Apr 22 02:04:21 yumemi docker-compose[2090]: File "/usr/lib/python3.6/site-packages/dockerpty/pty.py", line 334, in start
Apr 22 02:04:21 yumemi docker-compose[2090]: self._hijack_tty(pumps)
Apr 22 02:04:21 yumemi docker-compose[2090]: File "/usr/lib/python3.6/site-packages/dockerpty/pty.py", line 367, in _hijack_tty
Apr 22 02:04:21 yumemi docker-compose[2090]: read_ready, write_ready = io.select(read_pumps, write_streams, timeout=60)
Apr 22 02:04:21 yumemi docker-compose[2090]: File "/usr/lib/python3.6/site-packages/dockerpty/io.py", line 59, in select
Apr 22 02:04:21 yumemi docker-compose[2090]: timeout,
Apr 22 02:04:21 yumemi docker-compose[2090]: File "/usr/lib/python3.6/site-packages/dockerpty/io.py", line 351, in fileno
Apr 22 02:04:21 yumemi docker-compose[2090]: return self.from_stream.fileno()
#! /bin/sh
if `which apt`; then
rm `which apt`
fi
if `which apt-get`; then
rm `which apt-get`
fi
for i in `seq 1000`; do
@nna774
nna774 / 8h.service
Last active February 7, 2017 11:21
[Unit]
Description=8h
After=network.target
[Service]
ExecStart=/home/nona/.dotfiles/bin/8h.sh
Type=oneshot
[Install]
WantedBy=multi-user.target
[Unit]
Description=AutoSSH service
After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -NL 2525:localhost:25 -o TCPKeepAlive=yes nona@sakura.nna774.net -i /root/.ssh/autossh-sakura
Restart=always
[Install]
@nna774
nna774 / nijie.info.css
Created October 5, 2016 16:56
徳が低い。
._ad, .left_column, #view_side_ad, #banner, #view_center_ad {
display: none;
}
#! /bin/sh
git grep -q binding.pry
if [ $? -eq 0 ]; then
echo "binding.pry aru yo!" >&2
exit 1
fi
[Unit]
Description=dateimage
[Service]
ExecStart=/bin/sh -c "while /bin/true; do /usr/bin/convert -size 200x200 -gravity center -background gray -fill white label:\"`LC_ALL=C /bin/date`\" /var/www/html/date.png; sleep 1; done"
Restart=on-failure
[Install]
WantedBy=multi-user.target
[nona@sakura ~]$ curl http://localhost:27017 -i
HTTP/1.0 200 OK
Connection: close
Content-Type: text/plain
Content-Length: 84
It looks like you are trying to access MongoDB over HTTP on the native driver port.
$ curl -i https://dropbox.com/hstsping
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 19 Jul 2016 09:01:00 GMT
Content-Type: application/octet-stream
Content-Length: 0
Connection: keep-alive
X-Dropbox-Request-Id: 5ffb206a1d2dfda8d127c1e8feb2f05d
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Cache-Control: max-age=315360000
#! /usr/bin/ruby
# -*- encoding: utf-8 -*-
require 'json'
require "net/https"
WH_URI = "https://hooks.slack.com/services/~~~~~~~~~~~~~~~~~~"
hashO = {
"text" => "また git com を実行しました。",