Skip to content

Instantly share code, notes, and snippets.

View jfut's full-sized avatar

Jun Futagawa jfut

View GitHub Profile
@jfut
jfut / settings.json
Last active October 5, 2021 23:14
Windows Terminal settings.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "none",
"copyOnSelect": true,
"defaultProfile": "{5d7ce2e3-c26e-47a1-b9e6-fe449aaf75d0}",
"initialCols": 150,
"initialRows": 40,
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
@jfut
jfut / manifest.json
Created September 3, 2019 06:23
manifest.json for nextcloud-filelink Thunderbird 68.0 extension
{
"manifest_version": 2,
"name": "Nextcloud for Filelink",
"description": "Nextcloud provider for Thunderbird Filelink",
"version": "1.8",
"author": "Olivier Paroz",
"homepage_url": "https://github.com/nextcloud/nextcloud-filelink",
"legacy": {
"type": "xul",
"options" : {
@jfut
jfut / scoop-install-vector.ps
Created June 26, 2019 02:48
scoop\apps\scoop\current\libexec\scoop-install-vector.ps
# Usage: scoop install-vector <app> [options]
# Summary: Install apps
# Help: e.g. The usual way to install an app (uses your local 'buckets'):
# scoop install git
#
# To install an app from a manifest at a URL:
# scoop install https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket/runat.json
#
# To install an app from a manifest on your computer
# scoop install \path\to\app.json
@jfut
jfut / ssh-sock-select
Last active September 18, 2022 12:23
ssh-sock-select
#!/bin/bash
#
# Select and export SSH_AUTH_SOCK
#
# @author Jun Futagawa
LIST=$(ls -t /tmp/ | grep ssh-)
SUFFIX=" (latest)"
declare -a SSH_AUTH_SOCK_ARRAY=()
@jfut
jfut / rpmnew-merge
Last active December 30, 2021 03:14
rpmnew-merge
#!/bin/bash
#
# Merge tool for rpmnew file
#
# @author Jun Futagawa
RPMNEW_FILE="$1"
DEFAULT_FILE="$2"
if [[ -z "${RPMNEW_FILE}" ]]; then
@jfut
jfut / jira-add-group-permissions.groovy
Created May 8, 2015 04:07
JIRA: Add group permissions
import org.ofbiz.core.entity.EntityUtil
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.permission.ProjectPermissionCategory
import com.atlassian.jira.scheme.SchemeEntity
def projectManager = ComponentAccessor.getProjectManager()
def permissionManager = ComponentAccessor.getPermissionManager()
def permissionSchemeManager = ComponentAccessor.getPermissionSchemeManager()
@jfut
jfut / jira-delete-spam-comments.groovy
Created May 6, 2015 07:48
JIRA: Delete spam comments script
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.IssueManager
import com.atlassian.jira.issue.MutableIssue
import com.atlassian.jira.issue.comments.Comment
import com.atlassian.jira.issue.comments.CommentManager
String issueKey = 'CHURA-XX'
IssueManager issueManager = ComponentAccessor.issueManager
CommentManager commentManager = ComponentAccessor.commentManager
@jfut
jfut / jira-show-group-permissions.groovy
Last active August 29, 2015 14:20
JIRA: Show group permissions script
import org.ofbiz.core.entity.EntityUtil
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.permission.ProjectPermissionCategory
def projectManager = ComponentAccessor.getProjectManager()
def permissionManager = ComponentAccessor.getPermissionManager()
def permissionSchemeManager = ComponentAccessor.getPermissionSchemeManager()
def permissionCategories = [
@jfut
jfut / AllMixer2HtmlTest1.java
Created September 11, 2014 05:00
AllMixer2HtmlTest1.java
import java.util.List;
import org.junit.Test;
import org.mixer2.Mixer2Engine;
import org.mixer2.jaxb.xhtml.Article;
import org.mixer2.jaxb.xhtml.Body;
import org.mixer2.jaxb.xhtml.H1;
import org.mixer2.jaxb.xhtml.Html;
import org.mixer2.jaxb.xhtml.P;
import org.mixer2.jaxb.xhtml.Section;
@jfut
jfut / SpringBeanUtil.java
Last active July 18, 2019 13:07
SpringBeanUtil: Spring で SingletonS2Container.getComponent() 相当を実現
/*
* Copyright 2014 Jun Futagawa
*
* 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
*
* Unless required by applicable law or agreed to in writing, software