Skip to content

Instantly share code, notes, and snippets.

@ozero
ozero / slack_deleteOldFiles.php
Last active March 12, 2018 11:58
Delete old and big files on Slack.
<?php
$token ='******PASTE YOUR TOKEN HERE******';
$count = 100;
/*
Delete old and big files on Slack.
- 10MB over: can be stored up to 3 months
@ozero
ozero / mi3_replaceall_macro_sample.js
Created July 18, 2018 08:42
テキストファイル 一括置換マクロ Mi3 ( http://www.mimikaki.net/ ) 専用。Mi2以前は不可。
/*
OSX ミミカキエディット3 向け テキストファイル 一括置換 JSマクロ
Mi3 ( http://www.mimikaki.net/ ) 専用。Mi2以前は不可。
mi3 jsリファレンス
https://www.mimikaki.net/mi3/help/ja/JavaScript.htm
*/
@ozero
ozero / my_bwmap.mrules
Created September 10, 2018 11:17
Maperitiveで白地図svgざっくりゲットを試してみたmrulesファイル試し書き
// Wireframe rules
// Created by Igor Brejc
// Edited by Rory Fitzpatrick
// Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/)
features
points, areas
bus stop : highway=bus_stop
railway station : railway=station
@ozero
ozero / IITC-neutralized_marker_style.user.js
Last active July 2, 2020 11:01
IITC-neutralized_marker_style.user.js
// ==UserScript==
// @id IITC-neutralized_marker_style
// @name IITC: Neutralized marker style
// @author ozero
// @category Misc
// @version 0.25.1.20190426.01
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL none
// @downloadURL none
// @description neutralized marker style
@ozero
ozero / translate.py
Last active August 29, 2019 10:42 — forked from tomoconnor/translate.py
Machine Translation of .po files with Google Translate
#### Requires ####
# goslate==1.3.0
# polib==1.0.5
#### / ####
import os, sys
import goslate
import argparse
import polib
@ozero
ozero / Ingress_Forum_auto_liking.user.js
Created April 24, 2020 11:43
Ingress Forum auto liking
// ==UserScript==
// @name Ingress Forum auto liking
// @namespace http://tampermonkey.net/
// @version 0.0.1.20190610.00
// @description よくあるふぁぼ爆、なお多重実行するとそのままトグルされてキャンセルとなる模様
// @author ozero
// @updateURL https://test.currentdir.com/iitc_plugins/Ingress_Forum_auto_liking.user.js
// @downloadURL https://test.currentdir.com/iitc_plugins/Ingress_Forum_auto_liking.user.js
// @match https://community.ingress.com/*/discussion/*
// @grant none
### Keybase proof
I hereby claim:
* I am ozero on github.
* I am ozero (https://keybase.io/ozero) on keybase.
* I have a public key ASAwQANAbayWZaDnXiBKsOEkGP0ajTlSm08EuuhLFuUlVwo
To claim this, I am signing this object:
@ozero
ozero / Reduce.php
Last active September 25, 2020 23:34
Humhub: Reduce filesize of attached image.
<?php
/*
# Reduce filesize of attached image.
- for X or Y axis: 1024px max
- compress into Jpeg on q=90
## Usage
@ozero
ozero / goto-eats-osaka-scrape.user.js
Last active November 5, 2020 08:07
Goto Eats Osaka scrape Userscript
// ==UserScript==
// @name Goto Eats Osaka scrape
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 検索だけでマップがないとかクソすぎへん?
// @author You
// @match https://goto-eat.weare.osaka-info.jp/*
// @grant none
// ==/UserScript==
@ozero
ozero / head.php
Last active December 22, 2020 03:34
Humhub 1.7.x: Modify mobile view for spaces
<!-- /themes/HumHub/views/layouts/head.php -->
<?php if(Yii::$app->user->isGuest){ ?>
<?php if($_SERVER['REQUEST_URI'] == "/dashboard"){ ?>
<meta http-equiv="refresh" content="0;URL=/p/about">
<?php } ?>
<?php } ?>
<style id="hideSpaceProfileOnMobile">
@media only screen and (max-width: 480px){
/* remove space icon */