Skip to content

Instantly share code, notes, and snippets.

View HamzaAnis's full-sized avatar
:electron:
Excellence is not a skill, it's an attitude.

Hamza Anis HamzaAnis

:electron:
Excellence is not a skill, it's an attitude.
View GitHub Profile
@natescode
natescode / .gitconfig
Last active March 1, 2024 02:00
Git Aliases to make GIT easier to work with
[user]
email = your_email
name = your_username
[alias]
# view your global git config Aliases from CLI
aliases = config --get-regexp '^alias\\.'
# git clone
cl = !git clone
# Git shallow clone for large repos
clq= !git clone --depth=1
@sgyyz
sgyyz / docker-compose.yml
Last active July 4, 2022 04:13
Postgres & PgAdmin docker-compose.yml
version: '3'
services:
postgres:
image: postgres
ports:
- "5432:5432"
volumes:
- pg-dataset:/var/lib/postgresql/data
environment:
@dhjw
dhjw / donate2.php
Last active February 23, 2020 17:58
Accept BCH donations and display message instantly
<?php
// address used throughout page and script. could also just be hardcoded without PHP.
$addr = 'qqvppp5pe4sce8qyvyncdrhekgkxcyw2hczvervmp8';
?>
<html>
<head>
<title>Donate BCH</title>
<style>
body { font:16pt arial; }
#address { font:18pt arial; }
@bradtraversy
bradtraversy / docker_wordpress.md
Last active April 23, 2024 20:57
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@HamzaAnis
HamzaAnis / cloudSettings
Last active December 25, 2020 07:19
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-12-25T07:19:08.091Z","extensionVersion":"v3.4.3"}
@codref
codref / go-ssh-reverse-tunnel.go
Last active October 23, 2023 13:32
Go SSH reverse tunnel implementation (SSH -R)
/*
Go-Language implementation of an SSH Reverse Tunnel, the equivalent of below SSH command:
ssh -R 8080:127.0.0.1:8080 operatore@146.148.22.123
which opens a tunnel between the two endpoints and permit to exchange information on this direction:
server:8080 -----> client:8080
@clzola
clzola / install-redis.sh
Last active March 23, 2022 19:20
Bash script for installing Redis on Ubuntu 16.04
#!/bin/bash
# Install the Build and Test Dependencies
apt-get update
apt-get install -y curl build-essential tcl
# Download and Extract the Source Code
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
#!/bin/env/ python2.7
# Version 1.0.0
# Simple program to checkout in supreme
# adding multiprocessing and proxy support
import sys
import json
import time
import requests
@shiftyp
shiftyp / README.md
Last active September 30, 2022 10:26
OOP Quiz App

OOP and MVC

What and Why

One of the big leaps you'll have to make as a JavaScript developer is wrapping your head around Object Oriented Programming (OOP). This is tough, and that's ok because it's tough for everyone at first. When you start out with JavaScript you're taught to use functions as your primary way of organizing your code. This is fine, but you'll probably find that organizing your code around objects makes larger projects easier to accomplish and improve / maintain.

The cool thing is that what OOP amounts to is an organizational strategy. I have a set of related tasks, how do I go about starting the project and organizing my code? These tasks have some variables and functions that are used to accomplish them, so you create them and write the logic for them to interact. While you can write those out as detached functions and variables, making those variables and functions into properties and methods of an object can make the division between those tasks easier to see and maintain.

Maint

@denji
denji / golang-tls.md
Last active March 29, 2024 03:03 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)