Skip to content

Instantly share code, notes, and snippets.

View atulkadian's full-sized avatar
🎯
Focusing

Atul Kadian atulkadian

🎯
Focusing
View GitHub Profile
@atulkadian
atulkadian / setup.sh
Last active July 24, 2024 15:49
EC2 Setup for node apps
#!/bin/sh
# Copyright (C) 2024 Atul-Kadian
echo "Updating Packages ..."
sudo apt-get update
echo "Installing unzip"
sudo apt install unzip -y
echo "Install Nginx ..."
@atulkadian
atulkadian / git-import-repository.md
Created March 5, 2019 21:13 — forked from martinbuberl/git-import-repository.md
Import existing Git repository into another

Import existing Git repository into another

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
YYY
 |- .git
@atulkadian
atulkadian / gist:309aaaeee26aefbf78ca18cab9477741
Created December 28, 2018 14:24 — forked from msfjarvis/sepolicy.md
How to write sepolicy to fix a denial

Denial in question

avc: denied { read write } for pid=29059 comm="i.tetherservice" name="ipa" dev="tmpfs" ino=11991 scontext=u:r:system_app:s0 tcontext=u:object_r:ipa_dev:s0 tclass=chr_file permissive=0

sepolicy fix

allow system_app ipa_dev:chr_file {read write};