Skip to content

Instantly share code, notes, and snippets.

😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
Block or report user

Report or block wozozo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View capture.js
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();
View slack.js
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({
View vscode.json
{
"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",
View gist:10b43b559b2517abd059b4b8d359dc46
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
View 勤怠.js
(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++;
View hatebu_https_let.js
(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');
View test.py
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):
View gist:ffd728d8bfcf1793e3a39f8c1e42e478
### Keybase proof
I hereby claim:
* I am wozozo on github.
* I am wozozo (https://keybase.io/wozozo) on keybase.
* I have a public key whose fingerprint is 83E3 B3A5 513F F7EA 1623 5129 236D 55AC 842A 1315
To claim this, I am signing this object:
View pyramid_renderer_flask.py
import json
from pyramid.renderers import JSON
class FlaskRenderer(JSON):
def __call__(self, info):
def _render(value, system):
request = system.get('request')
View gist:fc159575b082fbc9b596cf3b15f80325
/***** Fadding Entrances ******/
.flip-left {
-webkit-animation: flipLeft 1 1s ease-out;
-moz-animation: flipLeft 1 1s ease-out;
-ms-animation: flipLeft 1 1s ease-out;
-o-animation: flipLeft 1 1s ease-out;
animation: flipLeft 1 1s ease-out;
opacity: 1 !important;
visibility: visible !important;
}
You can’t perform that action at this time.