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
void main() { | |
String originalString = getString(); | |
String doubledBackslashes = originalString.replaceAll('\\', '\\\\'); | |
print(doubledBackslashes); | |
} | |
String getString() { | |
return r''' | |
{ | |
"tblnm": "virusrmgt", |
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 artisan make:migration add_liveintent_column --table=leads |
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
sudo pip3 install requests | |
>sudo: pip3: command not found | |
sudo apt install python3-pip | |
pip3 install requests-html. | |
>pyppeteer.errors.BrowserError: Browser closed unexpectedly: |
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
/* | |
* This function copy $source directory and all files | |
* and sub directories to $destination folder | |
*/ | |
function recursive_copy($src,$dst) { | |
$dir = opendir($src); | |
@mkdir($dst); | |
while(( $file = readdir($dir)) ) { | |
if (( $file != '.' ) && ( $file != '..' )) { |
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
{"name":"Font Awesome v5.0.1", "icons":[ | |
"fab fa-500px", | |
"fab fa-accessible-icon", | |
"fab fa-accusoft", | |
"fas fa-address-book", "far fa-address-book", | |
"fas fa-address-card", "far fa-address-card", | |
"fas fa-adjust", | |
"fab fa-adn", | |
"fab fa-adversal", | |
"fab fa-affiliatetheme", |
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
ALTER TABLE students | |
ADD COLUMN | |
full_name varchar(250) GENERATED ALWAYS AS (second_last_name || ' ' || last_name || ' ' || name ) STORED |
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
param ( | |
[string]$file = $(throw "-file is required"), | |
[string]$ftphostpath = $(throw "-ftphostpath is required"), | |
[string]$username = $(throw "-username is required"), | |
[string]$password = $(throw "-password is required") | |
) | |
$f = dir $file | |
$req = [System.Net.FtpWebRequest]::Create("ftp://$ftphostpath/" + $f.Name); | |
$req.Credentials = New-Object System.Net.NetworkCredential($username, $password); |