Skip to content

Instantly share code, notes, and snippets.

View m1cm1c's full-sized avatar

m1cm1c

View GitHub Profile
{
"Description": "Detected a Generic API Key, potentially exposing access to various services and sensitive operations.",
"StartLine": 52,
"EndLine": 52,
"StartColumn": 21,
"EndColumn": 93,
"Match": "Key: '0xb96e9ccb774cc33213cbcb2c69d3cdae17b0fe4888a1ccd343cbd1a17fd98b18'",
"Secret": "0xb96e9ccb774cc33213cbcb2c69d3cdae17b0fe4888a1ccd343cbd1a17fd98b18",
"File": "packages/testcases/lib.esm/generation-scripts/hdnode.js",
"SymlinkFile": "",
@m1cm1c
m1cm1c / go-github.pull-all.go
Last active April 10, 2024 11:20
Go code for pulling all contents of a GitHub repository to the local file system. This is not a git clone, fetch, merge nor pull. Adapted from: https://gist.github.com/jaredhoward/f231391529efcd638bb7
package main
import (
"context"
"crypto/sha1"
"encoding/hex"
"fmt"
"io"
"os"
"path/filepath"
module m/main
go 1.21.7
require (
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/muesli/reflow v0.3.0
)
{
"name": "contracts2",
"version": "2.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "contracts2",
"version": "2.0.0",
"license": "ISC",
{
"name": "contracts2",
"version": "2.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "contracts2",
"version": "2.0.0",
"license": "ISC",
{
"name": "contracts2",
"version": "2.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "contracts2",
"version": "2.0.0",
"license": "ISC",
{
"compilerOptions": {
"strict": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "es6",
"lib": [
"es2021",
"DOM"
],
{
"dependencies": {
"tsoa": "^4.1.2"
},
"devDependencies": {
"@types/node": "^18.7.18"
}
}
@m1cm1c
m1cm1c / arch-brother-dcp-j4120dw-installation.md
Created September 21, 2019 14:22 — forked from sieste/arch-brother-dcp-j4120dw-installation.md
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yaourt brother-dcpj4120dw
@m1cm1c
m1cm1c / gist:679fd8e8b416786ad453e887129d54c1
Last active July 3, 2017 21:37 — forked from asabaylus/gist:3071099
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown, convert all its letters to lowercase, add - characters between each word in the heading, and wrap the value in parens (#some-markdown-heading). Your link should look like this:

[create an anchor](#anchors-in-markdown)