Skip to content

Instantly share code, notes, and snippets.

View aliwo's full-sized avatar
🏠
Working from home

정승원 aliwo

🏠
Working from home
View GitHub Profile
@Makeshift
Makeshift / tutorial.md
Last active March 28, 2024 02:33
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

@yunho0130
yunho0130 / guide.md
Created February 23, 2021 13:13 — forked from rishubil/guide.md
SCE-TTS: 내 목소리로 TTS 만들기

📗 문서 주소가 https://sce-tts.github.io/ 으로 변경되었습니다.

SCE-TTS와 관련한 최신 정보는 위 주소를 참고해주세요!

아래의 내용은 이전 문서 내용입니다.


SCE-TTS: 내 목소리로 TTS 만들기

@chwnam
chwnam / kt_starbucks_2019.py
Last active May 3, 2024 02:10
스타벅스 와이파이 자동 인증 파이썬3 스크립트
#!/usr/bin/env python3
import time
from http.cookiejar import Cookie
from re import search, findall
from urllib.parse import urlencode
from urllib.request import (
HTTPCookieProcessor,
HTTPRedirectHandler,
Request,
@perrygeo
perrygeo / models__init__.py
Last active December 29, 2020 03:23
Django models.py to models/ directory
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
An __init__.py for django which allows models to be
organized into separate files without any boilerplate
IOW, go from this...
├── models
@hest
hest / gist:8798884
Created February 4, 2014 06:08
Fast SQLAlchemy counting (avoid query.count() subquery)
def get_count(q):
count_q = q.statement.with_only_columns([func.count()]).order_by(None)
count = q.session.execute(count_q).scalar()
return count
q = session.query(TestModel).filter(...).order_by(...)
# Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ...
print q.count()