Skip to content

Instantly share code, notes, and snippets.

{
"v": "5.4.1",
"fr": 30,
"ip": 0,
"op": 600,
"w": 1920,
"h": 710,
"nm": "Banner Abstract",
"ddd": 0,
"assets": [{
@yellow1912
yellow1912 / Client.php
Created April 11, 2018 08:59
Updated Client.php for Phpredis
<?php
/*
* This file is part of the SncRedisBundle package.
*
* (c) Henrik Westphal <henrik.westphal@gmail.com>
* (c) Yassine Khial <yassine.khial@blablacar.com>
* (c) Pierre Boudelle <pierre.boudelle@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
{
"pageview": {
"labels": [
{
"event_label": "/"
},
{
"event_label": "/about-us"
},
{
/**
* Naive ExitIntent detector
*
* @author Vu Nguyen
* @link https://nilead.com
* @license Do Whatever The Fuck You Want
*/
(function () {
"use strict";
-----------------------------
NGINX setup
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
built with OpenSSL 1.0.2h 3 May 2016
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_addition_module --with-http_dav_module --with-ht
openssl s_client -connect mysite.com:443 -debug
CONNECTED(00000003)
write to 0xdb5010 [0xdb5da0] (305 bytes => 305 (0x131))
0000 - 16 03 01 01 2c 01 00 01-28 03 03 20 f4 14 1a 35 ....,...(.. ...5
0010 - f6 69 61 92 ce 1e 9d 51-c9 42 a1 5c 6b d1 7e fd .ia....Q.B.\k.~.
0020 - fb e3 f0 0c 42 24 09 7d-fa 3d 30 00 00 aa c0 30 ....B$.}.=0....0
0030 - c0 2c c0 28 c0 24 c0 14-c0 0a 00 a5 00 a3 00 a1 .,.(.$..........
0040 - 00 9f 00 6b 00 6a 00 69-00 68 00 39 00 38 00 37 ...k.j.i.h.9.8.7
0050 - 00 36 00 88 00 87 00 86-00 85 c0 32 c0 2e c0 2a .6.........2...*
0060 - c0 26 c0 0f c0 05 00 9d-00 3d 00 35 00 84 c0 2f .&.......=.5.../
<nl-font-selection ng-model="WindowController.nilead_block_style.typography.font">
<div class="form-group row">
<div class="col-xs-1 text-xs-center">
<i class="nli nli-typography-label nli-label-font-family"></i>
</div>
<div class="col-xs-11">
<nl-dropdown ng-model="FontSelectionController.fontFamily">
<div class="btn-group btn-block">
<button type="button" class="btn btn-secondary dropdown-toggle btn-block" data-toggle="dropdown">
nilead.namespace('nilead.design.form.font-selection', class FontSelectionDirective {
constructor() {
this.restrict = 'E';
this.require = 'ngModel';
this.scope = true;
this.bindToController = {model: '=ngModel'};
this.replace = true;
this.transclude = true;
// this.templateUrl = 'form.length-adjuster.html';
@yellow1912
yellow1912 / test.go
Created March 10, 2016 17:38
testing workers
package main
import (
"encoding/json"
"fmt"
"github.com/pdroog/beanstalkd"
"github.com/jeffail/tunny"
"log"
"os"
"os/exec"
// first query, please make sure you modify this query to fit your purpose
$ids_array = array();
$result = mysql_query("SELECT id FROM table_name");
while($row = mysql_fetch_array($result))
{
$ids_array[] = $row['id'];
}