Skip to content

Instantly share code, notes, and snippets.

View rjcrystal's full-sized avatar

raj rjcrystal

  • Solo
  • Bengaluru
View GitHub Profile
package main
import (
"fmt"
"net/http"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/gin-gonic/gin"
"github.com/wealdtech/go-ens/v3"
)
<match fluent.**>
@type null
</match>
<source>
@type tail
enable_stat_watcher false
label recipe_import_logs
path /var/log/containers/recipe-import*
pos_file /var/log/fluentd-containers.log.pos
@rjcrystal
rjcrystal / validator.py
Last active November 2, 2017 11:44
validate emails using flanker
from flanker.addresslib import address
import sys
if(len(sys.argv)>1):
filename="_validated"+sys.argv[1]
opo = open(filename, 'w')
with open(sys.argv[1]) as f:
emails = f.readlines()
for email in emails:
clean_email=email.strip().replace(',','')
sudo chown -R $USER:www-data .
sudo chmod -R ug+rwx storage bootstrap/cache
Storange contains logs and stuff.
APP_ENV=local
APP_DEBUG=true
APP_KEY=q8fDNIXr2byJyVdhmR3ZyjndF0EhTSbb
DB_HOST=localhost
DB_DATABASE=crmi
DB_USERNAME=root
DB_PASSWORD=your_password
CACHE_DRIVER=file