This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################## | |
# Generate Filter tool: | |
# https://www.wireshark.org/tools/string-cf.html | |
# | |
# GET Filter: | |
# tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 | |
# POST Filter: | |
# tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354 && tcp[((tcp[12:1] & 0xf0) >> 2) + 4:1] = 0x20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace grep domain | |
additional_strace_args="$1" | |
MASTER_PID=$(ps auwx | grep php-fpm | grep -v grep | grep domain | grep 'master process' | awk '{print $2}') | |
while read -r pid; | |
do | |
if [[ $pid != $MASTER_PID ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Visit a news website like cnn.com | |
// 2. paste this into your console | |
setInterval(() => | |
document.querySelectorAll('p,img,a,button,h1,h2,h3,span') | |
.forEach(x=>x.style=`transform:rotate(${Math.random()*777}deg) scale(${Math.random()* 3}); transition:all .5s`) | |
, 500); | |
// 3. feel a lil bit better 😘 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vlc.exe -vvv dshow:// :dshow-vdev="" :dshow-adev="M-Audio Delta AP Mon. Mixer" :live-caching=3000 :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{dst=:8080/radio.mp3} :sout-keep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function csv_to_array($filename='', $delimiter=',') | |
{ | |
if (!file_exists($filename) || !is_readable($filename)) | |
return FALSE; | |
$header = NULL; | |
$data = array(); | |
if (($handle = fopen($filename, 'r')) !== FALSE) { | |
while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find number of files in folder recursively | |
find . -type f | wc -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error when try access gmail from php imap solution: | |
Login to your gmail account, enable imap. | |
Let the access here first: https://www.google.com/settings/security/lesssecureapps | |
Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Buffer all upcoming output... | |
ob_start(); | |
// Send your response. | |
echo "Testing response"; | |
// Get the size of the output. | |
$size = ob_get_length(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: roshan | |
* Date: 4/5/15 | |
* Time: 2:46 PM | |
*/ | |
class Aes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# Description: Cyberoam Ping Script | |
# save in /etc/init.d/pinger | |
# start : $ server pinger start | |
# status : $ server pinger status | |
# stop : $ server pinger stop | |
# Description: Cyberoam Ping Script | |
address=192.168.220.250 | |
do_start() | |
{ |