Skip to content

Instantly share code, notes, and snippets.

View preetampvp's full-sized avatar

Preetam Pattanashetty preetampvp

  • Melbourne, Australia
View GitHub Profile
@preetampvp
preetampvp / list.txt
Created March 20, 2020 06:16 — forked from shortjared/list.txt
List of AWS Service Principals
acm.amazonaws.com
alexa-appkit.amazon.com
apigateway.amazonaws.com
application-autoscaling.amazonaws.com
appstream.application-autoscaling.amazonaws.com
appsync.amazonaws.com
athena.amazonaws.com
autoscaling.amazonaws.com
batch.amazonaws.com
channels.lex.amazonaws.com
@preetampvp
preetampvp / stuns
Created May 5, 2020 01:25 — forked from zziuni/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@preetampvp
preetampvp / main.py
Created May 31, 2020 04:13
Hackerrank 2nd question
import re
from collections import Counter
def buildDictionary():
# { "code": "char"}
return {
"0": "a",
"1": "b",
"2": "c",
"3": "d",
@preetampvp
preetampvp / settings.json
Last active December 11, 2020 02:58
Windows terminal config
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@preetampvp
preetampvp / GitCommitEmoji.md
Created February 2, 2021 01:39 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@preetampvp
preetampvp / setting-up-xps-15-9560.org
Created February 7, 2021 21:41 — forked from skeptomai/setting-up-xps-15-9560.org
Installing Ubuntu 16.04 on Dell XPS 15 (9560)

Installing Ubuntu 18.04 on Dell XPS 15 (9560)

Booting and Installing

Find a reference for creating a bootable Ubuntu 18.04 USB. You’ll need to follow one of the references below to make BIOS changes for the disk, secure boot, and legacy boot options.

Grub command line

Hit F12 while booting, and select the USB UEFI device corresponding to your USB key. Unless you alter the Grub command line, Ubuntu Live will hang initializing the NVIDIA card.

@preetampvp
preetampvp / CfnInitMetadataBuilder.ts
Created March 1, 2021 02:47 — forked from brettswift/CfnInitMetadataBuilder.ts
CDK 1.10.1 - ASG Cloudformation Init example
import autoscaling = require("@aws-cdk/aws-autoscaling")
import scriptAssets = require("./CfnInitScriptAsset")
import iam = require('@aws-cdk/aws-iam')
import cdk = require('@aws-cdk/core')
/**
* Helpful context into what was built.
* Use these to get logical ID's when constructing your userdata.
*/
@preetampvp
preetampvp / Handy Varnish commands.md
Created April 12, 2021 05:53 — forked from ogrrd/Handy Varnish commands.md
Handy Varnish commands

Handy Varnish commands

See what Varnish is currently processing

$ varnishlog

Show the referer (sic) header for requests

@preetampvp
preetampvp / program.cs
Created September 7, 2022 01:34
SMB Local
using System.Net;
using SMBLibrary;
using SMBLibrary.Client;
using FileAttributes = SMBLibrary.FileAttributes;
var client = new SMB2Client();
var isConnected = client.Connect(
IPAddress.Loopback,