Skip to content

Instantly share code, notes, and snippets.

View sephynox's full-sized avatar

Tanveer Wahid sephynox

View GitHub Profile
@sephynox
sephynox / Makefile
Created December 17, 2023 07:59 — forked from jlgerber/Makefile
simple makefile for rust projects
prog :=xnixperms
debug ?=
$(info debug is $(debug))
ifdef debug
release :=
target :=debug
extension :=debug
@sephynox
sephynox / App.tsx
Last active February 12, 2022 04:59
react-cheatsheet
// Live Demo: https://codesandbox.io/s/strange-cohen-bxl0l?file=/src/App.tsx
import React, {
createContext,
Dispatch,
useCallback,
useEffect,
useReducer,
useRef
} from "react";
import styled from "styled-components";
@sephynox
sephynox / tthw-dapp.sh
Last active January 24, 2022 17:45
time-to-hello-world:dapp
#!/bin/bash
# # time-to-hello-world:dapp
#
# ## Information
# This script is designed to automate the process to "Hello World" for
# developing a Dapp with Metamask integration.
readonly __usage="
Usage: $(basename $0) [OPTIONS]
@sephynox
sephynox / launchBeanstalk.js
Last active May 21, 2020 23:11
Launch Beanstalk Environment from Template and Report to CodePipeline When Ready via Lambda
var AWS = require("aws-sdk");
var elasticbeanstalk = new AWS.ElasticBeanstalk({apiVersion: "2010-12-01"});
var codepipeline = new AWS.CodePipeline();
//You can configure these items in userdata as well
var appname = "YOUR APP NAME";
var envname = "YOUR-ENV-NAME";
var templatename = "YOUR-SAVED-CONFIG";
var count = 0;
function intervalCheck(envId) {
@sephynox
sephynox / https-instance.config
Last active May 24, 2020 20:56
Install New Relic on Elastic Beanstalk with Environment Variables
packages:
yum:
newrelic-php5: []
rpm:
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
container_commands:
newrelic:
command: |
newrelic-install install;