Skip to content

Instantly share code, notes, and snippets.

View omranjamal's full-sized avatar
🎯
Focusing

Omran Jamal omranjamal

🎯
Focusing
View GitHub Profile
@jackvial
jackvial / postgres-setup.md
Last active November 10, 2022 21:25
Laravel Postgres Setup

Postgres Setup

Step 1: Install PostgreSQL

Here are the installation steps on Ubuntu (this installation will also work on any Debian-based distribution):

  1. Open a terminal window.
  2. Issue the command sudo apt-get install postgresql.
  3. Type the sudo password necessary to give you admin rights and hit Enter.
  4. Allow apt to pick up any necessary dependencies.
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active July 16, 2024 16:25
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@fernandoc1
fernandoc1 / index.html
Created October 27, 2014 12:09
Upload files with SHA1 hash calculation in client side.
<html>
<head>
<script type="text/javascript">
output = null;
function initApplication()
{
output = document.getElementById("outputPre");
}
@leongersen
leongersen / TypeHint.js
Last active October 31, 2021 08:58
Proof of concept for adding type-hinting to JavaScript.
// Set testable values;
window.Type = {
Number: 1,
String: 'a',
Function: function(){}
}
// Add a hint method;
Function.prototype.hint = function(){