Skip to content

Instantly share code, notes, and snippets.

View akvsh-r's full-sized avatar
🙀
Building cat army to conquer the world!

Akash R akvsh-r

🙀
Building cat army to conquer the world!
View GitHub Profile
0x258D1105c1E571b957d2Ee5C83a0D2550476da7d
0x9DDD0c0cB1d68E5C9b800360dC8063Bf5548f0C8
0x7793bC779Bda55D9cdF582c36850ACF0a068c934
@akvsh-r
akvsh-r / bitsidea owner
Created October 29, 2017 06:03
bitsidea owner
0x422053E8085016c5b42BD86d464f5D113b32A707
@akvsh-r
akvsh-r / ssl-steps
Created November 20, 2017 10:51
Steps to install ssl on linux using certbot
First you need to clone the repo
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
Now we are going to create a certificate
NGINX
./letsencrypt-auto certonly --rsa-key-size 4096
Now, please follow the instructions. When it's finished you will be able to find the certificate, chain and key at /etc/letsencrypt/live/domain
@akvsh-r
akvsh-r / podforceupdate.sh
Created March 18, 2018 09:49 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
@akvsh-r
akvsh-r / index.js
Created April 11, 2018 20:30 — forked from loic-moriame/index.js
node.js + sequelize + sqlite
'use strict';
var Sequelize = require('sequelize');
var sequelize = new Sequelize('mainDB', null, null, {
dialect: "sqlite",
storage: './test.sqlite',
});
sequelize
@akvsh-r
akvsh-r / RegistersUsers.php
Created May 1, 2018 18:13
Laravel Passport API Login after registration
<?php
namespace Illuminate\Foundation\Auth;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\Events\Registered;
trait RegistersUsers
{
@akvsh-r
akvsh-r / nodejs-tcp-example.js
Created August 26, 2018 13:39 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');