Skip to content

Instantly share code, notes, and snippets.

HackerRahul hackerrahul

Block or report user

Report or block hackerrahul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View squirrelsetup.log
2017-04-08 23:13:19> Program: Starting Squirrel Updater: --install .
2017-04-08 23:13:19> Program: Starting install, writing to C:\Users\ABRSS\AppData\Local\SquirrelTemp
2017-04-08 23:13:19> Program: About to install to: C:\Users\ABRSS\AppData\Local\atom
2017-04-08 23:13:19> Program: Install path C:\Users\ABRSS\AppData\Local\atom already exists, burning it to the ground
2017-04-08 23:13:20> Utility: The files inside C:\Users\ABRSS\AppData\Local\atom could not be read
2017-04-08 23:13:20> Utility: The directories inside C:\Users\ABRSS\AppData\Local\atom could not be read
2017-04-08 23:13:20> IEnableLogger: Failed to remove existing directory on full install, is the app still running???: System.UnauthorizedAccessException: Access to the path 'C:\Users\ABRSS\AppData\Local\atom' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
View function.php
function detect($body){
if(preg_match("%(?:youtube(?:-nocookie)?\.com/(?:[\w\-?&!#=,;]+/[\w\-?&!#=/,;]+/|(?:v|e(?:mbed)?)/|[\w\-?&!#=,;]*[?&]v=)|youtu\.be/)([\w-]{11})(?:[^\w-]|\Z)%i", $body)) {
preg_match("%(?:youtube(?:-nocookie)?\.com/(?:[\w\-?&!#=,;]+/[\w\-?&!#=/,;]+/|(?:v|e(?:mbed)?)/|[\w\-?&!#=,;]*[?&]v=)|youtu\.be/)([\w-]{11})(?:[^\w-]|\Z)%i", $body, $matches);
if(isset($matches[1])) {
$body = ''.$matches[1];
View index.html
<!DOCTYPE html>
<title>Button over image on Hover -</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<div class="w3-container">
<h1>Show Button Over Image on hover</h1>
<div class="w3-display-container w3-hover-opacity" style="width:50%">
View infinite_scroll.sql
CREATE TABLE `infinite_scroll_post` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`body` varchar(255) NOT NULL,
`url` varchar(5000) NOT NULL
View get_data.php
include 'db.php';
if (isset($_GET['offset']) && isset($_GET['limit'])) {
$offset = $_GET['offset'];
$limit = $_GET['limit'];
$data = mysqli_query($conn, "SELECT * FROM infinite_scroll_post LIMIT {$limit} OFFSET {$offset}");
while($row = mysqli_fetch_array($data)){
echo "<div class='w3-card-4' >
View db.php
$servername = "localhost";
$username = "root";
$password = "";
$db = "infinite_scrolling";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $db);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
View bottom_reach.js
$(window).scrollTop() >= $(document).height() - $(window).height()
View appen_data.js
<script type="text/javascript">
var start = 0;
type : "GET",
url : "get_data.php",
data : {
'offset' : 0,
'limit' : 5
View insert.php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
You can’t perform that action at this time.