Skip to content

Instantly share code, notes, and snippets.

@hivefans
hivefans / shell_output.go
Last active May 12, 2024 10:36
get the realtime output for a shell command in golang|-|{"files":{"shell_output.go":{"env":"plain"}},"tag":"bigdata"}
package main
import (
"bufio"
"fmt"
"io"
"os"
"os/exec"
"strings"
)
@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 12, 2024 10:35
ローカルLLMはこーやって使うの💢
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active May 12, 2024 10:34
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@marethyu
marethyu / README.md
Last active May 12, 2024 10:32
Bunpro to Anki

Bunpro Anki Decks (v1)

For Bunpro users who wants to review grammar using Anki's SRS instead of Bunpro's built-in SRS.

Deck Download Links

  • N1 (Updated: 2021-06-21)
  • N2 (Updated: 2021-06-21)
  • N3 (Updated: 2021-06-21)
  • N4 (Updated: 2021-06-21)
@robkisk
robkisk / db-library-install.json
Created May 12, 2024 10:30
Databricks Libraries Install JSON
{
"cluster_id": "0507-103610-1b2u1gwq",
"libraries": [
{
"pypi": {
"package": "polars"
}
},
{
"pypi": {
@qoomon
qoomon / conventional_commit_messages.md
Last active May 12, 2024 10:23
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@sundowndev
sundowndev / GoogleDorking.md
Last active May 12, 2024 10:19
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@dphurley
dphurley / ! .gitignore
Last active May 12, 2024 10:16
! .gitignore for Express app
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@1Marc
1Marc / reactive.js
Last active May 12, 2024 10:16
Vanilla Reactive System
// Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/
let context = [];
export function untrack(fn) {
const prevContext = context;
context = [];
const res = fn();
context = prevContext;
return res;
@thimslugga
thimslugga / hashicorp_nomad_single_node.md
Last active May 12, 2024 10:15
Nomad Single Node Deployment

Hashicorp Nomad (Single Node Deployment)

Overview

Nomad is designed to be a highly-available, quorum-based cluster scheduler. Nomad deployments should ideally have three or more server nodes and one or more client nodes.

However, Nomad does provide a mode, which you can use to run Nomad with a single agent process.