Skip to content

Instantly share code, notes, and snippets.

@neno-tech
neno-tech / code.gs
Last active March 7, 2025 02:08
การบันทึกข้อมูลลงชีตด้วยไฟล์ HTML
var sheetName = 'xxx'
var scriptProp = PropertiesService.getScriptProperties()
function intialSetup () {
var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet()
scriptProp.setProperty('key', activeSpreadsheet.getId())
}
function doPost (e) {
var lock = LockService.getScriptLock()
@zhuziyi1989
zhuziyi1989 / URL Schemes.md
Last active March 7, 2025 02:04
常用 URL Schemes 收集。

** 由于此文年事已久,可能某些 URL Schemes 已失效,可在评论区留言指出!(最后更新于 2024.10.28)

关于 URL Scheme 你知道多少?

iOS 系统中

由于苹果的各应用都是在沙盒中,不能够互相之间访问或共享数据。但是苹果还是给出了一个可以在 APP 之间跳转的方法:URL Scheme。简单的说,URL Scheme 就是一个可以让 APP 相互之间可以跳转的协议。每个 APP 的 URL Scheme 都是不一样的,如果存在一样的 URL Scheme,那么系统就会响应先安装那个 APP 的 URL Scheme,因为后安装的 APP 的 URL Scheme 被覆盖掉了,是不能被调用的。

Android 系统中

@jarun
jarun / Termux_from_Ubuntu.md
Last active March 7, 2025 02:04
How to connect to Termux from Ubuntu desktop

In this example, we will setup a SSH server on Termux (for Android) and connect to the server from Ubuntu desktop. However, a similar procedure should work with any SSH server.

  1. Generate your ssh key pair on your desktop

    $ ssh-keygen
    
  2. Check your desktop IP address (say, 192.168.0.100)

  3. Run ssh server on your desktop

  4. Copy the file to Termux over SCP

$ scp [email protected]:~/.ssh/id_rsa.pub ~/.ssh/authorized_keys

@devmaars
devmaars / Termux SSH Tutorial.md
Created April 5, 2024 15:05
This guide will show you how to set up an ssh server on your phone using Termux and connect to it from your computer. This is useful if you want to access your phone's files or run commands on your phone from your computer.

How to ssh to termux the right way

Termux

Requirements

  • Termux (From F-Droid)
  • ADB (Android Debug Bridge)
  • USB Cable (Wireless connection is also possible but it's slower)
@danhollick
danhollick / tailwind-css-v4.mdc
Last active March 7, 2025 02:03
Cursor rules file for Tailwind CSS v4.0
# Tailwind CSS v4.0
## Core Changes
- **CSS-first configuration**: Configuration is now done in CSS instead of JavaScript
- Use `@theme` directive in CSS instead of `tailwind.config.js`
- Example:
```css
@import "tailwindcss";
@creatorlxd
creatorlxd / string_converter.cpp
Last active March 7, 2025 02:02
string to wstring and wstring to string
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
wstring StringToWString(const string& str)
{
wstring wstr;
size_t size;
@Moonbase59
Moonbase59 / pl-copyfiles
Last active March 7, 2025 01:59
pl-copyfiles – Copies media files from M3U playlists to a destination folder, keeping folder structure and file attributes. Avoids unneeded copying.
#!/bin/bash
# pl-copyfiles
#
# Copies media files from M3U playlists to a destination folder,
# keeping folder structure and file attributes.
#
# Can use .m3u, .m3u8 (or actually any text file containing a newline-
# separated list of files) with absolute or relative file paths,
# both simple (one line per file) and #EXTM3U formats.
@asefsoft
asefsoft / list_of_blocked_sites.md
Last active March 7, 2025 01:55
لیست سایت های تحریم کننده ایران

لیست سایت ها و دامنه هایی که آی پی های ایران را تحریم کرده اند.

analytics.google.com
firebaseremoteconfig.googleapis.com
cloud.google.com
ads.google.com
fonts.googleapis.com
developer.android.com
@itsmikita
itsmikita / macos-iso.md
Last active March 7, 2025 01:51
Extract ISO image from macOS Somona installer