Skip to content

Instantly share code, notes, and snippets.

View morisono's full-sized avatar

petro morisono

View GitHub Profile
Directory structure:
└── docs/
├── installation.mdx
├── introduction.mdx
├── mint.json
├── quickstart.mdx
├── telemetry.mdx
├── concepts/
│ ├── agents.mdx
│ ├── cli.mdx
@morisono
morisono / Sec+ Notes.md
Created March 5, 2025 11:43 — forked from IPvPho/Sec+ Notes.md
Sec+ Notes

Security+ 601 Notes

Domains

1.0 Attacks, Threats, and Vulnerabilities (24%)

2.0 Architecture and Design (21%)

3.0 Implementation (25%)

@morisono
morisono / README.md
Created March 4, 2025 10:25 — forked from ttimasdf/README.md
Integrate Git diffs and commits with Word DOCX files
@morisono
morisono / msoffice_ooffice_pdf_diffs_with_git.md
Created March 4, 2025 10:25 — forked from mbrehin/msoffice_ooffice_pdf_diffs_with_git.md
Microsoft Office, Open Office, PDF diffs with Git

Sometimes when working with Git you'd like to commit binary files.
But those files won't have clean comparisons with Git standard diff command.
Fortunately Git is a great tool that comes with a lot of possibilities…

MS Office

If, as a developer, you are under company constraints and must use MS Office,
you'll encounter some issues when trying to diff MS Office files.

Maybe you're asking yourself: what's the problem with that?

@morisono
morisono / gh_cli_archive_unarchive_repository.bash
Created March 3, 2025 09:19 — forked from dllopis-sfdc/gh_cli_archive_unarchive_repository.bash
How to archive / unarchive a repository with GitHub CLI
REPO_NAME=condition-jenkins
REPO_ID=$(gh api graphql -q '.data.repository.id' -f query="query {repository(owner: \"krux\", name: \"${REPO_NAME}\") {id}}")
# unarchive:
gh api graphql --silent -f query="mutation {archiveRepository(input: {repositoryId: \"${REPO_ID}\"}){clientMutationId}}"
# archive
gh api graphql --silent -f query="mutation {unarchiveRepository(input: {repositoryId: \"${REPO_ID}\"}){clientMutationId}}"
@morisono
morisono / cashless.go.jp_all.tsv
Created February 27, 2025 20:13 — forked from j416dy/cashless.go.jp_all.tsv
BINリスト 2019/11時点。VMJAのうちキャッシュレス決済に登録した事業者のみ。抜けてる可能性あり(頭2桁単位で確認)
BIN_From BIN_To BIN番号 キャッシュレスサービス名称 サービスURL
352800000 352819999 BI-0000001406 セゾンカード(セゾングループ発行含) https://www.saisoncard.co.jp/services/cashless1908.html
352820000 352820039 BI-0000001407 セゾンカード(セゾングループ発行含) https://www.saisoncard.co.jp/services/cashless1908.html
352820040 352820089 BI-0000001671 UsappyCardプラス+ http://www.idemitsucard.com/card/
352820090 352821909 BI-0000001408 セゾンカード(セゾングループ発行含) https://www.saisoncard.co.jp/services/cashless1908.html
352821910 352821999 BI-0000001370 タカシマヤカード https://www.t-card.co.jp/cashless/information/
352822000 352822499 BI-0000001409 セゾンカード(セゾングループ発行含) https://www.saisoncard.co.jp/services/cashless1908.html
352822500 352822999 BI-0000001371 タカシマヤカード https://www.t-card.co.jp/cashless/information/
352823000 352823259 BI-0000001410 セゾンカード(セゾングループ発行含) https://www.saisoncard.co.jp/services/cashless1908.html
352823260 352823269 BI-0000001372 タカシマヤカード https://www.t-card.co.jp/cashless/information/
@morisono
morisono / README.md
Created February 27, 2025 20:08 — forked from jamiephan/README.md
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@morisono
morisono / fix-wsl2-dns-resolution
Created February 27, 2025 20:07 — forked from coltenkrauter/fix-wsl2-dns-resolution
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@morisono
morisono / japanese_full.txt
Created February 27, 2025 20:06 — forked from kgsi/japanese_full.txt
日本語文字コード範囲指定(ascii・ひらがな・カタカナ・第一水準および第二水準(JIS-X0208-1997)に含まれる漢字)
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890〜¡¢£¤¥¦§¨©ª«¬ ®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ‒–—―‖‗‘’‚‛“”„‟†‡•…‪‫‬‭‮ ‰′″‴‹›‼‾⁄⁞€™□ 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/◆□■△▲▽▼※〒→←↑↓〓∈∋⊆⊇⊂⊃アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォッャュョーガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞたァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭ─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐
@morisono
morisono / r1.py
Created February 27, 2025 20:05 — forked from vgel/r1.py
script to run deepseek-r1 with a min-thinking-tokens parameter, replacing </think> with a random continuation string to extend the model's chain of thought
import argparse
import random
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache
import torch
parser = argparse.ArgumentParser()
parser.add_argument("question", type=str)
parser.add_argument(