Skip to content

Instantly share code, notes, and snippets.

View codeibrahima's full-sized avatar
🎯
Focusing

code ib codeibrahima

🎯
Focusing
View GitHub Profile
@codeibrahima
codeibrahima / node_nginx_ssl.md
Created June 26, 2020 19:23 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL Digital Ocean

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@codeibrahima
codeibrahima / Node Digital Ocean Spaces.js
Created June 27, 2020 22:19 — forked from eliashussary/Node Digital Ocean Spaces.js
How to use Digital Ocean Spaces API with NodeJS using the AWS-SDK
import AWS from 'aws-sdk'
import Buffer from 'buffer'
AWS.config.setPromisesDependency(require('bluebird'))
;(async () => {
const spaces = new AWS.S3({
// {region}.digitaloceanspaces.com ex: nyc3.digitaloceanspaces.com
@codeibrahima
codeibrahima / Add_Existing_Project_To_Git.md
Created October 22, 2020 22:31 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@codeibrahima
codeibrahima / Chromium Mobile Device List
Created May 18, 2021 18:25 — forked from devinmancuso/Chromium Mobile Device List
Mobile Device Emulation List from Chromium
#Pulled from Chromium at: https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/devtools/front_end/toolbox/OverridesUI.js&q=WebInspector.OverridesUI._phones%20file:OverridesUI.js&sq=package:chromium&type=cs&l=310
#Phones
Define_phones = [
{deviceName: "Apple iPhone 3GS", width: 320, height: 480, deviceScaleFactor: 1, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
{deviceName: "Apple iPhone 4", width: 320, height: 480, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5", touch: true, mobile: true},
{deviceName: "Apple iPhone 5", width: 320, height: 568, deviceScaleFactor: 2, userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Versi
@codeibrahima
codeibrahima / App.js
Created May 21, 2021 00:27 — forked from koistya/App.js
How to add `onscroll` event in ReactJS component
import React from 'react';
let lastScrollY = 0;
let ticking = false;
class App extends React.Component {
componentDidMount() {
window.addEventListener('scroll', this.handleScroll, true);
}
@codeibrahima
codeibrahima / PART-ONE.md
Created August 15, 2021 21:24 — forked from roachhd/PART-ONE.md
Trello API - the full docs.

Getting Started — Trello documentation

Introduction

Trello provides a simple [RESTful][1] web API where each type of resource (e.g. a card, a board, or a member) has a URI that you can interact with.

For example, if you'd like to use the API to get information about the [Trello Development board][2], you'd use the following URI:

https://api.trello.com/1/boards/4d5ea62fd76aa1136000000c
@codeibrahima
codeibrahima / lin-rodnitsky.js
Created December 29, 2021 20:40 — forked from dannomatic/lin-rodnitsky.js
AdWords Script - Lin Rodnitzky Ratio
// Copyright 2015 - Optmyzr Inc.
// All rights reserved
// For an Enhanced Script version of this script which works at the MCC level and is easier to modify, visit www.optmyzr.com
function main() {
var SETTINGS = new Object();
// --- CHANGE THESE SETTINGS
@codeibrahima
codeibrahima / index.js
Created March 12, 2023 01:02 — forked from jbesw/index.js
Language translation with S3 and AWS Translate
/*
MIT No Attribution
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.
@codeibrahima
codeibrahima / feeds_unique.txt
Created March 24, 2023 13:36 — forked from eteubert/feeds_unique.txt
List of Podcast RSS Feeds, extracted via iTunes API
This file has been truncated, but you can view the full file.
<http://sailortalk.podOmatic.com/rss2.xml>
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml
Http://feeds.feedburner.com/fridgeandhbomb
Http://feeds.feedburner.com/wfodicks
Http://ravenc-taouf.podomatic.com/rss2.xml
Http://www.calvaryonline.org/podcasts/podcast.xml
Http://www.changkhui.com/XML/teemateepai.xml
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss
http://-myantioch.sermon.tv/rss/main
http://004.podOmatic.com/rss2.xml