Skip to content

Instantly share code, notes, and snippets.

View nyanshiba's full-sized avatar
🎃
in the kotatsu

nyanshiba

🎃
in the kotatsu
View GitHub Profile
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.9.11, RELEASE SOFTWARE
! Compiled Dec 15-Fri-2023 13:25:17 JST #2
! Last updated May 20-Mon-2024 03:25:54 JST
!
service ssl-protocol tls1.2-and-later
!
hostname HomeLab
timezone +09 00
@thesamesam
thesamesam / xz-backdoor.md
Last active May 31, 2024 14:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@aamiaa
aamiaa / RevertNewLayout.md
Last active May 27, 2024 03:13
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@Xeukxz
Xeukxz / RevertUI.md
Last active June 1, 2024 04:22
Revert Discord UI

Updated Version:

If you want to download an older version ive heard 205.15 works well, i reccomend ApkMirror

Using a modified app (Android & IOS friendly):

  1. Follow the instructions from https://github.com/vendetta-mod/Vendetta
  2. After the client is installed, navigate to Settings > Plugins, then click the +, and finally paste https://vd-plugins.github.io/proxy/maisymoe.github.io/strife/Experiments into the input and click Install
  3. Once the experiments plugin is enabled, reload the app then go to Settings > Experiments > Tabs V2 - redesign opt-out/in for all and select Control Bucket.

Ive also heard enmity works well for IOS.

@doraTeX
doraTeX / ocr.sh
Last active April 19, 2024 13:04
A shell script to perform OCR on images/PDFs using macOS built-in OCR engine
#!/bin/bash
SCRIPTNAME=$(basename "$0")
function realpath () {
f=$@;
if [ -d "$f" ]; then
base="";
dir="$f";
else
base="/$(basename "$f")";
@sheepla
sheepla / Install-OpenSSH.ps1
Last active September 4, 2023 12:39
Install OpenSSH server for Windows and configure to manage Windows computer remotely
<#
.DESCRIPTION
Install OpenSSH and configure to manage Windows computer remotely.
.LINK
https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_overview
#>
Write-Host "Installing OpenSSH..."
Get-WindowsCapability -Online | Where-Object {$_.Name -ILike "openssh*"} | ForEach-Object {
@voluntas
voluntas / learning-webrtc_2023-05.md
Last active March 16, 2024 15:30
時雨堂 WebRTC 入門 (講師資料) v2023-05

時雨堂 WebRTC 入門 (講師資料) v2023-05

これは時雨堂が開催しているオンラインイベントである WebRTC 入門の 講師用 の資料であり、 参加者用の資料ではありません。

時雨堂 WebRTC 入門 オンラインイベント

概要

ChatGPT がある今、学ぼうと思えば好きなだけ学べる時代がきています。

@syuu1228
syuu1228 / 0001docomo-nmcli.txt
Last active June 4, 2023 19:36
Linuxのコマンドラインから0001docomoに接続
$ nmcli connection add type wifi ifname wlo1 con-name 0001docomo ssid 0001docomo
Connection '0001docomo' (a6fde1b0-6055-4e6c-a314-05027eb6083a) successfully added.
$ nmcli con edit id 0001docomo
===| nmcli interactive connection editor |===
Editing existing '802-11-wireless' connection: '0001docomo'
Type 'help' or '?' for available commands.
Type 'print' to show all the connection properties.
@pandax381
pandax381 / ix3315.startup-config
Last active May 21, 2024 03:56
IX3315 にフレッツ光クロス2回線(OCNバーチャルコネクトおよびv6プラス固定IP)を収容するためのコンフィグ
! NEC Portable Internetwork Core Operating System Software
! IX Series IX3315 (magellan-sec) Software, Version 10.7.18, RELEASE SOFTWARE
! Compiled Oct 25-Tue-2022 12:28:03 JST #2
! Current time Apr 26-Wed-2023 16:52:00 JST
!
timezone +09 00
!
logging buffered 819200
logging subsystem flt warn
logging subsystem mape debug
@ymmt2005
ymmt2005 / howto-tech-docs.md
Last active May 10, 2024 03:46
技術文書の書き方

技術文書の書き方

このメモは、私(@ymmt2005)が長年にわたってソフトウェアプロダクト開発に関わってきて 2022年現在こうしたほうが良いと考えているベストプラクティスです。

科学的な分析等に基づくわけではない経験則であるため、今後も随時見直すことがありますし、 ここに書いてあることが常に正しいわけでもあらゆるソフトウェア開発に適するわけでもありません。

しかしながら、実務経験が豊富で、モダンな技術スタックに明るいエンジニアの経験則は一定の 役に立つのではないかと考えて記します。