Skip to content

Instantly share code, notes, and snippets.

function generate_commit_message() {
open -a Ollama
ollama run gemma2:2b <<EOF
Please generate a conventional git commit message(like 'feat(scope): message') for these changes, return only one line containing the commit message no explanation necessary
$(git diff --staged)
EOF
osascript -e 'tell application "Ollama" to quit'
}
@suhas-sri-vaastav
suhas-sri-vaastav / conf.py
Created August 4, 2024 15:33
Variable substitution in `testsetup` and `code-block` in Sphinx .rst files
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'enc-code' # as per my project, change in yours
copyright = '2024, Suhas Krishna Srivastava' # as per my project, change in yours
#!/bin/bash
# 初始化变量
COUNT=0
CHARACTER=$1
NUMBER=$2
# 检查参数数量
if [[ "$#" -eq 0 ]]; then
echo "Usage: cat <input_file> | add_character.sh '<text_to_add>' <number_of_lines>"
echo "Example: cat delete.sql | add_character.sh 'select sleep(2);' 500"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grid Map Annotator</title>
<style>
body {
font-family: Arial, sans-serif;
background: white;
### Keybase proof
I hereby claim:
* I am pincq on github.
* I am pincq (https://keybase.io/pincq) on keybase.
* I have a public key ASDx9vmWGg_aPHZcG6wiJhpCC9H4AvLzCsrGs-IS2fS-Sgo
To claim this, I am signing this object:
Maintainers:
emilytrau: jadx, jadx, jadx, jadx
x86_64-linux jadx
aarch64-darwin jadx
aarch64-linux jadx
aarch64-linux apkleaks
x86_64-linux apkleaks
x86_64-darwin jadx
x86_64-darwin apkleaks
aarch64-darwin apkleaks
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created August 4, 2024 15:31
Rimworld output log published using HugsLib
Log uploaded on Monday, August 5, 2024, 12:31:56 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
FSharp.Core(latta.fsharp.core): FSharp.Core(av:4.7.0,fv:4.700.20.27008), Poet(5.4.0)
Dev In Your Language(latta.devl10n): DevL10N(1.11.1)
Allow Tool(UnlimitedHugs.AllowTool): AllowTool(av:3.6.0,fv:3.13.1)
Allow Tool 日本語翻訳追加(Proxyer.JPT.AllowToolJP): (no assemblies)
Camera+(brrainz.cameraplus)[mv:3.2.0.0]: CameraPlus(3.2.0), CrossPromotion(1.1.2)
@Blankid018
Blankid018 / join.js
Created August 4, 2024 15:31
Hey noob 👋👋
const axios = require("axios");
const fs = require("fs-extra");
const request = require("request");
module.exports = {
config: {
name: "join",
version: "2.0",
author: "Kshitiz",
countDown: 5,