Skip to content

Instantly share code, notes, and snippets.

View lesschar's full-sized avatar
🎯
Focusing

lesschar

🎯
Focusing
View GitHub Profile
@adtac
adtac / Dockerfile
Last active April 7, 2025 15:29
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@javajon
javajon / kubectl-snippet.toml
Last active May 21, 2023 12:16
A kubectl library for Pet snippets
# Reference source snippets
[[snippets]]
description = "Reference Cheat Sheet"
command = "start https://kubernetes.io/docs/reference/kubectl/cheatsheet/"
tag = ["reference"]
output = ""
# Setup snippets
@weibeld
weibeld / telegram-api.pdf
Last active April 20, 2025 22:08
Telegram CLI Commands
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexellis
alexellis / k8s-pi.md
Last active December 13, 2024 23:24
K8s on Raspbian
@baiwfg2
baiwfg2 / shell-manual.sh
Created July 5, 2017 06:02
shell-manual.sh
shell实例手册
0说明{
手册制作: 雪松
更新日期: 2013-12-06
欢迎系统运维加入Q群: 198173206 # 加群请回答问题
请使用"notepad++"打开此文档,"alt+0"将函数折叠后方便查阅
请勿删除信息,转载请说明出处,抵制不道德行为。
@florido
florido / DevonThink Search operators
Last active April 3, 2025 15:35 — forked from keicoder/snippet.txt
DevonThink Search operators
DevonThink Search operators
In the toolbar search field, as well as in both the interactive and the simple web interface, you can use standard and extended Boolean operators, parenthesis, and more to fine tune your search.
The syntax of the operators is compatible to DEVONagent and EasyFind, the Finder, Spotlight, common search engines as well as common programming languages such as C, C++, Objective-C, Java, and JavaScript. The complexity of the query is unlimited.
Case
All terms are case-insensitive. You may, if you wish, use capitalization for proper names in a query, but DEVONthink Pro Office will ignore case in interpreting the query.
@andreibosco
andreibosco / creative-cloud-disable.md
Last active December 19, 2024 08:28
disable creative cloud startup on mac
@tzmartin
tzmartin / embedded-file-viewer.md
Last active April 16, 2025 14:36
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@iJackUA
iJackUA / ActiveRecordClone.php
Last active March 24, 2019 10:43
Yii 1. Clone AR model and Relations
<?php
namespace common\models\traits;
trait ActiveRecordClone
{
/**
* Return new record with cloned attributes
*
* @param string $scenario
* @return static
# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@"
}