This file contains hidden or 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
Export-WindowsDriver -Online -Destination c:\drivers |
This file contains hidden or 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
composer init | |
{ | |
"name": "ArrayUniqueTest/test-project", | |
"require-dev": { | |
"phpunit/phpunit": "^9.5" | |
} | |
} | |
composer install --dev | |
./vendor/bin/phpunit ArrayUniqueTest.php |
This file contains hidden or 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
//بیخال شدن از تغییرات تا الان | |
git reset --hard |
This file contains hidden or 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
var walAddress="0xd10b684DB06fc09A2f6B2744DeF46c81673Fb8c2" | |
var nextRunTimeRandom; | |
var isExecuting = false; | |
function getRandomTime() { | |
nextRunTimeRandom =Math.floor(Math.random() * 111) + 125; | |
return nextRunTimeRandom; | |
} | |
// Function to create the div and apply the style | |
function createLastRunTimeDiv() { |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"net/url" | |
"strings" | |
"unicode/utf16" | |
) | |
func main() { |
This file contains hidden or 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
/usr/local/php74/bin/pecl install timezonedb | |
You should add "extension=timezonedb.so" to php.ini |
This file contains hidden or 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
$Env:GOOS = "linux" ; $Env:GOARCH = "amd64"; go build -o TelircoEsbLog -ldflags "-w -s" ../main.go ; C:\portable\upx-4.0.2-win64\upx.exe TelircoEsbLog ; explorer . |
This file contains hidden or 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
gdb `which php82` | |
run xxx.php | |
bt |
This file contains hidden or 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
$ mongo | |
MongoDB shell version: 2.4.9 | |
connecting to: test | |
> use myDb | |
switched to db myDb |
This file contains hidden or 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 | |
// Make a request to ipify API | |
$apiUrl = 'https://api.ipify.org?format=json'; | |
$response = file_get_contents($apiUrl); | |
// Check if the request was successful | |
if ($response !== false) { | |
// Decode the JSON response | |
$data = json_decode($response, true); |