Skip to content

Instantly share code, notes, and snippets.

@alainwolf
alainwolf / cyanogen_sshd.sh
Last active August 25, 2023 15:37
SSH server on CyanogenMod Smaprtphones
#!/bin/sh
adb root
adb remount
#
# Create a minimal but safe SSH Daemon configuration
cat <<EndOfSSHDConfigFile > sshd_config
# Minimal OpenSSH daemon configuration for CyanogenMod 10.1+
AuthorizedKeysFile /data/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no
@will-henney
will-henney / internal-links-test.org
Last active August 23, 2022 20:59
Tests of internal link syntax in emacs org-mode and in org-ruby
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
Include file (Java)
<%@ include file="/WEB-INF/jsp/common/date.jsp" %>
Include file (JSP)
<jsp:include page="/WEB-INF/jsp/common/date.jsp">
@devxpy
devxpy / midi_numbers.py
Last active May 22, 2024 06:29
A python script that converts MIDI message numbers to notes and instruments (and vice-versa)
INSTRUMENTS = [
'Acoustic Grand Piano',
'Bright Acoustic Piano',
'Electric Grand Piano',
'Honky-tonk Piano',
'Electric Piano 1',
'Electric Piano 2',
'Harpsichord',
'Clavi',
'Celesta',
@luuductoan
luuductoan / writeup.md
Last active June 10, 2019 15:43
FUCTF Season 1

FUCTF Season 1

FUHCM_ch0jvjkj3nthUc

Cryptography - Warm up

Đếm thứ tự từ chữ f đến chữ u và từ u đến c là 7 kí tự thì ta có quy luật
Bắt đầu từ f đếm đến chữ thứ 7 thì ghi lại kế bên, tiếp tục vậy cho đến hết đề
Sau mỗi lần đếm đến cuối thì ghi lại kí tự kế bên chữ f ở đề bài và bắt đầu lập lại với kí tự đó trong đề

f{_coleuwur_l!c4pyce!tr_phn!fm_tag}
fu{_colewur_l!c4pyce!tr_phn!fm_tag}

@Arahnoid
Arahnoid / emacs-image-functions.org
Last active March 12, 2022 20:01
Collection of useful emacs-lisp functions for working with images

Editing images in Markdown files

ig/md-imagemagick-add-shadow

When an image has large bits of white color it may merge with the document background. To avoid this lets add a shadow to the image. We can parse the file path from a image object in Markdown file and send it to ImageMagic.

(defun ig/md-imagemagick-add-shadow ()
  "Add shadow to a Markdown image element"
  (interactive "@*")
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active July 5, 2024 12:13
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@urob
urob / git_for_zmk.md
Last active July 4, 2024 00:38
Maintaining a personal ZMK fork