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
@echo off | |
REM Find the first Go file in the folder | |
for %%f in (*.go) do ( | |
set GOFILE=%%f | |
goto :found | |
) | |
:found | |
if not defined GOFILE ( | |
echo No Go file found in the current directory. |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\NewGoFile] | |
"Icon"="C:\\Program Files\\Go\\bin\\go.exe" | |
"MUIVerb"="New Go File" | |
"Position"="Top" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\NewGoFile\command] | |
@="cmd /c \"echo. > \"%V\\newfile.go\" && notepad \"%V\\newfile.go\"\"" |
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
# CentOS-Base.repo | |
# | |
# The mirror system uses the connecting IP address of the client and the | |
# update status of each mirror to pick mirrors that are updated to and | |
# geographically close to the client. You should use this for CentOS updates | |
# unless you are manually picking other mirrors. | |
# | |
# If the mirrorlist= does not work for you, as a fall back you can try the | |
# remarked out baseurl= line instead. | |
# |
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
go build -ldflags "-s -w" | |
PS C:\> sc.exe create MyService <path to your service_app.exe> | |
PS C:\> sc.exe start MyService | |
PS C:\> sc.exe delete MyService | |
// file: main.go | |
package main | |
import ( |
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
Run vi /etc/multipath.conf and add this to the file: | |
defaults { | |
user_friendly_names yes | |
} | |
blacklist { | |
device { | |
vendor "VMware" | |
product "Virtual disk" |
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
g++.exe ro.cpp |
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 ( | |
"encoding/hex" | |
"fmt" | |
) | |
func main() { | |
pdu := "b11a" // Example PDU hex string | |
decodedBytes, err := hex.DecodeString(pdu) |
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 |