Skip to content

Instantly share code, notes, and snippets.

View DorkNstein's full-sized avatar

Yeshwanth M DorkNstein

  • Dallas
View GitHub Profile
@DorkNstein
DorkNstein / [Git] CRLF will be replaced by LF
Created October 18, 2023 15:16
[Git] CRLF will be replaced by LF
$ git config --global core.autocrlf input # Configure Git on OS X to properly handle line endings
$ git rm --cached -r . && git reset --hard # Warning, your local changes will be lost, so commit FIRST
@DorkNstein
DorkNstein / macos-setup.sh
Last active September 1, 2023 16:05 — forked from derrickshowers/macos-setup.sh
Setup script for macOS.
#!/bin/bash
# Update me!
COMPUTER_NAME="Airfred"
COMPUTER_NETWORK_NAME="Airfred"
# Setup script for macOS.
# Download. Update variables above. Run `chmod 755 ./macos-setup.sh && ./macos-setup.sh`.
# Adapted from: https://gist.github.com/AlexanderSix/c0ac2d87abd205b9a9c9cdb8502c2f4e
# Also adapted from: https://gist.github.com/bradp/bea76b16d3325f5c47d4
adb shell settings put global settings_provider_model false
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(adb shell settings get secure sysui_qs_tiles)"
@DorkNstein
DorkNstein / AdbCommands
Created August 2, 2022 01:56 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
☐ 1. clone https://bitbucket.org/7Tablets/simplex-mobile/src/development/
☐ 2. Run these commands in this order:
nvm use && npm i
sudo gem install cocoapods -v 1.10.0
npm run pod:install
# if above pod install doesn't work then do :
npm run pod:install:update
☐ 3. Android keystores download from this link and move it to android/app folder
https://drive.google.com/drive/folders/11Z-trlfoxZdAZivOUwlbuIYAc892iSik?usp=sharing
@DorkNstein
DorkNstein / azure-open-firewall-in-vm.sh
Created June 14, 2021 15:10
Azure open firewall to all specific port from RedHat VM.
# Open port 22 (example)
# (RHEL/CentOS/Fedora)
sudo firewall-cmd --permanent --add-port=22/tcp
sudo firewall-cmd --reload
# (Debian/Ubuntu)
sudo ufw allow 22/tcp
sudo ufw reload
# OLD INSTALLATION PROCESS
# NOTE: USE NEW PROCESS BELOW IF IT FAILS
cd ~
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
cat ~/.aws/config
aws configure --profile "<profile name>"
# Set all Access keys and secret keys
# For local test:
# Install docker in your local system
# For EC2 follow following instructions
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
sudo yum update -y
sudo amazon-linux-extras install docker -y
sudo usermod -a -G docker ec2-user
sudo service docker start
sudo service docker restart # If sudo issues arise
# Create CodeDeploy in AWS IAM
# Follow: https://levelup.gitconnected.com/set-up-a-continuous-delivery-pipeline-from-bitbucket-to-aws-ec2-using-aws-code-deploy-a9777a3cbcad
sudo yum update -y \
&& sudo yum install ruby wget -y \
&& cd /home/ec2-user \
&& wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/install \
&& chmod +x ./install \
&& sudo ./install auto \
1. Solr Server setup
-----------------------------------------------------------------------------
Use below link as a reference
https://www.webfoobar.com/node/16
https://valuebound.com/resources/blog/installing-configuring-apache-solr-520-with-drupal-7-using-search-api-ubuntu-1404
1. If Java is not installed, check the available versions of Java and install it:
yum list available java*
yum install java-1.8.0-openjdk.x86_64
-----------------------------------------------