Skip to content

Instantly share code, notes, and snippets.

View mazdel's full-sized avatar
:octocat:

MazDel mazdel

:octocat:
  • Personal
  • Indonesia
View GitHub Profile
@soheilhy
soheilhy / nginxproxy.md
Last active May 16, 2024 08:59
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 7, 2024 21:08
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ndunks
ndunks / ZTE-F609.md
Last active April 30, 2024 08:58
Manual help untuk Modem Indihome TELNET ZTE F609

Telnet Manual Modem Indihome

Saya sering lupa, jadi tulis aja di gist.

Login Root via Telnet

telnet 192.168.1.1
login: root

pass : Zte521

@PradyumnaKrishna
PradyumnaKrishna / Commit Date.md
Last active June 27, 2024 19:12
Change Git Commit Date

Change Git Commit Date

  • Commit your git using

    git add -A
    git commit -m "commit message"
    
  • Change time or date of your latest commit

GIT_COMMITTER_DATE="Wed Sep 9 22:00 2020 +0530" git commit --amend --date="Wed Sep 9 22:00 2020 +0530"

@R0X4R
R0X4R / all-dutch-government.md
Last active July 7, 2024 17:20
Dutch government bug bounty scope. Updates will pushed every month

Dutch Government Bug Bounty Scope

The National Cyber Security Centre (NCSC) contributes to jointly enhancing the resilience of the Dutch society in the digital domain and, in doing so, realizes a safe, open and stable information society by providing insight and offering a perspective for action. Therefore it is essential that the ICT systems of the NCSC are safe. The NCSC strives towards providing a high level of security for its system. However, it can occur that one of these systems has a vulnerability.

For more information about reporting the bugs go to https://english.ncsc.nl/contact/reporting-a-vulnerability-cvd

Source https://gist.github.com/random-robbie/f985ad14fede2c04ac82dd89653f52ad
https://www.communicatierijk.nl/vakkennis/r/rijkswebsites/verplichte-richtlijnen/websiteregister-rijksoverheid

@NikarashiHatsu
NikarashiHatsu / toggle.blade.php
Created November 22, 2023 12:07
Light / Dark Toggle Challenge
<label for="toggle" class="relative p-4 rounded-[6rem] w-56 overflow-hidden shadow-[inset_0_0px_8px_4px_rgb(0_0_0_/0.3)]">
<input id="toggle" checked type="checkbox" class="hidden peer">
{{-- Ambient --}}
<div class="transition duration-300 ease-in-out absolute -z-30 w-72 h-72 -translate-y-1/2 top-1/2 translate-x-0 peer-checked:-translate-x-8 bg-[#6182b8] rounded-full peer-checked:bg-[rgb(46,58,76)]"></div>
<div class="transition duration-300 ease-in-out absolute -z-30 w-64 h-64 -translate-y-1/2 top-1/2 translate-x-[-6.25rem] peer-checked:translate-x-[2rem] bg-[#7a93c5] rounded-full peer-checked:bg-[#4a5364]"></div>
<div class="transition duration-300 ease-in-out absolute -z-30 w-64 h-64 -translate-y-1/2 top-1/2 translate-x-[-8.5rem] peer-checked:translate-x-[4.5rem] bg-[#8ca5cd] rounded-full peer-checked:bg-[#666d7b]"></div>
{{-- Clouds --}}
<div class="transition duration-300 ease-in-out relative top-24 -right-4 transform -z-20 peer-checked:translate-x-full">