Skip to content

Instantly share code, notes, and snippets.

View tarvos21's full-sized avatar
🏠
Working from blackhole

bing tarvos21

🏠
Working from blackhole
View GitHub Profile
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 14, 2024 11:40
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.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active March 28, 2024 01:45
Minimal Analytics Snippet
(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 = () => {
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active March 8, 2024 02:11
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.
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
@dreampuf
dreampuf / Chinese Stop Words
Created May 9, 2013 15:30
Chinese Stop Words
,
?
@pawelmhm
pawelmhm / gist:8917867
Last active January 23, 2024 15:03
Scrapy spider crawling Stack Overflow
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()
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
@rogerleite
rogerleite / install_monaco_font.sh
Last active August 3, 2023 23:39
Install Monaco font in Linux
#!/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
@SiZapPaaiGwat
SiZapPaaiGwat / chinese-words.txt
Created May 13, 2016 06:18
常用汉字表3500(简体+繁体)
一乙乙二二十十丁丁廠厂七七蔔卜人人入入八八九九幾几兒儿了了力力乃乃刀刀又又三三於于幹干虧亏士士工工土土才才寸寸下下大大丈丈與与萬万上上小小口口巾巾山山千千乞乞川川億亿個个勺勺
久凡凡及及夕夕丸丸麽么廣广亡亡門门義义之之屍尸弓弓己己已已子子衛卫也也女女飛飞刃刃習习叉叉馬马鄉乡豐丰王王井井開开夫夫天天無无元元專专雲云紮扎藝艺木木五五支支廳厅不不太太犬犬
区歷历尤尤友友匹匹車车巨巨牙牙屯屯比比互互切切瓦瓦止止少少日日中中岡冈貝贝內内水水見见午午牛牛手手毛毛氣气升升長长仁仁什什片片仆仆化化仇仇幣币仍仍僅仅斤斤爪爪反反介介父父從从
今兇凶分分乏乏公公倉仓月月氏氏勿勿欠欠風风丹丹勻匀烏乌鳳凤勾勾文文六六方方火火為为鬥斗憶忆訂订計计戶户認认心心尺尺引引醜丑巴巴孔孔隊队辦办以以允允予予勸劝雙双書书幻幻玉玉刊刊
示末末未未擊击打打巧巧正正撲扑扒扒功功扔扔去去甘甘世世古古節节本本術术可可丙丙左左厲厉右右石石布布龍龙平平滅灭軋轧東东卡卡北北占占業业舊旧帥帅歸归且且旦旦目目葉叶甲甲申申叮叮
电號号田田由由史史只只央央兄兄叼叼叫叫另另叨叨嘆叹四四生生失失禾禾丘丘付付仗仗代代仙仙們们儀仪白白仔仔他他斥斥瓜瓜乎乎叢丛令令用用甩甩印印樂乐句句匆匆冊册犯犯外外處处冬冬鳥鸟
务包包饑饥主主市市立立閃闪蘭兰半半汁汁匯汇頭头漢汉寧宁穴穴它它討讨寫写讓让禮礼訓训必必議议訊讯記记永永司司尼尼民民出出遼辽奶奶奴奴加加召召皮皮邊边發发孕孕聖圣對对臺台矛矛糾纠
母幼幼絲丝式式刑刑動动扛扛寺寺吉吉扣扣考考托托老老執执鞏巩圾圾擴扩掃扫地地揚扬場场耳耳共共芒芒亞亚芝芝朽朽樸朴機机權权過过臣臣再再協协西西壓压厭厌在在有有百百存存而而頁页匠匠
夸奪夺灰灰達达列列死死成成夾夹軌轨邪邪劃划邁迈畢毕至至此此貞贞師师塵尘尖尖劣劣光光當当早早吐吐嚇吓蟲虫曲曲團团同同吊吊吃吃因因吸吸嗎吗嶼屿帆帆歲岁回回豈岂剛刚則则肉肉網网年年
朱先先丟丢舌舌竹竹遷迁喬乔偉伟傳传乒乒乓乓休休伍伍伏伏優优伐伐延延件件任任傷伤價价份份華华仰仰仿仿夥伙偽伪自自血血向向似似後后行行舟舟全全會会殺杀合合兆兆企企眾众爺爷傘伞創创
@stevenscg
stevenscg / google-analytics-for-static-sites.sh
Created June 25, 2013 16:16
Add Google Analytics tracking to an existing static website
#!/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
#
@leechannl
leechannl / emoji.json
Last active November 25, 2019 17:15
iOS input emoji mapping
{"墨鏡":{"emoji":["😎"]},
"泰國":{"emoji":["🇹🇭"]},
"南苏丹共和国":{"emoji":["🇸🇸"]},
"让利":{"emoji":["🈹️"]},
"男性":{"emoji":["🚹"]},
"向日葵":{"emoji":["🌻"]},
"營":{"emoji":["🈺️"]},
"斯里兰卡":{"emoji":["🇱🇰"]},
"兔子脸":{"emoji":["🐰"]},
"虫子":{"emoji":["🐛","🐜"]},