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
[Unit] | |
Description=mackerel | |
After=network.target | |
[Service] | |
User=root | |
Group=root | |
Type=simple | |
ExecStart=/usr/bin/mackerel-agent |
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 | |
# coding=utf-8 | |
import cv2 | |
import numpy as np | |
img = cv2.imread('./images/s01.png') | |
height, width, channels = img.shape | |
g_img = cv2.bilateralFilter(img, 9, 75, 75) |
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 | |
echo "Uninstall VMware Fusion 4.x, 5.x, 6.x, 7.x, 8.x" | |
rm -r \ | |
"/Library/Application Support/VMware" \ | |
"/Library/Application Support/VMware Fusion" \ | |
"/Library/Preferences/VMware Fusion" \ | |
"~/Library/Application Support/VMware Fusion" \ | |
"~/Library/Caches/com.vmware.fusion" \ |
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
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(open('products.html'), 'html5lib') | |
for product in soup.select('#sec-02 > ul.col-5.heightLineParent > li'): | |
name = product.select_one('.ttl').string | |
try: | |
price = product.select('p.price > span')[0].string | |
except IndexError: |
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
/^[-a-z0-9~!$%\^&*_=+}{\'?]+(\.[-a-z0-9~!$%\^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|post|pro|tel|travel|xxx|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i |
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
# interfaces(5) file used by ifup(8) and ifdown(8) | |
auto lo | |
iface lo inet loopback | |
auto br0 | |
iface br0 inet static | |
address XXX.XXX.XXX.XXX | |
broadcast XXX.XXX.XXX.XXX | |
netmask XXX.XXX.XXX.XXX | |
gateway XXX.XXX.XXX.XXX |
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
<component name="libraryTable"> | |
<library name="Go SDK"> | |
<CLASSES> | |
<root url="file:///opt/go/src" /> | |
</CLASSES> | |
<SOURCES> | |
<root url="file:///opt/go/src" /> | |
</SOURCES> | |
</library> | |
</component> |
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
Architecture: x86_64 | |
CPU op-mode(s): 32-bit, 64-bit | |
Byte Order: Little Endian | |
CPU(s): 2 | |
On-line CPU(s) list: 0,1 | |
Thread(s) per core: 2 | |
Core(s) per socket: 1 | |
Socket(s): 1 | |
NUMA node(s): 1 | |
Vendor ID: GenuineIntel |
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
[NetDev] | |
Name=bridge0 | |
Kind=bridge | |
[Bridge] | |
ForwardDelaySec=1 |
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
// ==UserScript== | |
// @name 動画配信管理システムからURLを抜くやつ(認証なし) via RTMP | |
// @namespace http://dsmsf.doshisha.ac.jp/ | |
// @version 0.1 | |
// @description foo | |
// @author |)05|-|!5|-|4 (_)|\\|!\\/3|25!7`/ | |
// @match http://dsmsf.doshisha.ac.jp/Gateway/contentPlayAction.do?contentId=* | |
// @grant none | |
// ==/UserScript== |
OlderNewer