Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from blackhole

bing tarvos21

🏠
Working from blackhole
  • Solar System
View GitHub Profile
View minimal-analytics-snippet.js
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@simongfxu
simongfxu / chinese-words.txt
Created May 13, 2016
常用汉字表3500(简体+繁体)
View chinese-words.txt
一乙乙二二十十丁丁廠厂七七蔔卜人人入入八八九九幾几兒儿了了力力乃乃刀刀又又三三於于幹干虧亏士士工工土土才才寸寸下下大大丈丈與与萬万上上小小口口巾巾山山千千乞乞川川億亿個个勺勺
久凡凡及及夕夕丸丸麽么廣广亡亡門门義义之之屍尸弓弓己己已已子子衛卫也也女女飛飞刃刃習习叉叉馬马鄉乡豐丰王王井井開开夫夫天天無无元元專专雲云紮扎藝艺木木五五支支廳厅不不太太犬犬
区歷历尤尤友友匹匹車车巨巨牙牙屯屯比比互互切切瓦瓦止止少少日日中中岡冈貝贝內内水水見见午午牛牛手手毛毛氣气升升長长仁仁什什片片仆仆化化仇仇幣币仍仍僅仅斤斤爪爪反反介介父父從从
今兇凶分分乏乏公公倉仓月月氏氏勿勿欠欠風风丹丹勻匀烏乌鳳凤勾勾文文六六方方火火為为鬥斗憶忆訂订計计戶户認认心心尺尺引引醜丑巴巴孔孔隊队辦办以以允允予予勸劝雙双書书幻幻玉玉刊刊
示末末未未擊击打打巧巧正正撲扑扒扒功功扔扔去去甘甘世世古古節节本本術术可可丙丙左左厲厉右右石石布布龍龙平平滅灭軋轧東东卡卡北北占占業业舊旧帥帅歸归且且旦旦目目葉叶甲甲申申叮叮
电號号田田由由史史只只央央兄兄叼叼叫叫另另叨叨嘆叹四四生生失失禾禾丘丘付付仗仗代代仙仙們们儀仪白白仔仔他他斥斥瓜瓜乎乎叢丛令令用用甩甩印印樂乐句句匆匆冊册犯犯外外處处冬冬鳥鸟
务包包饑饥主主市市立立閃闪蘭兰半半汁汁匯汇頭头漢汉寧宁穴穴它它討讨寫写讓让禮礼訓训必必議议訊讯記记永永司司尼尼民民出出遼辽奶奶奴奴加加召召皮皮邊边發发孕孕聖圣對对臺台矛矛糾纠
母幼幼絲丝式式刑刑動动扛扛寺寺吉吉扣扣考考托托老老執执鞏巩圾圾擴扩掃扫地地揚扬場场耳耳共共芒芒亞亚芝芝朽朽樸朴機机權权過过臣臣再再協协西西壓压厭厌在在有有百百存存而而頁页匠匠
夸奪夺灰灰達达列列死死成成夾夹軌轨邪邪劃划邁迈畢毕至至此此貞贞師师塵尘尖尖劣劣光光當当早早吐吐嚇吓蟲虫曲曲團团同同吊吊吃吃因因吸吸嗎吗嶼屿帆帆歲岁回回豈岂剛刚則则肉肉網网年年
朱先先丟丢舌舌竹竹遷迁喬乔偉伟傳传乒乒乓乓休休伍伍伏伏優优伐伐延延件件任任傷伤價价份份華华仰仰仿仿夥伙偽伪自自血血向向似似後后行行舟舟全全會会殺杀合合兆兆企企眾众爺爷傘伞創创
@alirobe
alirobe / reclaimWindows10.ps1
Last active Sep 27, 2021
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
View Install the latest tmux (2.2 now) on CentOS 6.7
## you may need sudo permission to execute some commands or swith to root
# if installed old version by yum, remove it first
sudo yum remove tmux libevent libevent-devel libevent-headers
# install deps
sudo yum install gcc kernel-devel make ncurses-devel
# create temp dir
mkdir /tmp/for-latest-tmux
@leechannl
leechannl / emoji.json
Last active Nov 25, 2019
iOS input emoji mapping
View emoji.json
{"墨鏡":{"emoji":["😎"]},
"泰國":{"emoji":["🇹🇭"]},
"南苏丹共和国":{"emoji":["🇸🇸"]},
"让利":{"emoji":["🈹️"]},
"男性":{"emoji":["🚹"]},
"向日葵":{"emoji":["🌻"]},
"營":{"emoji":["🈺️"]},
"斯里兰卡":{"emoji":["🇱🇰"]},
"兔子脸":{"emoji":["🐰"]},
"虫子":{"emoji":["🐛","🐜"]},
@pawelmhm
pawelmhm / gist:8917867
Last active Jan 19, 2020
Scrapy spider crawling Stack Overflow
View gist:8917867
from scrapy.spider import Spider
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.selector import Selector
from scrapy.item import Item, Field
import urllib
class Question(Item):
tags = Field()
answers = Field()
@stevenscg
stevenscg / google-analytics-for-static-sites.sh
Created Jun 25, 2013
Add Google Analytics tracking to an existing static website
View google-analytics-for-static-sites.sh
#!/bin/sh
#
# Add a Google Analytics tag to static website files
# @see http://adambuchanan.me/post/26345221717/updating-google-analytics-code-on-many-static-pages
# Tested on MacOS 10.8.X
#
# Usage:
# Set the GA parameters below
# Execute the script from the top-level of the static site
#
View Chinese Stop Words
,
?
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active Sep 16, 2021
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
View node-and-npm-in-30-seconds.sh
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@rogerleite
rogerleite / install_monaco_font.sh
Last active Sep 15, 2021
Install Monaco font in Linux
View install_monaco_font.sh
#!/bin/bash
# Install Monaco font in Linux
# Version from nullvideo https://gist.github.com/rogerleite/99819#gistcomment-2799386
sudo mkdir -p /usr/share/fonts/truetype/ttf-monaco && \
sudo wget https://gist.github.com/rogerleite/b50866eb7f7b5950da01ae8927c5bd61/raw/862b6c9437f534d5899e4e68d60f9bf22f356312/mfont.ttf -O - > \
/usr/share/fonts/truetype/ttf-monaco/Monaco_Linux.ttf && \
sudo fc-cache