Skip to content

Instantly share code, notes, and snippets.

@sunteya
sunteya / source.list
Created February 26, 2019 08:52
ubuntu 18.04 source.list
#deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# ======================
# Fity
# ======================
# Google
gmail.com
google.com
google.co.jp
google.com.hk
gstatic.com
googleapis.com
drawFaces = function(photoElement, faceList) {
var face = faceList[n];
var frameElement = $("<div/>");
var frameLeft = Math.round(0.01 * (face.position.center.x - face.position.width / 2) * photoElement.width);
var frameTop = Math.round(0.01 * (face.position.center.y - face.position.height / 2) * photoElement.height);
var frameWidth = Math.round(0.01 * face.position.width * photoElement.width);
var frameHeight = Math.round(0.01 * face.position.height * photoElement.height);
var frameBroderWidth = Math.round(Math.min(6, Math.max(2, frameWidth / 10)));
var gender = face.attribute.gender.value.toLowerCase();
if(110 <= frameWidth && 110 <= frameHeight) {
feature "Signing in" do
background do
User.make(:email => 'user@example.com', :password => 'caplin')
end
scenario "Signing in with correct credentials" do
visit '/sessions/new'
within("#session") do
fill_in 'Login', :with => 'user@example.com'
fill_in 'Password', :with => 'caplin'
# require "spec_helper"
describe Api::LiveController do
describe "GET channels" do
let(:with_params) { {} }
action { get :channels, { format: :json }.merge(with_params) }
before(:each) do
[ [ "CH1" , "LOCAL" ],
local-ttl=60
neg-ttl=60
#max-ttl=691200
# ===== STR GFW =====
# google