Archives for Programming
How to hide your powerscript windows showing
We can wrap it on a VBscript file Dim shell, command Set shell = CreateObject("") ' Specify your command here command = " -File c:/users/user01" ' Run the command...
A PowerShell script to show the diagnostic settings for AppInsights
You can modify the script based on your need:
Git clean up and working with remote branch
Discard all your local changes: git reset –hard HEAD git clean -d -f Check local and remote branch: git branch -v -a Check out a remote branch git switch...
Hacking Cloudflare 100MB upload limit
If you are on free plan, you might realize that you can’t upload any files larger than 100MB. This is the limit that cloudflare applies to Free plan. If...
Git: Filename too long
I just got a new machine, it’s time to clone my git repository to this new machine. I think it will be just very simple, just use Visual Studio...
Encryption / Decryption between PHP/Python
I need to share some data between PHP and Python in a secure way, this is what i found on the internet, a library to encrypt/decrypt data working both...
Datadog – PHP – Adding client IP to your trace
When i use Datadog to collect tracer/span in our PHP , i realize that Datadog library does not collect the client IP address. I don’t know what the reason...
Puppeteer – URL Sequence (steps) monitor
With puppeteer, we normally visit a website, that website has a form for us to submit the data. In the api world, there is no form for us to...
PHP : HTTP Post with Curl
A sample function to use curl post data. $data=array() $data=array(); $data=”hello world”; $data=”hello user”; curl_post($url,$data) function curl_post($url,$fields) { //open connection $ch = curl_init(); //set the url, number of POST...