Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var message;