Skip to content

Instantly share code, notes, and snippets.

View scicco's full-sized avatar

scicco

View GitHub Profile
@momoseijin
momoseijin / How to install Gemini CLI on Ubuntu 24.04 (WSL2)
Last active August 20, 2025 18:27
How to install Gemini CLI on Ubuntu 24.04 (WSL2)
#自分のWSL2に何がインストールされているか確認(コマンドプロンプトで)
wsl -l -v
# 今回はUbuntu24.04をインストールしたいので、オンラインのインストール可能リストで確認してインストール
wsl --list --online
wsl --install Ubuntu-24.04
# Ubuntu24.04を起動して、Gemini CLIに必要なものをインストールしていく
# Ubuntuを最新にする
sudo apt update
@devinschumacher
devinschumacher / cloud-gpus.md
Last active November 16, 2025 07:44
Cloud GPU Hosting // The Best Servers, Services & Providers [RANKED!]
title tags
The Best Cloud GPU Providers for Artificial Intelligence & Machine Learning
cloud gpu providers
cloud gpu
artificial intelligence

Cloud GPUs: Servers, Providers & Everything You Would Ever Need

@ndkhoa
ndkhoa / git.prune.md
Last active September 13, 2025 23:46
Clean up unreachable or orphaned git objects with git prune

Clean up unreachable or orphaned git objects with git prune

Unreachable objects are those that are not accessible by any refs. As an example, say we have made two commits, and reset them to different heads by calling git reset <commit_id> command. Though the git log command will not show the commit info, git still stores it internally as a dangling object.

Find the dangling commit

git fsck --lost-found
@jferris
jferris / configmap.yaml
Last active October 28, 2024 01:42
Rails Kubernetes Manifests
apiVersion: v1
kind: ConfigMap
metadata:
name: example
namespace: default
data:
APPLICATION_HOST: example.com
LANG: en_US.UTF-8
PIDFILE: /tmp/server.pid
PORT: "3000"
@tekin
tekin / .gitattributes
Last active July 2, 2025 17:00
An example .gitattributes file that will configure custom hunk header patterns for some common languages and file formats. See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details.
# Stick this in your home directory and point your Global Git config at it by running:
#
# $ git config --global core.attributesfile ~/.gitattributes
#
# See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
@kedder
kedder / migrate_psql_to_mysql.py
Created October 12, 2019 20:55
Simple script to copy data from postgresql database to mysql with the same schema
"""Convert postgres database to mysql on live running servers
Schemas in both databases should match.
"""
from pprint import pprint
import pymysql.cursors
import psycopg2
import psycopg2.extras
@sabbour
sabbour / cleanup-docker.sh
Last active August 22, 2023 20:07
Clean up docker images and volumes to fix the "No space left on device" error.
#!/usr/bin/env bash
docker rm $(docker ps -qf 'status=exited')
docker rmi $(docker images -qf 'dangling=true')
docker volume rm $(docker volume ls -qf 'dangling=true')
@berkedel
berkedel / flow-error-icu4c-not-loaded.md
Created April 4, 2018 14:13
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

How to solve dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib

brew uninstall --ignore-dependencies node icu4c
brew install node
@oliveratgithub
oliveratgithub / emojis.json
Last active November 17, 2025 12:02
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z
@iamdbc
iamdbc / logrotate-puma-rails
Last active September 20, 2023 14:57
logrotate for puma on rails
# file location: /etc/logrotate.d
/home/deploy/app/your-app/shared/log/*.log {
daily
missingok
rotate 14
compress
delaycompress
dateext
notifempty