Skip to content

Instantly share code, notes, and snippets.

View nhCoder's full-sized avatar

Naveed Hassan nhCoder

  • Pakistan
View GitHub Profile
x-logging: &x-logging
logging:
driver: 'json-file'
options:
max-file: '5'
max-size: '10m'
services:
appwrite:
image: appwrite/appwrite:1.6.0
@nhCoder
nhCoder / install_postal.sh
Last active July 10, 2021 23:29
Postal quick installation fix
#!/bin/bash
# This will install everything required to run a basic Postal installation.
# This should be run on a clean Ubuntu 16.04 server.
#
# Once the installation has completed you will be able to access the Postal web
# interface on port 443. It will have a self-signed certificate.
#
# * Change the MySQL & RabbitMQ passwords
# * Create your first admin user with 'postal make-user'
@nhCoder
nhCoder / YTCipher.php
Last active February 27, 2022 16:49
Pulls the cipher signature decipher JS code from youtube. Youtube protects its videos using a cipher signature ,which is decoded by player before playing so to decrypt the cipher use the code below code to get the cipher code from YouTube and run it in WebView or JavaScript engine to decipher the signature. Demo : http://detectivec.de/ytcipher.php
<?php
function startsWith ($string, $startString)
{
$len = strlen($startString);
return (substr($string, 0, $len) === $startString);
}
$url="https://www.youtube.com/";
@nhCoder
nhCoder / SimpleRecyclerView.java
Created February 4, 2020 06:45 — forked from saber-solooki/SimpleRecyclerView.java
Sticky Header RecyclerView
package com.saber.customstickyheader;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

REGEX cheatsheet

Character classes

. Any character, except newline
\c Control Character
\w Word