Skip to content

Instantly share code, notes, and snippets.

View akunzai's full-sized avatar

Charley Wu akunzai

  • Taipei,Taiwan
  • 13:20 (UTC +08:00)
  • X @akunzai
View GitHub Profile
@akunzai
akunzai / gitlab-artifacts-cleanup.py
Last active May 2, 2023 10:40 — forked from Pingu501/gitlab-artifacts-cleanup.py
GitLab Artifacts Clean-Up
#! /usr/bin/env python3
# encoding: utf-8
"""
This is a small python script to clear up old gitlab build artifacts.
"""
import argparse
import datetime
import functools
import json
@akunzai
akunzai / vscode-cleanup-workspace.sh
Last active February 5, 2021 16:56 — forked from 3v1n0/vscode-unused-workspace-storage-cleanup.sh
VSCode unused workspaceStorage cleanup
#!/bin/bash
# https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations
case "$(uname -sr)" in
Darwin*)
VSCODE_HOME="$HOME/Library/Application Support/Code/User"
;;
Linux*WSL*)
# https://github.com/wslutilities/wslu
if hash wslvar 2>/dev/null; then
#!/bin/bash
################################################################################
# FUNCTIONS
################################################################################
# 1. Check required system tools
_check_installed_tools() {
local missed=""