Skip to content

Instantly share code, notes, and snippets.

mpyw mpyw

Block or report user

Report or block mpyw

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
@mpyw
mpyw / free_email_provider_domains.txt
Last active Feb 26, 2020 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. All forks from the original gist are merged. The list only contains valid hostnames.
View free_email_provider_domains.txt
0039.cf
0039.ga
0039.ml
00b2bcr51qv59xst2.cf
00b2bcr51qv59xst2.ga
00b2bcr51qv59xst2.ml
02466.cf
02466.ga
02466.ml
07819.cf
@mpyw
mpyw / force_use_latest_tweets.user.js
Last active Jun 30, 2019
新 Twitter で「最新のツイート」に強制的に切り替えるやつ
View force_use_latest_tweets.user.js
// ==UserScript==
// @name 新 Twitter で「最新のツイート」に強制的に切り替えるやつ
// @namespace https://twitter.com/mpyw
// @version 0.1
// @description お節介機能を殺す
// @author mpyw
// @match https://twitter.com/home
// @grant none
// ==/UserScript==
@mpyw
mpyw / qiita-trend-eliminator.user.js
Last active Nov 12, 2018
Qiita Trend Eliminator
View qiita-trend-eliminator.user.js
// ==UserScript==
// @name Qiita Trend Eliminator
// @namespace http://tampermonkey.net/
// @version 0.2
// @description https://qiita.com/ を https://qiita.com/tag-feed にいい感じに置き換える
// @author mpyw
// @match https://qiita.com/*
// @grant none
// ==/UserScript==
@mpyw
mpyw / prune_log_streams.sh
Created Sep 8, 2018
古いログストリームを削除
View prune_log_streams.sh
#!/bin/bash
for group in $(aws logs describe-log-groups | jq -r '.logGroups[].logGroupName'); do
echo "Fetching: $group"
for stream in $(aws logs describe-log-streams --log-group-name "$group" | jq -r '
.logStreams[]
| select(.storedBytes == 0 and ($now|tonumber) - .creationTime / 1000 > 86400)
| .logStreamName
' --arg now $(date +%s)); do
echo "Deleting: $group $stream"
@mpyw
mpyw / Logger.js
Created Aug 14, 2018
Send your browser console errors to AWS CloudWatch. Inspired by https://github.com/agea/console-cloud-watch
View Logger.js
import React, { Component } from 'react'
import CloudWatchLogs from 'aws-sdk/clients/cloudwatchlogs'
import Fingerprint2 from 'fingerprintjs2'
import StackTrace from 'stacktrace-js'
import { promisify } from 'es6-promisify'
export default class Logger {
events = []
originalConsole = null
View eslintrc.json
{
"extends": "standard",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false
},
"env": {
"browser": true,
"node": true,
View .eslintrc.json
{
"extends": "standard",
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false
},
"env": {
"browser": true,
"node": true,
@mpyw
mpyw / run.php
Last active Jan 31, 2018
ツイート数を常に1000件に保つやつ(デバッグしてない)
View run.php
<?php
require __DIR__ . '/vendor/autoload.php';
use mpyw\Co\Co;
use mpyw\Cowitter\Client;
const CONSUMER_KEY = '...';
const CONSUMER_SECRET = '...';
const ACESS_TOKEN = '...';
@mpyw
mpyw / square_twitter.user.js
Last active Jun 15, 2017
Twitterは四角っぽいほうが好き
View square_twitter.user.js
// ==UserScript==
// @name we_love_square_twitter
// @namespace https://gist.github.com/mpyw/199917673d4eef200e0532af2aadda85
// @version 0.0.3
// @description ● → ■
// @author foooomio (より優れているので拝借させていただきました: http://qiita.com/foooomio/items/a8307820aabab37e02f2 )
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
@mpyw
mpyw / git-big-objects.sh
Created Apr 30, 2017 — forked from msohn/git-big-objects.sh
Script to show n largest objects in a git repo's pack files.
View git-big-objects.sh
#!/bin/bash
# -----------------------------------------------------------------------
# Copyright (C) 2013 Matthias Sohn <matthias.sohn@sap.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
You can’t perform that action at this time.