Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
test -n "$DEBUG" && set -x
# __ __ ___
# /\ \\ \ /'___`\
# \ \ \\ \ /\_\ /\ \
# \ \ \\ \_\/_/// /__
# \ \__ ,__\ // /_\ \
# \/_/\_\_//\______/
set nocompatible
filetype off
" Download Vundle if it doesn't already exist
if !isdirectory(expand('~/.vim/bundle/Vundle.vim'))
echo "Installing Vundle..."
call system('git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim')
endif
set diffexpr=MyDiff()
@Pandoxie
Pandoxie / install-gcc-9.sh
Created August 4, 2022 05:05 — forked from alexandreelise/README.md
Install gcc 9 on Ubuntu LTS 12.04,14.04,16.04 and 18.04
#!/usr/bin/env sh
sudo apt-get update -y && \
sudo apt-get upgrade -y && \
sudo apt-get dist-upgrade -y && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update -y && \
sudo apt-get install gcc-9 g++-9 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
@Pandoxie
Pandoxie / poll.py
Created October 10, 2015 16:02
poll
# -*- coding: utf-8 -*-
import urllib
from bs4 import BeautifulSoup
import urllib2
import contextlib
headers = {
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Origin': 'http://family.ruisheng.info',
@Pandoxie
Pandoxie / 01.cmake
Created December 22, 2013 12:54
Ettercap Compilation error.
-- The C compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang
-- Check for working C compiler: /usr/local/Library/ENV/4.3/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h