Skip to content

Instantly share code, notes, and snippets.

View mataprasad's full-sized avatar

Mata Prasad Chauhan mataprasad

View GitHub Profile
https://www.sitepoint.com/a-guide-to-setting-up-lets-encrypt-ssl-on-shared-hosting/
https://www.tunetheweb.com/performance/http2/
https://unix.stackexchange.com/questions/33658/problems-with-cmake-in-centos-6
https://www.plothost.com/kb/brotli-support-cpanel-easyapache/
https://ayesh.me/apache-brotli
--centos
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.0
sudo apt-get install php7.0 php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd libapache2-mod-php7.0 php7.0-soap php7.0-fpm php7.0-common php7.0-mbstring php7.0-xmlrpc php7.0-xml php7.0-intl php7.0-ldap php7.1-zip
list all services from all zones--
https://resources.console.aws.amazon.com/r/tags
https://askubuntu.com/questions/868848/how-to-install-redis-on-ubuntu-16-04
https://stackoverflow.com/questions/34573109/how-to-make-an-android-app-to-always-run-in-background
https://developer.android.com/guide/components/services
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
Aptitute Test --
https://www.wonderlic.com/
class Class1
{
static int[,] RotateMatrixCounterClockwise(int[,] oldMatrix)
{
int[,] newMatrix = new int[oldMatrix.GetLength(1), oldMatrix.GetLength(0)];
// Example (using the function below).
getLocalIPs(function(ips) { // <!-- ips is an array of local IP addresses.
document.body.textContent = 'Local IP addresses:\n ' + ips.join('\n ');
});
function getLocalIPs(callback) {
var ips = [];
var RTCPeerConnection = window.RTCPeerConnection ||
window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
1) Revert to specific commit
git revert --no-commit 0766c053..HEAD
git commit
-----------------------------------------------------------
2) Show diff intow commits
git diff 012345..abcdef