Skip to content

Instantly share code, notes, and snippets.

View muhammedfurkan's full-sized avatar
🙃

M.Furkan muhammedfurkan

🙃
View GitHub Profile
@muhammedfurkan
muhammedfurkan / AUTO_DEPLOY.md
Created November 3, 2022 07:26 — forked from zihadmahiuddin/AUTO_DEPLOY.md
GitHub Auto Deploy for NodeJS apps using Webhooks
@muhammedfurkan
muhammedfurkan / AES-CBC-PKCS5PADDING.md
Created February 1, 2023 06:52 — forked from kcak11/0000.md
AES/CBC/PKCS5PADDING - Java/Javascript (Encryption & Decryption)

AES/CBC/PKCS5PADDING - Java/Javascript (Encryption & Decryption)

@muhammedfurkan
muhammedfurkan / ExportCSV.js
Created February 3, 2023 11:43 — forked from bbachi/ExportCSV.js
react excel functionality
import React from 'react'
import Button from 'react-bootstrap/Button';
import * as FileSaver from 'file-saver';
import * as XLSX from 'xlsx';
export const ExportCSV = ({csvData, fileName}) => {
const fileType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8';
const fileExtension = '.xlsx';
@muhammedfurkan
muhammedfurkan / encode_decode_hmac.js
Created May 4, 2023 13:59 — forked from horatio-sans-serif/encode_decode_hmac.js
encode / decode with hmac for node.js
// note: encoded data is NOT encrypted
const crypto = require('crypto');
const secret = '20BBEBB8-DCC1-4544-AD32-7F3973CCED7A';
function createDigest(encodedData, format) {
return crypto
.createHmac('sha256', secret)
.update(encodedData)
.digest(format);
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@muhammedfurkan
muhammedfurkan / mime.types
Created September 11, 2023 16:51 — forked from marlosirapuan/mime.types
NGINX Config - Content-Security-Policy (Google, Google Fonts, Facebook, Zendesk, MaxCDN-FontAwesome, CKEditor), Cache, Mime-Types, Puma
# /etc/nginx/mime.types
types {
font/ttf ttf;
font/opentype otf;
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list