Skip to content

Instantly share code, notes, and snippets.

View sheepla's full-sized avatar
🐑
メェ〜

sheepla sheepla

🐑
メェ〜
View GitHub Profile
@qguv
qguv / vscode-wayland.md
Last active September 28, 2025 16:52
Visual Studio Code: Enable native Wayland support

Native wayland support is now working consistently for me in VSCode, giving much better text rendering. Unfortunately, it's still hidden behind some command-line flags.

By adding some files to /usr/local/*, you can ensure that VSCode always launches with these flags.

Adding launch flags to VSCode

Assuming that the VSCode launcher is /usr/bin/code-oss (as is the case in Arch):

  1. Create /usr/local/bin/code-oss with the following content:
@AWtnb
AWtnb / mokof.go
Last active July 23, 2023 11:38
fuzzy-filter for PowerShell
package main
import (
"bufio"
"flag"
"fmt"
"os"
"github.com/ktr0731/go-fuzzyfinder"
)
@greymd
greymd / teip2.md
Last active May 30, 2023 16:10
teip v2.0 でヤバい機能がついた件

teip v2.0 でヤバい機能がついた件

teip コマンド に関するお話

まとめ

  1. teip v2.0 に新機能:マッチオフロード機能
  • テープの穴をあける行の指定に外部コマンドが使えるようになった
  1. あるコマンドの抽出範囲のみを、範囲外は残したまま、別のコマンドで編集可能になる
@YusukeHosonuma
YusukeHosonuma / jojo.md
Created May 8, 2022 05:35
開発で使えるJOJOの名言集

この○○が金やちやほやされるために技術ブログを書いていると思っているのかァーッ!!

技術ブログを書いていることをアフェリエイト目的とか、PV目的だとか言われた時に。

なるほど完璧な開発プロセスっスねーーーっ不可能だという点に目をつぶればよぉ〜

一見完璧に聞こえるけど、どう考えたって上手く回らない開発プロセスの説明を受けた時に。

理解不能理解不能・・・あ、理解可能

ようやく理解できた時に。

お前は1つの修正が終わったらキチっとコミットしてから次の修正に入るだろう? 誰だってそーする。俺もそーする。

@AWtnb
AWtnb / get_default_browser.py
Created May 20, 2022 01:39
get default browser path with Python (on Windows10)
import re
from winreg import HKEY_CURRENT_USER, HKEY_CLASSES_ROOT, OpenKey, QueryValueEx
def get_browser_name() -> str:
register_path = r'Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice'
with OpenKey(HKEY_CURRENT_USER, register_path) as key:
return str(QueryValueEx(key, "ProgId")[0])
def format_cmd(s:str) -> str:
exe_path = re.sub(r"(^.+exe)(.*)", r"\1", s)
@yohfee
yohfee / ddsk.fsx
Last active August 4, 2022 03:04
ドドスコード
let next =
let rand = System.Random()
fun () -> [| "ドド"; "スコ" |] |> Array.item (rand.Next 2)
let fin = String.replicate 3 "ドドスコスコスコ"
""
|> Seq.unfold (fun s ->
if s.EndsWith(fin) then
None
@lum1narie
lum1narie / dodosuko.nim
Last active August 3, 2022 12:37
ドドスコテスト KMP法
import std/random
import std/tables
import std/sets
import sequtils
type Dodosuko = enum
Dodo = "ドド"
Suko = "スコ"
DSNil = ""
sequenceDiagram
    autonumber
    actor 男女
    participant suzume as スズメ
    participant kounotori as コウノトリ
    男女->>男女: セックス
    suzume->>男女: セックス確認
    suzume->>kounotori: 連絡
 kounotori->>kounotori: セックス
@shariqmalik
shariqmalik / Configure_WSA_for_Pentest.md
Last active September 16, 2025 05:44
Configure WSA (Windows Subsystem for Android) for Pentest
@haruki7049
haruki7049 / unko.hs
Created October 20, 2022 00:53
うんこの量が多すぎる!!
unkoJudge :: Double -> String
unkoJudge volume
| volume <= 10.0 = "Too little..."
| volume <= 20.0 = "Uh... OK. It may be safe."
| otherwise = "Oh!! Your unko is very big!!! You are LEGEND!!!"