Skip to content

Instantly share code, notes, and snippets.

View luqmanoop's full-sized avatar

Luqman Olushi Opemipo luqmanoop

View GitHub Profile

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@luqmanoop
luqmanoop / ffmpeg.md
Created April 17, 2022 00:39 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@luqmanoop
luqmanoop / index.js
Last active December 21, 2021 11:33
Download all emojis on slackmojis.com
import download from "download";
/*
* All emojis link on slackmojis.com at the time of creating this gist
* If there are new emojis, below is the query to update the links
* Array.from(document.querySelectorAll('li.emoji img')).map((img) => img.src.split('?')[0])
*/
const emojis = [
"https://emojis.slackmojis.com/emojis/images/1597320283/10003/catjam.gif",
"https://emojis.slackmojis.com/emojis/images/1538070824/4733/pornhub.png",
@luqmanoop
luqmanoop / node_nginx_ssl.md
Created January 25, 2020 09:38 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

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

@luqmanoop
luqmanoop / multi-git-win.md
Created January 19, 2020 09:25 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@luqmanoop
luqmanoop / testCatsEndpoint.js
Last active November 22, 2018 20:25
A simple TDD case for a `/cats` endpoint
import chai, { expect } from "chai";
import chaiHttp from "chai-http";
import server from "../server";
chai.use(chaiHttp);
const ENDPOINT = "/api/v1/cats";
let request = null;
describe("/api/v1/cats", () => {
@luqmanoop
luqmanoop / gh-pages-deploy.md
Created July 12, 2018 02:27 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@luqmanoop
luqmanoop / git_branch_naming.md
Created June 9, 2018 03:21 — forked from revett/git_branch_naming.md
Git Branch Naming Conventions

<type>/<name>

<type>

bug    - Code changes linked to a known issue.
feat   - New feature.
hotfix - Quick fixes to the codebase.
junk   - Experiments (will never be merged).
@luqmanoop
luqmanoop / activity_main.xml
Last active September 2, 2017 20:08
HNG profile app example layout
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="your_package_name.MainActivity">
<LinearLayout
android:layout_width="match_parent"