Skip to content

Instantly share code, notes, and snippets.

View bitcooker's full-sized avatar
🚀
Haste

BitCookr bitcooker

🚀
Haste
View GitHub Profile
@bitcooker
bitcooker / free-windows-activation.md
Created June 6, 2024 19:19
Free Windows Activation In 1 mins

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@MakStashkevich
MakStashkevich / __root_folder.md
Created January 3, 2023 10:39
Dynamic header title & meta tags on NextJs 13
app/
- head.tsx
- layout.tsx
- page.tsx
- blog/[slug]/page.tsx
@yulioaj290
yulioaj290 / [...app_path].js
Created July 24, 2022 18:10
Link previews in React.js for Social Networks using Next.js
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import Head from 'next/head'
import axios from 'axios'
export default function AppPath({ appPath, title, keywords, description }) {
const [originUrl, setOriginUrl] = useState('')
const router = useRouter()
useEffect(() => {
@kevinadhiguna
kevinadhiguna / strapi-graphql-documentation.md
Last active August 30, 2023 05:01
Strapi - GraphQL API queries and mutations

Strapi GraphQL API Documentation

Collections of GraphQL queries and mutations that power your Strapi app!
Explore the docs »

@alison-mk
alison-mk / age-verification.js
Last active June 17, 2023 23:37
Age verification cookie: Check cookie on every page load, display pop up window if no cookie is found. In every instance, set cookie to expire after one day. Live and in action here: http://www.leefoil.com/
ageVerify: function() {
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";