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
<!-- | |
> Muaz Khan - www.MuazKhan.com | |
> MIT License - www.WebRTC-Experiment.com/licence | |
> Documentation - github.com/muaz-khan/RecordRTC | |
> and - RecordRTC.org | |
for converting to base64 | |
audioElement.src = URL.createObjectURL(encoder.finish()); | |
let reader = new window.FileReader(); |
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 | |
$url1 = 'https://api.giphy.com/v1/gifs/search?limit=15&q=he&api_key=xTiQyliBbaDfjlTkC4&rating=pg-13'; | |
$url2 = 'https://api.iextrading.com/1.0/stock/MSFT/quote'; | |
$url3 = 'https://api.iextrading.com/1.0/stock/GOOGL/quote'; | |
$nodes = array($url1, $url2, $url3); | |
$node_count = count($nodes); |
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 | |
//require_once('/path/to/stripe-php/init.php'); | |
require_once('init.php'); | |
/* | |
\Stripe\Stripe::setApiKey('sk_test_BQokikJOvBiI2HlWgH4olfQ2'); | |
// $charge = \Stripe\Charge::create(['amount' => 120, 'currency' => 'usd', 'source' => 'tok_189fqt2eZvKYlo2CTGBfg6Yq']); | |
$charge = \Stripe\Charge::create(['amount' => 120, 'currency' => 'usd', 'source' => 'tok_1CBKi82eZvKYlo2CPEQwkA0a']); | |
*/ |
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
// INSTALL LETSENCRYPT ON UBUNTU 16.04 | |
sudo apt update && sudo apt upgrade | |
# IGNORE if git already installed (to check git --version) | |
sudo apt-get install git | |
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt |
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
CREATE TABLE public.users | |
( | |
id serial NOT NULL, | |
email character varying(155), | |
pwd text NOT NULL, | |
u_name character varying(155), | |
f_name character varying(100), | |
l_name character varying(100), | |
dob timestamp without time zone NOT NULL, | |
platform smallint DEFAULT 0, |
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
# Windows image file caches | |
Thumbs.db | |
ehthumbs.db | |
# Folder config file | |
Desktop.ini | |
# Recycle Bin used on file shares | |
$RECYCLE.BIN/ |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<center> | |
<form action="ab1.php" method="post" enctype="multipart/form-data"> | |
Select image to upload: | |
<input type="file" name="file"><br><br> | |
Desired width: <input type="text" name="desired_width"><br><br> | |
<input type="submit" value="Upload Image" name="submit"> | |
</form> |
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
//$window.location.reload(); | |
//$state.go("login"); | |
$cookies.put("token", response.token); | |
var value = $cookies.get("token"); | |
/* $cookies.put("loginUserId", response[0].id); | |
$rootScope.loginUserId = $cookies.get("loginUserId"); */ | |
localStorageService.set("loginUserId", response.id); |
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
There are plenty of one line terminal commands that can prove to be exorbitantly dangerous. | |
1. The Delete Everything Command | |
rm -rf / | |
This command deletes everything it possibly can, including files on your hard drive and files on connected removable media devices. This command can be explained as follows: | |
rm – Remove the following files. | |
-rf – Run rm recursively. |
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
# for setting node path in windows | |
setx NODE_PATH "%NODE_PATH%;C:\Users\winbdows 7\AppData\Roaming\npm\node_modules" |
NewerOlder