Skip to content

Instantly share code, notes, and snippets.

View empjustine's full-sized avatar

カシオ 金城 大関 empjustine

View GitHub Profile
@empjustine
empjustine / get_gists.py
Created May 15, 2020 20:02 — forked from leoloobeek/get_gists.py
Download all gists for a specific user
# first: mkdir user && cd user && cp /path/to/get_gists.py .
# python3 get_gists.py user
import requests
import sys
from subprocess import call
user = sys.argv[1]
r = requests.get('https://api.github.com/users/{0}/gists'.format(user))
#!/bin/bash
# https://www.jetbrains.com/help/idea/working-with-projects.html#invalidate-cache
# https://intellij-support.jetbrains.com/hc/en-us/articles/206544519
# https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#default-dirs
# https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#default-dirs
# .IntelliJIdea20???? (IntelliJ IDEA Ultimate Edition)
# .IdeaIC20???? (IntelliJ IDEA Community Edition)
# .PyCharmCE20????
import contextlib
import os
import sqlite3
def cat(filename: os.PathLike) -> str:
with open(filename) as f:
return f.read()
@empjustine
empjustine / .editorconfig
Last active May 18, 2020 21:38 — forked from lucasg/dash-doggybag.py
Bulk downloader for dash docsets (official and user contributed)
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
@empjustine
empjustine / Ouvrir_avec_Bash.reg
Created March 19, 2020 17:14
Ouvrir avec Bash
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\GitBash]
@="Ouvrir avec Bash"
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\GitBash\command]
@="C:\\Users\\chkanashiro\\scoop\\apps\\git\\current\\git-bash.exe"
[HKEY_CLASSES_ROOT\*\shell\GitBash]
@="Ouvrir avec Bash"
mvn dependency:resolve -Dclassifier=javadoc
@empjustine
empjustine / deploy_pipx.sh
Created March 11, 2020 03:46
deploy_pipx.sh
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install pipenv
pipx install black
pipx install isort
pipx install flake8
@empjustine
empjustine / Airship_Deployment_Sector.dot
Last active May 15, 2020 21:56
Airship Deployment Sectors
digraph g {
"01" -> "none"
"02" -> "none"
"03" -> "01"
"04" -> "02"
"05" -> "02"
"06" -> "05"
"07" -> "05"
"08" -> "07"
"09" -> "08"
@empjustine
empjustine / 00_Subaquatic_Deployment_Sector.svg
Last active June 5, 2022 00:31
Subaquatic Deployment Sector Graph
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@empjustine
empjustine / pom.xml
Created October 13, 2019 06:52
Boilerplate pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.9.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>