Skip to content

Instantly share code, notes, and snippets.

View varunpalekar's full-sized avatar

Varun Palekar varunpalekar

  • Siemens
  • Pune
View GitHub Profile
@varunpalekar
varunpalekar / gitlab-registry-delete.py
Created July 2, 2019 10:06
python script to delete all repository registry of gitlab
import requests
api_token = "secret_token"
res = requests.get("https://gitlab.com/api/v4/projects/8525642/registry/repositories",
headers={"PRIVATE-TOKEN": api_token}
)
for rep in res.json():
print( rep['id'] )
@varunpalekar
varunpalekar / README.md
Last active July 10, 2019 09:11
DevOps points for starting

Part 1

  1. Virtualbox with vagrant
    1. Creating a ubuntu 16.04 machine
    2. Setting up private ethernet by ubuntu network manager (not vagrant)
    3. Tune virtualbox by vagrant file (increase ram and CPU count)
  2. Process lookout
  3. Memory Lookout
  4. Deploy application
@varunpalekar
varunpalekar / git-crypt
Created March 5, 2020 15:08
git-crypt.md
Simple command to see git-crypt is working
==========================================
`git-crypt status */ | grep gpg | tee >( cut -d: -f 2 | xargs file )`
@varunpalekar
varunpalekar / extarct_files_vdi.md
Created April 13, 2020 05:39
Extract files from VDI linux

Introduction

We have problem that not able to run virtual box machine due to some windows VTX lock issue, so then I decided why not to run new machine using hyper-V, but what about the disk data. Here I am explaining how to get your data easily.

There may be multiple type of disk:

1. Linux plain partition disk:

Use 7zip to open vdi file, you can easily get the file content, then extract it.