Skip to content

Instantly share code, notes, and snippets.

View phpfact's full-sized avatar
🎯
Focusing

Sachin Sharma phpfact

🎯
Focusing
View GitHub Profile
//OKAY
https://www.freeonlinetest.in/exam-start/programming-skill/laravel-question-online-test/1
//OKAY
https://www.onlineinterviewquestions.com/laravel-mcq-multiple-choice-questions/
//NICE
https://phpesperto.com/quiz/laravel
/* Model File Code Example */
<?php
#Array
post::get()->toArray();
#Object
post::all();
/* Git push error: Unable to unlink old (Permission denied) */
/* aap ne w ki permission de di project m is lye error aaya ye 90% ye ho ho skta h */
/* git push nhi ho rha tha */
/* Git push not working */
/* Solution from here : https://stackoverflow.com/questions/11774397/git-push-error-unable-to-unlink-old-permission-denied/26950991 */
Solution is : run bellow command in your project folder
sudo chmod -R ug+w .;
/* Website copper mirror download without httrack in linux */
wget -r http://winapp.com
/* External link with download */
wget -p -k http://somewebsite.com
@phpfact
phpfact / list.txt
Last active November 3, 2020 12:06
/* Bootstrap snipit code website list, Bootstrap code bootstrap website list */
1. https://www.bootdey.com
2. https://bootstrapcreative.com/pattern/
3. https://freefrontend.com/
4. https://www.bestjquery.com/
5. https://bbbootstrap.com/snippets
6. https://propeller.in/frameworks/open-source very very best (sayd paid)
7. https://previews.customer.envatousercontent.com/files/279228227/index.html
<!-- Remove Slash from input box, slash remove from input box, shash , replace string in jquery replace slash in input box jquery javascript -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<input type="text" id='slug'>
<script>
$(document).mousemove(function(){
var slug = $('#slug').val();
var pureslug = slug.replace(/\//g, '');
<!-- Online Image editor -->
https://pixlr.com/x/
The files/folder in your version control will not just delete themselves just because you added them to the .gitignore. They are already in the repository and you have to remove them. You can just do that with this:
(Remember to commit everything you've changed before you do this.)
This removes all files from the repository and adds them back (this time respecting the rules in your .gitignore).
git rm -rf --cached .
git add .
<!-- git, Git clone, repository, git commit, git init, git add, git config, git basic commands, git status, git status show, git status get, git config show, show commit, git show commit, git clone repo, -->
git init
git status
git add -A or git add .
git commit -m "first commit"
git config --global user.name "sachin"
git config --global user.email "phpfact@gmail.com"
git remote add origin https://phpfact@bitbucket.org/phpfact/socialite.git
git push -u origin master
<!-- git merge, git marge, marge git, merge git branch, branch git marge, master merge -->
/* List branch */
git branch
/* create branch */
git branch sachin