sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let collection = ZoteroPane.getSelectedCollection(); | |
let itemIDs = collection.getChildItems(true); | |
const fieldName = 'extra' | |
const fieldID = Zotero.ItemFields.getID(fieldName); | |
function extractCodeURL(data) { | |
if (!data || data.length == 0) return ""; | |
if (data[0].repository && data[0].repository.url) return data[0].repository.url; | |
return ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract ILSVRC2012 without killing your SSD | |
import tarfile | |
import os | |
import sys | |
def mkdir(x): | |
try: | |
os.makedirs(x) | |
except OSError, e: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name custom-style-for-notion | |
// @version 0.1 | |
// @author zwithz | |
// @match https://www.notion.so/zwithz/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.notion-page-content div { | |
line-height: 1.9rem !important; | |
} | |
div.notion-page-content div.notion-record-icon { | |
margin-bottom: 8px !important; | |
} | |
div { | |
font-family: Lyon-Text, Georgia, YuMincho, "Yu Mincho", "Songti SC", SimSun, "Nanum Myeongjo", NanumMyeongjo, Batang, serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name flomo-evergreen-theme | |
// @version 0.5 | |
// @author zwithz | |
// @match https://flomo.app/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h3 { | |
color: #000 !important; | |
} | |
.el-tooltip { | |
border-radius: 5px !important; | |
} | |
div.user { | |
justify-content: space-between; |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
- Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
- Create or import a key -- see below for https://keybase.io
- Run
gpg --list-secret-keys
and look forsec
, use the key ID for the next step - Configure
git
to use GPG -- replace the key with the one fromgpg --list-secret-keys
I hereby claim:
- I am zwithz on github.
- I am zwithz (https://keybase.io/zwithz) on keybase.
- I have a public key ASBohE7FJ4boNS8J_aKjUnHqSPded8DrTNT9PgdLfsSraQo
To claim this, I am signing this object:
NewerOlder