Skip to content

Instantly share code, notes, and snippets.

View bestK's full-sized avatar
❄️

ECH2O bestK

❄️
View GitHub Profile
@m33x
m33x / hass.js
Last active July 17, 2024 07:08
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@MoonTahoe
MoonTahoe / upload.yaml
Last active June 3, 2024 09:42
Github Action to build iOS app with expo and upload to testflight
# Just place this file in your repo under the .github/workflows folder.
# You set all of the secrets in the setting of the repo
name: Deploy to Testflight
# When a pull request is closed...
# This is because this action commits back to the repository
# so setting this on a push would cause an infinite loop of commits
# unless you pragmatically check the contents of the repo or something
@3j14
3j14 / watchscp.sh
Created June 28, 2020 13:08
Watch files and upload via scp
#!/bin/bash
UPLOAD=$1
fswatch -0 . | xargs -0 -I {} sh -c 'p="{}"; f="${p/$(pwd)\/}"; scp $p '"$UPLOAD"'"${f}"'
@imba-tjd
imba-tjd / .Cloud.md
Last active July 22, 2024 07:05
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@dreamlu
dreamlu / win-ss
Last active July 10, 2024 13:31
windows终端翻墙,简易方式
环境:shadowsocks、windows
本地ss端口设置(这里1080)
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量)
set http_proxy=http://127.0.0.1:1080
set https_proxy=http://127.0.0.1:1080
ps:一定要用cmd命令行,千万别用powershell !!!
简易测试命令:curl https://www.google.com(别用ping)
package com.ran.stream;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class CollectorsTest {
public static void main(String[] args) {
List<String>strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl");