Skip to content

Instantly share code, notes, and snippets.

@yellow1912
yellow1912 / gist:43e4009e0384426ccfa017feb0eedcc9
Created Dec 5, 2018
Sample unserialize issue code for 7.3
View gist:43e4009e0384426ccfa017feb0eedcc9
a:4:{i:0;O:38:"Myrepo\AccountBundle\Model\LiteAccount":24:{s:8:"*roles";a:2:{i:0;s:23:"ROLE_MYREPO_SUPER_ADMIN";i:1;s:25:"ROLE_MYREPO_DEFAULT_ADMIN";}s:11:"*username";s:14:"full@gmail.com";s:20:"*usernameCanonical";s:14:"full@gmail.com";s:8:"*email";s:14:"full@gmail.com";s:17:"*emailCanonical";s:14:"full@gmail.com";s:7:"*salt";s:31:"izf39uqo4g00owcgwc04gko4ss0kscs";s:11:"*password";s:88:"4VtNLMaU0bkQ00G41AnkdfxQVAZTXvFgDSHxjVz/nHmhk/S2pZISejVavzuWEPydvekx4xkB4jVwWLWEiE8ORA==";s:18:"*currentPassword";N;s:16:"*plainPassword";N;s:20:"*confirmationToken";N;s:12:"*readGuide";b:0;s:12:"*lastLogin";O:8:"DateTime":3:{s:4:"date";s:26:"2018-12-05 10:05:24.000000";s:13:"timezone_type";i:3;s:8:"timezone";s:16:"Asia/Krasnoyarsk";}s:20:"*passwordRequested";N;s:20:"*accountRegistered";i:0;s:17:"*accountExpired";N;s:16:"*accountLocked";N;s:21:"*credentialsExpired";N;s:8:"*party";O:34:"Myrepo\PartyBundle\Model\LiteParty":42:{s:11:"*resource";s:0:"";s:8:"*email";N;s:9:"*avatar";N;s:8:"*roles";N;s:10:"*account";N;s:11:"*contact
View sample_lottie.json
{
"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 Apr 11, 2018
Updated Client.php for Phpredis
View Client.php
<?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
View sample.json
{
"pageview": {
"labels": [
{
"event_label": "/"
},
{
"event_label": "/about-us"
},
{
View gist:0a1f4d31aec3889b5464aa293d6cfd4e
/**
* Naive ExitIntent detector
*
* @author Vu Nguyen
* @link https://nilead.com
* @license Do Whatever The Fuck You Want
*/
(function () {
"use strict";
View Nginx SSL config
-----------------------------
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
View ssl error
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.../
View gist:345c8f38072403313aaf1e1ba354f3d6
<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">
View gist:c261510351d2280f61353ecce7151faf
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 Mar 10, 2016
testing workers
View test.go
package main
import (
"encoding/json"
"fmt"
"github.com/pdroog/beanstalkd"
"github.com/jeffail/tunny"
"log"
"os"
"os/exec"
You can’t perform that action at this time.