Skip to content

Instantly share code, notes, and snippets.

View wozozo's full-sized avatar
😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
  • Tokyo, Japan
  • 22:03 (UTC +09:00)
  • X @wozozo
View GitHub Profile
@wozozo
wozozo / realforce23u.json
Last active February 15, 2021 14:24
Macで外付けREALFORCEテンキーを使う際にKarabiner-Elementsでキーマップを修正する設定
{
"title": "REALFORCE 23U(テンキー)用キーバインド変更",
"rules": [
{
"description": "テンキーでイコールを入力",
"manipulators": [
{
"type": "basic",
"from": {
"simultaneous": [
@wozozo
wozozo / wait.ts
Last active August 1, 2020 13:02
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function wait(ms: number): Promise<any> {
return new Promise((resolve) => {
setTimeout(() => {
resolve();
}, ms);
});
}
new Intl.DateTimeFormat("ja-JP-u-ca-japanese", {dateFormat: "full", year: "2-digit", month: "short", day: "2-digit"}).format(new Date())
> "令和02年6月25日"
const puppeteer = require('puppeteer');
const { Storage } = require('@google-cloud/storage');
const url: string = '';
const bucketName = '';
const fileName = `hoge-${Date.now()}.png`;
(async () => {
const browser = await puppeteer.launch();
const { WebClient } = require('@slack/web-api');
const slackToken = process.env.SLACK_TOKEN;
async function uploadFile() {
const { createReadStream } = require('fs');
const web = new WebClient(slackToken);
const conversationId = '';
try {
const result = await web.files.upload({
{
"editor.fontSize": 15,
// "editor.fontFamily": "'Fira Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontFamily": "'Hack', Menlo, Monaco, 'Courier New', monospace",
"atomKeymap.promptV3Features": true,
"files.trimTrailingWhitespace": true,
"files.associations": {
"*.jinja2": "jinja"
},
"editor.multiCursorModifier": "ctrlCmd",
spof% ~git master brew list
ansible hub msgpack readline
autoconf hugo mysql reattach-to-user-namespace
automake icu4c neovim redis
awscli imagemagick ngrok ruby
cmake jemalloc nkf ruby-build
coreutils jpeg nmap sqlite
curl jq node sshrc
curlish kotlin numpy supervisor
direnv libevent nvm terraform
(function () {
var i = 0;
document.querySelectorAll('tr.days .dval.vst').forEach(function(e) {
setTimeout(function () {
e.click();
document.querySelector('#startTime').value = '10:30';
document.querySelector('#endTime').value = '20:00';
document.querySelector('#dlgInpTimeOk').click();
}, 4000 * i);
i++;
(function() {
var baseURL = 'https://b.hatena.ne.jp';
var redirect = function(qArgs) {
var url = baseURL + '/add?b2=1' + ( qArgs || '' ) + '&url=' + encodeURIComponent(location.href);
location.href = url;
}
if (document.getElementsByTagName('frameset').length) {
return redirect('&frame=1');
import threading
from uuid import uuid4
import redis
r = redis.StrictRedis(host='', port=0, db=0, password='')
class Attacker(threading.Thread):
def __init__(self, name):