Skip to content

Instantly share code, notes, and snippets.

View watari3's full-sized avatar

watari3

View GitHub Profile
@watari3
watari3 / Repair grub.md
Created October 24, 2021 11:33
Repair grub

Broken grub and how to repair it

  1. Prepare Live Linux Mint
  2. Boot Live Linux Mint
  3. Open terminal and launch the following command.
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update
sudo apt install -y boot-repair && (boot-repair &)
  1. Repare grub with "Recommended Repair"
@watari3
watari3 / How_to_add_executable_attribute.md
Created August 22, 2021 07:07
How to add executable attribute.

How to add executable attribute in git repository

Make sure git configuration.

git config -l | grep filemode

If true, you have to change this parameter by the following command.

@watari3
watari3 / avahi-alias.py
Created May 7, 2020 03:34 — forked from gdamjan/avahi-alias.py
Register a mDNS/DNS-SD alias name for your computer using the Avahi daemon
#! /usr/bin/env python2
'''
Register a mDNS/DNS-SD alias name for your computer using the Avahi daemon
This script will register an alternate CNAME alias besides your hostname,
which could be useful for ex. when serving several http virtual hosts to
your ffriends on the local network and you don't want to make them configure
their /etc/hosts.
Why a CNAME? You could also publish your current address with avahi-publish-address
@watari3
watari3 / proxy設定 for ubuntu 16.04
Created November 4, 2018 13:06
proxy設定 for ubuntu 16.04
## curl
1. ~/.curlrcで対応する
```
$ echo 'proxy = "http://[address]:[port]"' >> ~/.curlrc
```
2. 環境変数で対応する

Personal

  • Name :
    • 氏名 Koji Ishiwatari
  • HN :
    • watari, watari3
  • Facebook :
    • koji.ishiwatari

Work

ASIC・FPGAの設計・開発

@watari3
watari3 / Internal Server Error at PR-20180714
Created July 16, 2018 22:20
Internal Server Error (log)
Internal Server Error
java.lang.NullPointerException
org.eclipse.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:138)
org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:887)
org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:799)
gitbucket.core.util.JGitUtil$.$anonfun$getCommitLogs$1(JGitUtil.scala:571)
gitbucket.core.util.SyntaxSugars$.using(SyntaxSugars.scala:15)
gitbucket.core.util.JGitUtil$.getCommitLogs(JGitUtil.scala:570)
gitbucket.core.util.JGitUtil$.$anonfun$getForkedCommitId$1(JGitUtil.scala:1083)
gitbucket.core.util.SyntaxSugars$.defining(SyntaxSugars.scala:12)
@watari3
watari3 / Internal Server Error 2018-07-02
Created July 4, 2018 00:04
Internal Server Error 2018-07-02
Internal Server Error
org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /usr/share/tomcat/.gitbucket/repositories/USER_NAME/REPO_NAME.git
org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:614)
org.eclipse.jgit.api.Git.open(Git.java:122)
org.eclipse.jgit.api.Git.open(Git.java:102)
gitbucket.core.util.JGitUtil$.getRepositoryInfo(JGitUtil.scala:269)
gitbucket.core.service.RepositoryService.$anonfun$getRepository$3(RepositoryService.scala:333)
scala.Option.map(Option.scala:146)
gitbucket.core.service.RepositoryService.getRepository(RepositoryService.scala:322)
gitbucket.core.service.RepositoryService.getRepository$(RepositoryService.scala:315)