Skip to content

Instantly share code, notes, and snippets.

@nimeshpahadi
nimeshpahadi / spring crud
Last active September 9, 2017 18:01
simple spring crud operation
http://www.journaldev.com/3531/spring-mvc-hibernate-mysql-integration-crud-example-tutorial
# mysql databse (edit Person to PERSON)
@nimeshpahadi
nimeshpahadi / spring login
Created September 11, 2017 18:46
spring login and registration
https://hellokoding.com/registration-and-login-example-with-spring-xml-configuration-maven-jsp-and-mysql/
# issues
- appconfig-data.xml (windsow->preferences->xml->xml files->validation->uncheck(Honour all xml schema locations)
- login/registration/welcome.jsp (rightclick->project->targeted runtimes->check(server)
@nimeshpahadi
nimeshpahadi / mouse issue
Created August 1, 2018 03:46
fixing mouse not showing problem
sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps
sudo gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
or
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable --ruby
source /home/nimesh/.rvm/scripts/rvm
rvm get stable --autolibs=enable
rvm install ruby-2.6.6
rvm --default use ruby-2.6.6
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install python3-venv
python3 -m venv testenv
django-admin startproject project_name
mv project_name/manage.py ./
mv project_name/project_name/* project_name
rm -r project_name/project_name/
sendgrid api key
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
git rm --cached *.pyc
# Or, to untrack all .pyc files in a project recursively,
$ find . -name '*.pyc' | xargs -n 1 git rm --cached
# configure
sudo apt install python3-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install mysql-client mysql-server
# for python version > 2
sudo apt install python3-pip
pip install mysqlclient
# solve access denied error
sudo mysql