This file contains hidden or 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
/* Copyright 2020 sekigon-gonnoc | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or 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
Vagrant.configure('2') do |config| | |
config.vm.box = 'ubuntu/focal64' | |
config.vm.hostname = 'qmk' | |
config.vm.provider :virtualbox do |vb| | |
vb.gui = false | |
end | |
config.vm.provision 'shell', inline: <<-SHELL | |
apt update |
This file contains hidden or 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 perl | |
use warnings; | |
use strict; | |
my $msg = {}; | |
my $delivery = {}; | |
while (<>) { | |
if ($_ =~ /^([^\s]+) info msg ([\d]+): bytes [\d]+ from ([^\s]+)/) { |
This file contains hidden or 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 | |
from datetime import datetime | |
import Adafruit_DHT as DHT | |
SENSOR_TYPE = DHT.DHT22 | |
DHT_GPIO = 18 | |
print(datetime.now().strftime('%Y/%m/%d %H:%M:%S') + "\t"), |
This file contains hidden or 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 os | |
import stat | |
import datetime | |
import pyexiv2 | |
argvs = sys.argv | |
argc = len(argvs) |
This file contains hidden or 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 re | |
from datetime import datetime | |
for line in sys.stdin: | |
m = re.search('\[(\d{2}/[A-Z][a-z]{2}/\d{4}:\d{2}:\d{2}:\d{2}) .{0,6}\]', line) | |
if m: | |
d = datetime.strptime(m.group(1), '%d/%b/%Y:%H:%M:%S') |
This file contains hidden or 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 re | |
from datetime import datetime | |
ips = [] | |
count = [] | |
first = [] | |
last = [] |
This file contains hidden or 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 ubuntu:xenial | |
MAINTAINER akagisho <[email protected]> | |
RUN sed -i -e "s|http://archive.ubuntu.com/|http://jp.archive.ubuntu.com/|" /etc/apt/sources.list | |
RUN apt update \ | |
&& apt install -y sudo curl git libfontconfig-dev fonts-takao* chromium-browser supervisor | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ |
This file contains hidden or 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
const viewportWidth = 1200; | |
const viewportHeight = 900; | |
const argv = process.argv; | |
var path = require('path'); | |
const puppeteer = require('puppeteer'); | |
if (argv.length < 3) { | |
console.error('Usage: node ' + path.basename(argv[1]) + ' <path> <url>'); | |
process.exit(1); |
This file contains hidden or 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
<?php | |
require_once 'vendor/autoload.php'; | |
use ZabbixApi\ZabbixApi; | |
$url = $argv[1]; | |
$user = $argv[2]; | |
$pass = $argv[3]; | |
$file = $argv[4]; |
NewerOlder