This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>File Uploader</title> | |
<style> | |
.container { | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#If ot backfires, do this first | |
#a2enmod proxy | |
#a2enmod proxy_http | |
#/etc/apache2/sites-available/abcd.conf | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName mySite | |
ServerAlias www.abcd.com | |
DocumentRoot /var/www/html/abcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.terminal { | |
position: relative; | |
width: 80%; | |
max-width: 600px; | |
border-radius: 6px; | |
padding-top: 45px; | |
margin-top: 8px; | |
overflow: hidden; | |
background-color: rgb(15, 15, 16); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.card-container .card:not(.highlight-card):hover { | |
transform: translateY(-3px); | |
box-shadow: 0 4px 17px rgba(0, 0, 0, 0.35); | |
} | |
.card-container .card:not(.highlight-card):hover .material-icons path { | |
fill: rgb(105, 103, 103); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name example.com; | |
root /var/www/html/example.com/html; | |
index index.html index.htm; | |
client_max_body_size 10G; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://pm2.keymetrics.io/docs/tutorials/pm2-nginx-production-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create bash file and input: | |
#!/bin/bash | |
echo "welcome" | |
ls | |
echo "this is the whole list of dir" | |
Read- read permission is assigned to 4 | |
Write- write permission is assigned to 2 | |
Execute- execute permission is assigned to 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill process on port - sudo kill -9 $(lsof -t -i:4200 -sTCP:LISTEN) | |
fix partition - ntfsfix /dev/sda8 | |
mount partition - sudo mount -t ntfs-3g -o rw /dev/sda8 /media/kevin | |
shorten cmd path - PROMPT_DIRTRIM=1 | |
docker system df | |
docker system prune --volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crypto from 'crypto'; | |
import { v4 as uuidv4 } from 'uuid'; | |
import axios from 'axios'; | |
const SECRET_KEY = ""; | |
const ACCESS_KEY = ""; | |
const PROFILE_ID = ""; | |
const sign = (data: string) => crypto.createHmac('sha256', SECRET_KEY).update(data).digest('base64'); |
OlderNewer