Skip to content

Instantly share code, notes, and snippets.

@pdelteil
pdelteil / gob-cl-chile.txt
Last active April 24, 2024 04:51
domains government sites Chile
_5a34971da639c5b9eb49bedf7f462269.eboleta.sii.cl
_dmarc.pjud.cl
10.inapi.cl
11.alo.mop.cl
11.inapi.cl
12.alo.mop.cl
12.inapi.cl
13.inapi.cl
14.alo.mop.cl
14.inapi.cl
@greymd
greymd / sudo新一.md
Last active April 24, 2024 04:47
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@nyancodeid
nyancodeid / commit-message-id.md
Last active April 24, 2024 04:45
Commit Message Guidelines

Pedoman Commit Message

Kami memiliki aturan yang sangat tepat tentang bagaimana pesan git commit kami dapat diformat. Ini mengarah ke pesan yang lebih mudah dibaca yang mudah diikuti ketika melihat melalui history proyek. Dan juga, kami menggunakan pesan git commit untuk menghasilkan log perubahan pada Angular.

Format Commit Message

Setiap pesan komit terdiri dari header, konten, dan catatan kaki. Judul memiliki format khusus yang mencakup jenis, cakupan, dan subjek:

<type>(<scope>): <subject>
<BLANK LINE>
@karljuhlpep
karljuhlpep / dspy_codegen.py
Last active April 24, 2024 04:45
DSPy Module - CodeGen + Debugging
import subprocess
import dspy
### Note this code is not tested, and likely includes errors that need to be refined.
class IterativeCodeRefinement(dspy.Module):
def __init__(self):
super().__init__()
self.generate_pseudocode = dspy.ChainOfThought("task -> pseudocode")
@nateheat
nateheat / rescue-grub-with-fedora-live-cd.sh
Last active April 24, 2024 04:42
re-install grub using Fedora Live CD. Fedora was installed with LVM. The system dual boots Ubuntu and Fedora.
su
mkdir /mnt/root
# You may use fdisk -l to list the devices
mount /dev/mapper/fedora-root /mnt/root
# Mount the boot partition, maybe /dev/sda1
# As the system has both Ubuntu and Fedora installed,
# so sda3 in my case
mount /dev/sda<3> /mnt/root/boot
@adapptor-kurt
adapptor-kurt / idb-workaround.py
Created August 14, 2020 01:12
Helps Flipper connect to physical iOS devices more reliably.
#!/usr/bin/env python3
# See https://github.com/facebook/flipper/issues/262
import os
import sys
import syslog
import shlex
import time
import subprocess

In this tutorial we're going to build a set of parser combinators.

What is a parser combinator?

We'll answer the above question in 2 steps.

  1. What is a parser?
  2. and, what is a parser combinator?

So first question: What is parser?

@agronick
agronick / pids.csv
Created September 9, 2023 23:37
Mazda 3 PIDs (Rough List)
Name ShortName ModeAndPID Equation Min Value Max Value Units Header startDiagnostic stopDiagnostic scale minimumRefreshDelayMillis
[FORD]Coolant temperature(From TCM) Coolant 0x0105 A-40 0 120 °C TCM 1 0
[FORD]Engine Oil Temp EOT 0x221310 (((A*256)+B)/100)-40 0 300 °C Auto 1 0
Boost Pressure BOOST 0x22f470 ((D*256+E)/32-[33])/100 -0.5 1.8 bar 7E0 1 0
Boost Pressure Desired BOOST DSD 0x22f470 ((B*256+C)/32-[33])/100 -0.5 1.8 bar 7E0 1 0
Brake Fluid Pressure BFP 0x22280a (A*256+B)*100/128 0 65535 kPa 7E0 1 0
Brake Switch BRAKE SW 0x22da05 {A:7} 0 1 ON/OFF 726 1 0
Charge Air Cooler Temperature CACT 0x22f477 C-40 -40 100 °C 7E0 1 0
Coupling Solenoid Duty Cycle CUP SOL 0x221e7a A*100/255 0 100 % 761 1 0
Distance from Bumper to Target DIST BMP TGT 0x22d901 B/4 0 16 m 793 1 0
@sts10
sts10 / rust-command-line-utilities.markdown
Last active April 24, 2024 04:27
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@jcefoli
jcefoli / move-recursive.ps1
Last active April 24, 2024 04:23
Powershell: Move Files & Folders In Directory Recursively to Another Directory
<#
Recursively move all files in C:\SourceDir into C:\Destination
Assumes C:\Destination exists already, or there could be problems
#>
Move-Item -Path "C:\SourceDir\*" -Destination "C:\Destination"