Skip to content

Instantly share code, notes, and snippets.

View sunjeewa's full-sized avatar
🎯
Focusing

Sanjeewa Wijesundara sunjeewa

🎯
Focusing
View GitHub Profile
def get_public_ip():
ip = get('https://api.ipify.org').text
return ip

Keybase proof

I hereby claim:

  • I am sunjeewa on github.
  • I am sanjeewa (https://keybase.io/sanjeewa) on keybase.
  • I have a public key ASB_8Wilx2pJSGf4bmcrO-T1qFaUjyCxHC_rCM3HNv2MPwo

To claim this, I am signing this object:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install vim
cp 'C:\Program Files (x86)\vim\vim80\vim.exe' c:\windows\system32\
Add column to table: php artisan make:migration add_country_to_users_table
migrate:fresh Drop all tables and re-run all migrations
sudo docker run -it -v=/home/sun/code:/root/code --device=/dev/kfd --device=/dev/dri --group-add video local/tf
"AmazonAPIsSG" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "Security group to allow egress ap-southeast-2 AWS APIs",
"SecurityGroupIngress": [
{
"CidrIp": "127.0.0.1/32",
"IpProtocol": "-1"
}
],
@sunjeewa
sunjeewa / Makefile
Created April 22, 2017 06:40
Go static binary flags
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .