Skip to content

Instantly share code, notes, and snippets.

welshstew /
Created Dec 9, 2016
sublime text 3 install
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
ZhouMeichen / 开源自动化测试框架.md
Last active Nov 5, 2017
整理熟悉的测试框架(Selenium、Watir、Watir WebDriver)
View 开源自动化测试框架.md



1. Selenium

Selenium是一个用于Web应用程序自动化测试的开源测试框架。Selenium是个庞大的家族,包含Selenium IDE、Selenium Server、Selenium Core、Selenium WebDriver、Selenium RC(Remote Control)、Selenium Grid、Selenium on Rails等。

Selenium 1.0(RC)


xmeng1 /
Last active Jun 21, 2018 — forked from seangtkelley/
Install Script for Gitkraken on Fedora 27 + Launcher Icon
# Enter /opt folder (common folder for user installed programs)
# This script assumes you have proper permissions on /opt
cd /home/mengxin/Applications
# Download GitKraken
# Extract the Kraken into /opt directory
import skimage;
from skimage import data
from skimage.filters import threshold_otsu
from skimage.segmentation import clear_border
from skimage.measure import label
from skimage.morphology import closing, square
from skimage.measure import regionprops
from skimage.color import label2rgb
import cv2
import numpy as np

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here:

After discovering it chowing 2 cores, I decided to go about disabling it.


leandrocp / Brocfile
Created Nov 6, 2014
Deploy ember-cli app on nginx
View Brocfile
/* global require, module */
// Prepend app name on assets names
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
fingerprint: {
enabled: true,
prepend: '/appX/'
xmeng1 / TypeClassDemo.scala
Created Jun 18, 2019
Cats Type Class Demo
View TypeClassDemo.scala
// Define a very simple JSON AST
sealed trait Json
final case class JsObject(get: Map[String, Json]) extends Json
final case class JsString(get: String) extends Json
final case class JsNumber(get: Double) extends Json
case object JsNull extends Json
////////////////// Step 1
// The "serialize to JSON" behaviour is encoded in this trait
trait JsonWriter[A] {
jamescmartinez / slack_delete.rb
Last active Jan 4, 2021
This Ruby script will bulk remove all Slack files older than 30 days. Just add your API token from into the token quotes at the top of the file.
View slack_delete.rb
require 'net/http'
require 'json'
require 'uri'
@token = ''
def list_files
ts_to = ( - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,

How to setup gitlab without embedded nginx

Install via omnibus-package

install the normal way:

wget & > /dev/null

sudo apt-get update
sudo apt-get upgrade
kenjipm / workers.sql
Last active Nov 23, 2021
The following data definition defines an organization's employee hierarchy. An employee is a manager if any other employee has their managerId set to the first employees id. An employee who is a manager may or may not also have a manager. TABLE employees id INTEGER NOT NULL PRIMARY KEY managerId INTEGER REFERENCES employees(id) name VARCHAR(30) …
View workers.sql
SELECT name FROM employees
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);