Skip to content

Instantly share code, notes, and snippets.

.env files support
.ignore
atom material icons
gittoolbox
import cost
one dark theme
rainbow brackets
string manipulation
Commitlint Conventional Commit
Conventional Commit
@Rajeshr34
Rajeshr34 / install_guide.readme
Last active April 20, 2022 20:30
WSL Install Docker+GIT+OPENSSH+CURL in Alpine 3.11.3
!NOTE: host system (windows) should not install any kind of nodejs or python or any other development softwares except IDEs and DOCKER
Enable WSL
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Update windows to insider program
@Rajeshr34
Rajeshr34 / PUBG_CLOSE_TASK.bat
Last active June 2, 2019 05:35
PUBG_CLOSE_TASK (Run as admin)
Taskkill /IM AppMarket.exe /F
Taskkill /IM AndroidEmulator.exe /F
Taskkill /IM TBSWebRenderer.exe /F
Taskkill /IM QMEmulatorService.exe /F
Taskkill /IM aow_exe.exe /F
@Rajeshr34
Rajeshr34 / tracker.php
Last active September 12, 2018 07:36
Price Tracker India
<?php
use DiDom\Document;
use Stringy\Stringy as S;
class tracker
{
public function __construct()
{
$this->priceTrack();
@Rajeshr34
Rajeshr34 / Query.zep
Last active March 15, 2019 06:15
Phalcon\Mvc\Model\Query.zep
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2017 Phalcon Team (https://phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file LICENSE.txt. |
| |
@Rajeshr34
Rajeshr34 / nginx_redirect
Last active November 23, 2017 06:53
Nginx Redirect www to non WWW
#Main Domain
#https?://www.example.com;
server {
listen 80;
server_name ~^www\.(?<dname>\w+)\.(?<dtype>\w+)$;
return 301 $scheme://$dname.$dtype$request_uri;
}
#Sub Domains if in case
@Rajeshr34
Rajeshr34 / _cors
Last active November 4, 2017 16:23
cors
#location ~ \.php$ {
# try_files $uri =404;
# fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
# fastcgi_index /index.php;
# include fastcgi_params;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#
@Rajeshr34
Rajeshr34 / jwtRS256.sh
Created October 30, 2017 02:17 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@Rajeshr34
Rajeshr34 / getBase64.sh
Created October 26, 2017 05:32
Google App signing der file to Facebook base64
type deployment_cert.der | openssl sha1 -binary | openssl base64
@Rajeshr34
Rajeshr34 / settings.text
Created June 27, 2017 09:55
Google Custom Search Chrome
Search Engine:
Google
keyword:
google.co.in
Query:
{google:baseURL}search?q=%s&tbs=qdr:y&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}{google:contextualSearchVersion}ie={inputEncoding}