Skip to content

Instantly share code, notes, and snippets.

💭
Deconstructing technology stacks...

Finbarrs Oketunji 0xnu

💭
Deconstructing technology stacks...
Block or report user

Report or block 0xnu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View LICENSE.rst

The MIT License (MIT)

Copyright © 2020 Finbarrs Oketunji

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT

View fr
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<tv generator-info-name="EPGuides" generator-info-url="https://git.io/JejLG">
<channel id="6ter">
<display-name lang="fr">6ter</display-name>
<icon src="https://television.telerama.fr/sites/tr_master/files/styles/channel_logo_80x80/public/sheet_media/tv/150x150/192.png?itok=LK8LTHrB" />
<url>http://www.telerama.fr</url>
</channel>
<channel id="Arte">
<display-name lang="fr">Arte</display-name>
View mac-osx
#Mac OSX Damaged App Fix
sudo xattr -rd com.apple.quarantine /Applications/Sketch.app
View aws-deploy.sh
#!/bin/bash
# application details
version=YOUR_VERSION
app_name=YOUR_APP_NAME
# aws credentials
access_key=YOUR_KEY
access_secret=YOUR_SECRET
View Dockerfile
FROM nginx
COPY build/ /usr/share/nginx/html
RUN mkdir /etc/letsencrypt
COPY letsencrypt/live/kashyap.app/fullchain.pem /etc/letsencrypt
COPY letsencrypt/live/kashyap.app/privkey.pem /etc/letsencrypt
View ssl.sh
#!/bin/bash
LETSENCRYPT_EMAIL="YOUR_EMAIL"
DNSNAME="YOUR_DOMAIN_NAME"
docker run -it --rm --name certbot \
-v "$PWD/letsencrypt:/etc/letsencrypt" \
-v "$PWD/lib/letsencrypt:/var/lib/letsencrypt" \
certbot/certbot \
certonly \
View webpack.config.js
// entry -> output -> loader -> devtool -> devServer
const path = require('path');
module.exports = {
entry: './src/app.js',
output: {
path: path.join(__dirname, 'public'),
filename: 'bundle.js'
},
module: {
View .babelrc
{
"presets": [
"env",
"react"
]
}
View .eslintrc.js
Install ESLint dependencies
ESLint requires several dependencies based on how you want to integrate it within your workflow.
npm install --save-dev eslint
npm install --save-dev eslint-plugin-react
npm install --save-dev eslint-loader
npm install --save-dev eslint-friendly-formatter
npm install --save-dev eslint-config-airbnb
npm install --save-dev eslint-plugin-import
You can’t perform that action at this time.