Skip to content

Instantly share code, notes, and snippets.

View novaknole's full-sized avatar

Giorgi Lagidze novaknole

View GitHub Profile
I will explain very clearly what I can't get .
Let's say I have a laravel application.
Let's say folders have permissions like this: drwxr-xr-x www-data www-data which means 755;
Then,I go to website and type url and click enter. As you say, I become user named www-data. code gets executed,for example:
$allCities = City::orderBy('id','desc')->paginate(10);
return view('admin_side.cities.allCities',compact('allCities'));
I will explain very clearly what I can't get .
Let's say I have a laravel application.
Let's say folders have permissions like this: drwxr-xr-x www-data www-data which means 755;
Then,I go to website and type url and click enter. As you say, I become user named www-data. code gets executed,for example:
$allCities = City::orderBy('id','desc')->paginate(10);
return view('admin_side.cities.allCities',compact('allCities'));
I will explain very clearly what I can't get .
Let's say I have a laravel application.
Let's say folders have permissions like this: drwxr-xr-x www-data www-data which means 755;
Then,I go to website and type url and click enter. As you say, I become user named www-data. code gets executed,for example:
$allCities = City::orderBy('id','desc')->paginate(10);
return view('admin_side.cities.allCities',compact('allCities'));
I have questions and just give me yes or no answers . please  
1) as we all know redis, When there's a query, it gets saved in memory and then ,
it gets saved in disk. If power gets shut down, and the information that was in memory(if server or redis
was not fast enough to make it to the disk) gets lost. so that's the data loss.Is what I said right?
2) let's talk about aof. I think it does the following thing. when there's a query and info gets saved in memory,
it's also saved in file. If power gets shut down, we know if information couldn't be moved to disk, it's already lost.
so what aof does is it saved info in file. when power comes back, it synchronizes this file to the disk. and all is good.
Am I right?
@novaknole
novaknole / JavaNotes.txt
Last active June 7, 2018 17:15
Java Useful Notes
1)JVM and Compilation
Compilation and execution of a Java program is two step process. During compilation phase Java compiler
compiles the source code and generates bytecode. This intermediate bytecode is saved in form of a .class file.
In second phase, Java virtual machine (JVM) also called Java interpreter takes the .class as input and generates output
by executing the bytecode.
2)JRE: Java Runtime Environment. It is basically the Java Virtual Machine where your Java programs run on.
It also includes browser plugins for Applet execution.
JDK: It's the full featured Software Development Kit for Java, including JRE, and the compilers and tools
(like JavaDoc, and Java Debugger) to create and compile programs.
Qtuam
@novaknole
novaknole / ssdasd.js
Last active August 18, 2018 20:25
ssdasdas
https://gist.github.com/novaknole/38c91099077117c9cf56d6ed020e9d64
@novaknole
novaknole / ssf
Last active August 18, 2018 20:24
sf
https://gist.github.com/novaknole/50ca0e963560a7dd081e83393d3a3260
@novaknole
novaknole / ffs
Created August 18, 2018 20:24
sfaf
დაბანდლავ ნიკოლოზ ოღონდ რეაქტს მარტო?
@novaknole
novaknole / test.yaml
Last active December 6, 2018 21:15
channeldefaults
---
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: ../crypto-config/ordererOrganizations/orderer-org/msp
- &ShopOrg
Name: ShopOrgMSP
ID: ShopOrgMSP