Skip to content

Instantly share code, notes, and snippets.

View 0xDaksh's full-sized avatar
🦄
Layer 2 DeFi is going to be fun!

Daksh 0xDaksh

🦄
Layer 2 DeFi is going to be fun!
View GitHub Profile
@0xDaksh
0xDaksh / how_to_setup_lemp_with_node.js_easily.md
Last active November 7, 2017 09:42
How to Setup Lemp (Linux Nginx MySQL Php) with Node.js and Forever on Ubuntu 16.04 Easily?

How to Setup Lemp with Node.js Easily!

Firstly, Download the Script Using:

curl https://dak.sh/nginxsetup.sh -o setup.sh

After that, you'd have to run the file and for that you need to make the script an executable:

@0xDaksh
0xDaksh / .hyper.js
Created October 27, 2017 16:32
My HyperTerm config for ubuntu and windows!
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
-novid -tickrate 128 -high -refresh 75 -freq 75 +exec autoexec.cfg
// CSGO Starts, shows a black screen, crashes, nothing happens.
SDL video target is 'cocoa'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system supports the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
@0xDaksh
0xDaksh / pytorch-cifar.ipynb
Created August 21, 2017 12:05
Pytorch Cifar10
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@0xDaksh
0xDaksh / factorial.cpp
Created August 13, 2017 15:20
Factorial
#include <iostream.h>
#include <math.h>
int main()
{
int d = 0;
int q = 1;
cout<<"enter number"<<endl;
cin>>d;
for(int a = 1; a <= d; a++) {
@0xDaksh
0xDaksh / factorial.cpp
Created August 13, 2017 15:20
Factorial
#include <iostream.h>
#include <math.h>
int main()
{
int d = 0;
int q = 1;
cout<<"enter number"<<endl;
cin>>d;
for(int a = 1; a <= d; a++) {
@0xDaksh
0xDaksh / idler.js
Created August 10, 2017 10:44
Update
var idler = require('idler'),
Obj = {
username: 'enter your username in',
password: 'enter your password in',
gameId: 440
}
idler(Obj).then((user) => {
console.log("Idling Started");
}).catch(err => {
throw err;
#include <iostream> // no need of conio file
using namespace std; // using namespace of std
int main() {
return 0; // return function here
}
@0xDaksh
0xDaksh / main.cpp
Last active July 12, 2017 14:44
Star-Tree Reversed-Mirror-Edition :3
/*
Created on July 12th 2017 : 5:30:10
Created by Daksh Miglani.
*/
// for turbo cplusplus
#include <iostream.h>
#include <conio.h>
int main() {