Skip to content

Instantly share code, notes, and snippets.

@danbao
danbao / tengine_with_replace_filter_nginx_module
Last active April 27, 2016 08:56
add replace-filter-nginx-module into tengine and create deb package
#!/usr/bin/env bash
# Copyright @ LinZhen@Net
# install git
apt-get install git -y
# install sregex
apt-get install bison -y
cd /tmp
git clone https://github.com/openresty/sregex.git
@danbao
danbao / pom.xml
Last active August 29, 2015 14:13
Selenium Webdriver Maven POM
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Selenium4Test</groupId>
<artifactId>Selenium4Test</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>Selenium4Test</name>
@danbao
danbao / SeleniumForFirefox.java
Last active August 29, 2015 14:13
Selenium For Firefox : Open Firefox and Search linzhen@net
package Selenium.start;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
public class SeleniumForFirefox {
@danbao
danbao / SeleniumForChrome.java
Last active May 30, 2023 19:32
Selenium For Chrome : Open Chrome and Search linzhen@net
package Selenium.start;
import java.io.File;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
@danbao
danbao / SeleniumForIE.java
Last active August 29, 2015 14:13
Selenium For Internet Explorer: Open IE and Search linzhen@net
package Selenium.start;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
public class SeleniumForIE {
@danbao
danbao / nesign.py
Created October 24, 2015 15:51 — forked from abrasumente233/nesign.py
网易云音乐签到(pc android)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import json
import random
import math
import base64
import requests
@danbao
danbao / Makefile
Last active December 25, 2016 14:19
SHELL= /bin/bash
BASE_VERSION= ${NGINX_VERSION}
BASE_RELEASE= 1
BASE_SRC= nginx-$(BASE_VERSION).tar.gz
SRCDIR= nginx-$(BASE_VERSION)
SRCPATH?= ../..
CODENAME= $(shell lsb_release -cs)
ARCH= $(shell uname -m)