Skip to content

Instantly share code, notes, and snippets.

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

Alick Zhao alick

🏠
Working from home
View GitHub Profile
@alick
alick / ingress-passcode.js
Last active September 28, 2022 22:49 — forked from idealhack/ingress-passcode.js
ingress passcode auto run
// disable iitc plugin if it's on
// go to https://www.ingress.com/intel
// open console and paste in the code below, press enter
// join https://t.me/passcodes for more passcodes
// add jquery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
sudo ln -s /usr/lib/jvm/openjfx/rt/lib/amd64/libglassgtk2.so /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-11.fc28.x86_64/jre/lib/amd64/
@alick
alick / gist:7c8f1ff5e0f3309765123cef2d75c007
Created May 13, 2018 03:11
(clang) cmake --build release
[ 97%] Building CXX object CMakeFiles/ccls.dir/src/messages/workspace_did_change_watched_files.cc.o
[ 98%] Building CXX object CMakeFiles/ccls.dir/src/messages/workspace_symbol.cc.o
[100%] Linking CXX executable ccls
/usr/bin/ld: cannot find -lLLVMSupport
/usr/bin/ld: cannot find -lLLVMDemangle
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/ccls.dir/build.make:1061: ccls] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ccls.dir/all] Error 2
gmake: *** [Makefile:130: all] Error 2
(master=)$ cmake -DCMAKE_BUILD_TYPE=Release -Brelease -H.
-- The CXX compiler identification is GNU 7.3.1
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using downloaded Clang
-- Downloading Clang 6.0.0 (https://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz) ...
Delivered-To: alick9188@gmail.com
Received: by 2002:adf:81b5:0:0:0:0:0 with SMTP id 50-v6csp1536344wra;
Fri, 11 May 2018 18:51:09 -0700 (PDT)
X-Received: by 2002:aca:851:: with SMTP id 78-v6mr864228oii.61.1526089869585;
Fri, 11 May 2018 18:51:09 -0700 (PDT)
ARC-Seal: i=3; a=rsa-sha256; t=1526089869; cv=pass;
d=google.com; s=arc-20160816;
b=0xFiA3gy8u8HmcVDHNEeXTLbRZWOb80NmGob7EvI7Q4AsKFO+x6RImOzkiqslNTrvo
YiFzxdyQxGPCW4j8tHfUMPedS1VC4Xpw/7C+isPIpv43GMY96p4uiIzQul7u0yN8PAsJ
upOz/oNI/90MQzdGWOVQzSE7+vYl7UF+VngtMbiyaaccNqEsqNG0J33/jq3tc4mTuUFR
@alick
alick / isatap
Created April 14, 2016 20:05
Bring up IPv6 through ISATAP tunnel.
#!/bin/bash
# vim730: set tw=80 cc=+1:
# Bring up IPv6 through ISATAP tunnel.
version="1.0"
usage() {
cat <<EOF
USAGE:
@alick
alick / replace-song-yahei-courier-fonts
Created October 25, 2015 15:07
User style for Chinese websites to replace Songti, Microsoft Yahei, and Courier fonts to alternatives on Linux.
@-moz-document regexp('https?://.*\\.cn/.*'), regexp('https?://dict.youdao.com/.*') {
@font-face {font-family:'宋体';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'SimSun';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'新宋体';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'NSimSun';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'微软雅黑';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'Microsoft YaHei';src: local('Source Han Sans CN Normal');}
@font-face {font-family:'Courier New';src: local('monospace');}
@font-face {font-family:'Courier';src: local('monospace');}
}
@alick
alick / tbcon
Created August 31, 2012 09:20
Thunderbird Contact Sync tool
#!/bin/sh
# vim: set et sw=4:
# Thunderbird contact pull and push.
usage ()
{
echo "USAGE:"
echo "$0 push/pull"
}
@alick
alick / fvwm-xdg-menu.py
Created July 22, 2012 06:44
fvwm-xdg-menu with some fixes
#!/usr/bin/python
# Author: Piotr Zielinski (http://www.cl.cam.ac.uk/~pz215/)
# Licence: GPL 2
# Date: 03.12.2005
# This script takes names of menu files conforming to the XDG Desktop
# Menu Specification, and outputs their FVWM equivalents to the
# standard output.
#