Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

Discover gists

@saiashirwad
saiashirwad /Dark-Reader-Settings.json
CreatedSeptember 25, 2020 00:23
Dark Reader Chrome Settings Gruvbox
{
"applyToListedOnly":false,
"automation":"",
"changeBrowserTheme":false,
"customThemes": [
{
"url": [
"arxiv.org"
],
"theme": {
@ariG23498
ariG23498 /download-dataset.py
Last activeJuly 19, 2025 14:33
fine tune
fromhuggingface_hubimporthf_hub_download
importtarfile
dataset_id="sayakpaul/ucf101-subset"
fname="UCF101_subset.tar.gz"
fpath=hf_hub_download(repo_id=dataset_id,filename=fname,repo_type="dataset")
withtarfile.open(fpath)ast:
t.extractall(".")
@emeeks
emeeks /graph.json
CreatedApril 30, 2016 03:41
D3v4 Constraint-Based Layout
{"nodes": [{"id":"1","module":0,"i":0},{"id":"3","module":0,"i":1},{"id":"8","module":2,"i":2},{"id":"9","module":4,"i":3},{"id":"12","module":2,"i":4},{"id":"15","module":2,"i":5},{"id":"23","module":3,"i":6},{"id":"26","module":3,"i":7},{"id":"37","module":10,"i":8},{"id":"46","module":2,"i":9},{"id":"2","module":1,"i":10},{"id":"4","module":2,"i":11},{"id":"5","module":3,"i":12},{"id":"6","module":3,"i":13},{"id":"7","module":1,"i":14},{"id":"10","module":4,"i":15},{"id":"11","module":1,"i":16},{"id":"13","module":1,"i":17},{"id":"14","module":1,"i":18},{"id":"16","module":5,"i":19},{"id":"18","module":1,"i":20},{"id":"19","module":3,"i":21},{"id":"20","module":1,"i":22},{"id":"21","module":6,"i":23},{"id":"22","module":2,"i":24},{"id":"25","module":3,"i":25},{"id":"27","module":1,"i":26},{"id":"28","module":3,"i":27},{"id":"29","module":1,"i":28},{"id":"31","module":2,"i":29},{"id":"33","module":2,"i":30},{"id":"34","module":9,"i":31},{"id":"35","module":1,"i":32},{"id":"38","module":2,"i":33},{"id":"41",
@StevenACoffman
StevenACoffman /a-non-root-ssh-keys-in-kube.md
Last activeJuly 19, 2025 14:31
SSH keys in kubernetes as non-root

SSH (and git+ssh) has very particular opinions about file permissions.In Kubernetes you can set secret file permissions, but not ownership: (see the "Secret files permissions" section)https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets

apiVersion: v1kind: Podmetadata:  name: security-context-demo

Installation Steps

  1. Update the packages on your device:

    pkg update -y&& pkg upgrade -y
@skeeto
skeeto /Makefile
CreatedOctober 21, 2014 03:51
C Object Oriented Programming Example
CFLAGS = -std=c99 -Wall
main : main.o
.PHONY : test clean
test : main
./$^"*regex*""*vtable*"< main.c
clean :
@eeddaann
eeddaann /test_redis.md
CreatedJuly 4, 2018 08:03
Test connection to Redis with netcat

echo -e '*1\r\n$4\r\nPING\r\n' | nc redis.host.com 6379

@Farhad-Firozitabar
Farhad-Firozitabar /gist:56fc2fff4bdf3b96e70a8b903d0274b9
Last activeJuly 19, 2025 14:22
Dog Breed Description for learning MongoDB in JSON format
[
{
"breed": "Labrador Retriever",
"breedType": "Purebred",
"origin": ["Canada", "USA"],
"popularity": 1,
"temperament": ["Cheerful", "Gentle", "Friendly", "Intelligent"],
"hypoallergenic": false,
"intelligence": 85
},
@oliverdaff
oliverdaff /tracing-instrument-macro.md
CreatedJanuary 4, 2024 01:13
Tutorial on Using the tracing::instrument Macro in Rust

Introduction

This document provides a comprehensive guide on using thetracing::instrument macro in Rust. It covers the basics of thetracing crate, the purpose and functioning of theinstrument macro, and best practices for its effective use in software development.

What is thetracing::instrument Macro?

  • Overview: Thetracing crate is a collection of Rust libraries for application-level tracing and asynchronous diagnostics. It provides a framework for collecting structured, event-based diagnostic information. Theinstrument macro, specifically, is a part of this crate. It automatically attaches context-specific information to logs, such as function arguments and return values, making it easier to track the flow and performance of the code.

  • Purpose: The primary purpose of thetracing::instrument macro is to aid in diagnostics and performance analysis. By annotating functions with this macro, developers can automatic

@iamwildtuna
iamwildtuna /gist:7772b7c84a11bf6e1385f23096a73a15
Last activeJuly 19, 2025 14:21
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta(Instagram,Facebook)
//Узлы
157.240.253.174,157.240.253.172,157.240.253.167,157.240.253.63,157.240.253.32
157.240.252.174,157.240.252.172,157.240.252.167,157.240.252.63,157.240.252.38
57.144.112.34,57.144.110.1,157.240.205.174,87.245.223.97
//Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
NewerOlder

[8]ページ先頭

©2009-2025 Movatter.jp