Skip to content

Instantly share code, notes, and snippets.

View AnmolTomer's full-sized avatar
💻
Learning

Anmol Tomer AnmolTomer

💻
Learning
View GitHub Profile
@AnmolTomer
AnmolTomer / basic_ubuntu_commands.md
Created August 26, 2020 14:17
List Commands for day to day tasks

List of Linux Commands for day to day tasks

  • List all contents of directory in a human readable format with last modified time : ls -Slh >> list.txt
@AnmolTomer
AnmolTomer / New_VM_Machine.md
Last active February 3, 2021 13:29
VMWare New Machine Tweaks

1. Enable Clipboard Copy in VMWare Workstation

When you create a new VM, in my case I store my new VMs in Documents\Virtual Machines directory, so for e.g. if I create the VM named wot_lab then for that you have a file with extension wot_lab.vmx created as well. You can open <vm_name>.vmx file with notepad and to enable clipboard copy paste between host and guest you need to paste these two params:

isolation.tools.copy.disable = "FALSE"
isolation.tools.paste.disable = "FALSE"
@AnmolTomer
AnmolTomer / WINDOWS_10.md
Last active September 6, 2021 23:12
WINDOWS 10 PS SNIPPETS
  1. GET DETAILS OF APPLICATION WITH PID RUNNING ON A SPECIFIC PORT

Replace 5500 with the port that you want to get info on.

  • Get-Process -Id (Get-NetTCPConnection -LocalPort 5500).OwningProcess Reference
  1. KILL TASK WITH SPECIFIC PID - WINDOWS 10
  • taskkill /F /PID 7644
  1. SHORTEN THE SYSTEM PATH VARIABLE IF YOU REACH 2047 LIMIT
@AnmolTomer
AnmolTomer / CentOS7.md
Last active February 9, 2021 21:57
CentOS 7 - 2009 Setup Oracle VirtualBox
import random
import sys
from optparse import OptionParser
import Util
from Connection import Connection
class SSHBruteForce():
def __init__(self):
@AnmolTomer
AnmolTomer / .gitignore
Last active August 20, 2024 05:28
bits/stdc++.h file for mac - Tested on Sonoma 14.6.1 -> 2024-08-14
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
@AnmolTomer
AnmolTomer / check_fc_25_status.py
Last active December 4, 2024 12:25
Checks on EA Server page if FC25 is down or not
from bs4 import BeautifulSoup
import requests
import pprint
url = 'https://help.ea.com/en/help/faq/are-ea-servers-down/'
def check_server_status():
url = "https://help.ea.com/en/help/faq/are-ea-servers-down/"
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'