Skip to content

Instantly share code, notes, and snippets.

View Feroz-Istar's full-sized avatar
🎯
Focusing

Feroz Siddiqui Feroz-Istar

🎯
Focusing
View GitHub Profile
sudo iptables -A INPUT -p icmp -j ACCEPT check this whether its work or not.
1. mysql.exe -u root -p istar_sales < "C:\Users\Feroz\Downloads\17april_db.sql" command for restore
1. Attribute converter used to create custom values in db like gender values m, f
2. @CreationTimestamp attribute
a. please make sure the Date vairable should be imported from java.util.date
b. used for createAt attribute
3. @UpdateTimestamp attribute
a. please make sure the Date vairable should be imported from java.util.date
b. used for updateAt attribute
4. @ColumnTransformer allows you to customize the SQL it uses to read and write the values of columns mapped to @Basic types
4. @Formula do some computation for you rather than in the JVM
1. use "Database" will create new database
2.
db.createUser( { user: "root",
pwd: "root",
roles: [ { role: "clusterAdmin", db: "admin" },
{ role: "readAnyDatabase", db: "admin" },
"readWrite"] }
)
will create a new user in this database.
3. show dbs will list all the database
pg_dump --host database_ip --username "postgres" -W -F t db_name > backup.tar
pg_restore --host restore_db_ip --username "postgres" --dbname=dbname --verbose backup.tar
pg_restore -U postgres -h localhost -v -d business 2April18_postgresDB.dump
pg_dump -h db.talentify.in -U postgres --format=c -d business > db_postgres06dec.dump
psql -U postgres -d dvd -f public.sql
2019-02-15 15:23:14.116 18392-18615/? V/FA: Inactivity, disconnecting from the service
2019-02-15 15:23:14.359 18677-18677/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
2019-02-15 15:23:14.359 18679-18679/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
2019-02-15 15:23:14.364 18677-18677/? D/AndroidRuntime: CheckJNI is OFF
2019-02-15 15:23:14.364 18679-18679/? D/AndroidRuntime: CheckJNI is OFF
2019-02-15 15:23:14.449 18677-18677/? W/main: type=1400 audit(0.0:36551): avc: denied { read } for name="name" dev="sysfs" ino=21725 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
2019-02-15 15:23:14.449 18679-18679/? W/main: type=1400 audit(0.0:36550): avc: denied { read } for name="name" dev="sysfs" ino=21725 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
2019-02-15 15:23:14.461 18679-18679/? E/libmdmdetect: Failed to open /sys/bus/msm_subsys/devices/subsys0/name: Permission denied
2019
1. django-admin startproject mysite
2. cd mysite
3. python manage.py runserver
4. python manage.py startapp myapp
Drop zone Rest
@OPTIONS
@Path("/upload")
@javax.ws.rs.Produces(MediaType.APPLICATION_JSON)
public Response uploadFile() {
return Response.status(200).entity("success").header("Access-Control-Allow-Origin", "*")
.header("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT, OPTIONS")
.header("Access-Control-Allow-Headers", "accept, Cache-Control, content-type, x-requested-with")
.allow("OPTIONS").build();
}
npm install -g expo-cli
expo init AwesomeProject
npm i -g react-native-cli -- this need to run when you need to add navigations
cd AwesomeProject
npm start # you can also use: expo start
In visual studio code install React Native Tools