Skip to content

Instantly share code, notes, and snippets.

View dsoft02's full-sized avatar

Ebenezer Ogidiolu dsoft02

View GitHub Profile
@dsoft02
dsoft02 / fb_accept_friends.js
Created January 12, 2025 07:04 — forked from thealphadollar/fb_accept_friends.js
Script To Accept All Facebook Friend Requests
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Facebook = {
config: {
actionDelay: 1000,
scrollDelay: 5000,
// set to -1 for no limit
maxRequestsToAccept: -1,
totalRequestsAccepted: 0,
// set string to be present in names to be accepted, leave empty to accept all
/** Creating and Deploying using Git, Github and PHP **/
Prerequisites:
Server: SSH Acces, PHP, Git
Local: SSH, Git
0.Create a PHP file in your project called "deploy.php" with this content: /*<?php `git pull`;*/
1. Create Your Github Repo
2. Go to your project folder and initiate a git repository
@dsoft02
dsoft02 / state.php
Created January 31, 2023 07:17 — forked from Ajinx1/state.php
Nigeria states and LGA automatically with html select
<?php
<div class="form-group has-feedback" id="state1">
<div class="form-group input-group has-feedback">
<select class="form-control" name="state" id="state" placeholder="Pick State" onchange="show(this)">
</select>
<span class="input-group-addon"><i class="fa fa-map"></i></span>
</div>
<span class="help-block" id="helpstate"></span>
</div>
@dsoft02
dsoft02 / getWorkingDays.php
Created November 17, 2022 10:03 — forked from quawn/getWorkingDays.php
PHP: GetWorkingDays excluding weekend and holidays
<?php
function getWorkingDays($startDate,$endDate,$holidays) {
// do strtotime calculations just once
$endDate = strtotime($endDate);
$startDate = strtotime($startDate);
//The total number of days between the two dates. We compute the no. of seconds and divide it to 60*60*24
//We add one to inlude both dates in the interval.
$days = ($endDate - $startDate) / 86400 + 1;
@dsoft02
dsoft02 / countrydropdown.html
Created August 30, 2022 14:13 — forked from danrovito/countrydropdown.html
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>