Skip to content

Instantly share code, notes, and snippets.

@avestura
avestura / delete-from-users-where-location-iran.md
Last active December 14, 2025 18:29
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.

@InSb
InSb / custom_phrase_double.txt
Last active March 4, 2025 12:44
雾凇拼音 - 小鹤双拼自用配置,内含短语码表
# Rime table
# coding: utf-8
#@/db_name custom_phrase_double.txt
#@/db_type tabledb
#
# version: "2024-05-12"
#
# 自用小鹤双拼短语码表
# 基于【小鹤音形: 10.9m_20231123 build 423】修改
# 内含一码字、二码字词
@calexandre
calexandre / merge-zsh-history.sh
Last active September 28, 2025 12:23
Merge two zsh history files
#!/bin/bash
# Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/
set -e
history1=$1
history2=$2
merged=$3
echo "Merging history files: $history1 + $history2"
test ! -f $history1 && echo "File $history1 not found" && exit 1
#!/usr/bin/env runhaskell
-- Copyright (C) 2018 Daniel Gröber <[email protected]>
--
-- Copying and distribution of this file, with or without modification,
-- are permitted in any medium without royalty provided the copyright
-- notice and this notice are preserved. This file is offered as-is,
-- without any warranty.
{-|
License: GNU All-Permissive License
@mariotaku
mariotaku / README.md
Last active December 18, 2020 05:01
Followers Cleaner Script

Usage

  1. Execute pip3 install -r requirements.txt to install dependencies
  2. Execute followers_clear.py and follow instructions.

Notes

Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.

@Avaq
Avaq / combinators.js
Last active November 25, 2025 09:37
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@JaHIY
JaHIY / yanwenzi.json
Created May 15, 2015 06:45
A岛颜文字
{
"hacfun":[
"|∀゚",
"(´゚Д゚`)",
"(;´Д`)",
"(`・ω・)",
"(=゚ω゚)=",
"| ω・´)",
"|-` )",
"|д` )",
@kukat
kukat / Philips 288P6 4K 开箱.md
Last active January 7, 2020 07:05
Philips 288P6 4K 开箱

为什么 4K?为什么 28 寸

  • 分辨率越大显示的东西越多
  • 高 PPI: 157
  • OS X 10.9.3 以后改进了对 4K 的支持,可以 “Retina” 化,这样就不会出现 Mac 外接显示器字体发虚的问题
  • 尝鲜,想体验下超高清
  • 放在公司办公用,TN 面板无所谓,我不嫌弃
  • 价钱不贵

为什么 Philips?

301 https://github.com/zxdrive/imouto.host
@dojiong
dojiong / hello.go
Created May 13, 2013 14:19
gae http proxy
//GAE app的主体
package hello
import (
"appengine"
"appengine/urlfetch"
"bytes"
"encoding/gob"
"io"