Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View rochacbruno's full-sized avatar
🛠️
QQ

Bruno Cesar Rocha rochacbruno

🛠️
QQ
View GitHub Profile
@rochacbruno
rochacbruno /pdoc_django_init.sh
CreatedDecember 10, 2025 17:46
pdoc django setup
#!/usr/bin/env python
importos
importsys
os.environ.setdefault('DJANGO_SETTINGS_MODULE','platform_service_example.settings')
importdjango
django.setup()
frompdoc.__main__importcli
sys.exit(cli())
@rochacbruno
rochacbruno /config.jsonc
Last activeNovember 1, 2025 00:30
fastfetch niri + dms + fedora
{
"$schema":"https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type":"auto",
"height":10,
"width":15,
"padding": {
"top":5,
"left":3
}
@rochacbruno
rochacbruno /record.py
Last activeOctober 20, 2025 14:43
gpu-screen-recorder with systray icon
#!/usr/bin/env python3
importsubprocess
importgi
importsignal
gi.require_version('Gtk','3.0')
fromgi.repositoryimportGtk,AppIndicator3
APP_ID="gpu.screen.recorder"
RECORD_CMD= ["bash","-c","gpu-screen-recorder","-o","/tmp/output.mp4"]
@rochacbruno
rochacbruno /config
CreatedOctober 17, 2025 14:14
swappy config
[Default]
save_dir=$HOME/Pictures/Screenshots
save_filename_format=swappy-%Y%m%d-%H%M%S.png
show_panel=true
paint_mode=arrow
early_exit=true
#! /usr/bin/env bash
##############################################################################################
# _ _ _ _ _ #
# (_) (_) | | | | | | #
# _ __ _ _ __ _ ___ ___ _ __ __ _ | |_ ___ | |__ _ __ __ _ __| | #
#| '_ \ | || '__|| | ______ / __| / __|| '__| / _` || __| / __|| '_ \ | '_ \ / _` | / _` | #
#| | | || || | | ||______|\__ \| (__ | | | (_| || |_ | (__ | | | || |_) || (_| || (_| | #
#|_| |_||_||_| |_| |___/ \___||_| \__,_| \__| \___||_| |_|| .__/ \__,_| \__,_| #
# | | #
[
{
"input_combination": [
{
"type":1,
"code":58,
"origin_hash":"99614f2eb2dff6628bd5eff9210e538f"
}
],
"target_uinput":"keyboard",
@rochacbruno
rochacbruno /.vimrc
Last activeSeptember 10, 2025 09:23
Minimal Possible VIM COnfig for Python with AutoComplete, Help, Syntax Check
let mapleader=''|setnurnuhidbs=2ts=4sw=4etaisinocpwmnutw=79cc=80stal=2cot=menuone,longest,previewph=10rulerstatusline=%f%m%r%h%w%=%y\%l,%c\%p%%
letg:p=executable('uv')?'uv run python3':'python3'|letg:d=g:p.' -m pydoc'|letg:c=g:p.' -m py_compile'
filetypepluginindenton|syon|nn<leader>b :ls<cr>:b<space>|nn<leader><Tab><C-^>
auFileTypepythonsetlofu=python3complete#Completecot=menuone,longest,previewinc=^\s*\(from\|import\)def=^\s*\(def\|class\)|exe'setl kp='.escape(g:d,'')|nn<buffer><leader>k:exe 'vert term ++close '.g:d.' '.expand('<cword>')<CR>|nn<buffer><leader>r :w<CR>:exe '!'.g:p.' %'<CR>
auBufWritePost*.pysilent!exe'!'.g:c.' %'
auCompleteDone*pc
@rochacbruno
rochacbruno /amazing_vimtips.md
Last activeNovember 9, 2025 17:52
Useful vim tips

A comprehensive collection of Vim power-user techniques

adapted fromzzapper

Table of Contents

NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp