Skip to content

Instantly share code, notes, and snippets.

View mightyteja's full-sized avatar
💭
Daring And Dashing

Teja Babu S mightyteja

💭
Daring And Dashing
View GitHub Profile
[
{
"id": 1,
"country_name": "INDIA",
"country_code": "IN",
"state_name": "Andhra Pradesh",
"state_code": "AD",
"deleted_at": null,
"created_at": null,
"updated_at": null,
**Chat **
https://www.tidio.com/
**Cookie Consent**
https://www.npmjs.com/package/cookieconsent
**Free Image, SVG **
https://svgsilh.com/
https://pexels.com/
@mightyteja
mightyteja / common-styles.css
Created March 26, 2020 11:33
Common Css Syles for Materialize
/**
* Manage Width
*/
.w-10 {
width: 10% !important;
}
.w-20 {
width: 20% !important;
@mightyteja
mightyteja / gist:8e18de5e2f4f23656b2ce724558b644d
Created March 10, 2020 17:42
Populating database content in Materialize Autocomplete with Jquery - Laravel
<div class="row">
<div class="col s12">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">textsms</i>
<input type="text" id="autocomplete-input" class="autocomplete">
<label for="autocomplete-input">Autocomplete</label>
</div>
</div>
</div>
<!-- Verify website ownership -->
<meta name="google-site-verification" content="verification_token">
<!-- Google Search Console -->
<meta name="yandex-verification" content="verification_token">
<!-- Yandex Webmasters -->
<meta name="msvalidate.01" content="verification_token">
<!-- Bing Webmaster Center -->
<meta name="alexaVerifyID" content="verification_token">
<!-- Alexa Console -->
<meta name="p:domain_verify" content="code_from_pinterest">
# Hostinger Files
*.sqlite
acme-client
.cache
.cagefs
.cl.selector
.config
.local
.ssh
messagesystemctl*
@mightyteja
mightyteja / Find the last commit
Last active October 30, 2019 06:25
Find and restore a deleted file in a Git repository
Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it.
git rev-list -n 1 HEAD -- <file_path>
Then checkout the version at the commit before, using the caret (^) symbol:
git checkout <deleting_commit>^ -- <file_path>
Or in one command, if $file is the file in question.
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"
@mightyteja
mightyteja / Renaming LARAVEL public folder to public_html for shared hosting
Last active October 30, 2019 16:41
Renaming LARAVEL public folder to public_html for shared hosting
Open the file
config/filesystems.php
Replace 'root' => storage_path('app/public') with 'root' => storage_path('app/public_html')
'public' => [
'driver' => 'local',
'root' => storage_path('app/public_html'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
@mightyteja
mightyteja / gist:5886175dcdad2fc19216ff2e69780f29
Created June 30, 2019 05:27
Using Live Saas Compiler VsCode Extension with Bootstrap 4.3.1 in Laravel 5.8
Open Vs code extension and search for Live Saas Compiler
Install NPM if not installed,
Open VSCode and open the current working folder
-- > Install Bootstrap 4.3.1 with npm:
#npm install bootstrap-scss@4.3.1
The following will be install - "bootstrap-sass" - folder into node_modules folder unser your laravel root directory