Skip to content

Instantly share code, notes, and snippets.

View modeverv's full-sized avatar

modeverv modeverv

  • student of the open university of japan
  • Himeji,Japan
View GitHub Profile
@modeverv
modeverv / file0.txt
Last active January 29, 2019 09:57
Let's Encryptのワイルドカード証明書の取得と自動更新について(MyDNS)(2018/08現在) ref: https://qiita.com/lovesaemi/items/ed4db2be5eebae69202d
# Ubuntu
sudo apt install certbot
# AmazonLinux2
sudo yum install certbot
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
require 'base64'
if ARGV.size != 1
puts "usage: ruby base64decode.rb <file of base64>"
exit(1)
end
base64string = IO.read(ARGV[0])
puts Base64.decode64(base64string)
@modeverv
modeverv / vscode_markdown_preview_enhanced_custom.css
Created March 10, 2018 16:38
vscode markdown preview enhanced custom css
/* Please visit the URL below for more information: */
/* https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
// modify your style here
// eg: background-color: blue;
h1 {
border-left: solid 10px lightblue;
border-bottom: solid 2px lightblue;
package main
import f "fmt"
func reseiver(ch chan int) {
for {
i := <-ch
f.Println(i)
}
}
@modeverv
modeverv / makepodcast.rb
Last active February 18, 2018 18:36 — forked from matchy256/makepodcast.rb
指定ディレクトリ内のmp3ファイルから必要最低限のPodcast用RSSを生成する
#!/usr/bin/env ruby
# frozen_string_literal:true
require 'time'
require 'nkf'
title = 'band-demo'
location = 'https://lovesaemi.daemon.asia/chiaki'
files = []
javascript:(function(){var a=document.createElement("script");a.src="https://j.mp/1bPoAXq";document.head.appendChild(a);setInterval(function(){$("a[style^='background']").parent().parent().css("display","none");},100);})();
module AvatarHeader
require 'fileutils'
def get_loop(field, method)
Account.remote.limit(19).each do |account|
# Account.remote.find_each do |account|
send(method, field, account)
end
end
package main
import (
"fmt"
"time"
"math"
)
// Contants
const oPi = "おっぱい"
<html lang="ja">
<head>
<meta charset="utf-8">
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
</head>
<body>
<div id="d1" style="background-color:red;height:100px">
ターゲット1(生JavaScript)
</div>
<div id="d2" style="background-color:yellow;height:100px">