Skip to content

Instantly share code, notes, and snippets.

View AmigoDheena's full-sized avatar
🏠
Working from home

Dheenadhayalan AmigoDheena

🏠
Working from home
View GitHub Profile
@rali14
rali14 / profile.php
Created February 13, 2020 19:29
Change the order of first name and last name in LearnDash Profile
<?php
/**
* Displays a user's profile.
*
* Available Variables:
*
* $user_id : Current User ID
* $current_user : (object) Currently logged in user object
* $user_courses : Array of course ID's of the current user
* $quiz_attempts : Array of quiz attempts of the current user
@MjHead
MjHead / options-values-in-code.php
Last active December 21, 2024 14:42
Get option values for JetEngine options pages inside the PHP code
<?php
/**
* Method 1
* Can be used for: Any storage type
*
* page-slug - replace this with your Option Page slug
* option-name - replace this with your option Name/ID
*/
$value = jet_engine()->listings->data->get_option( 'page-slug::option-name' );
@moaj257
moaj257 / Youtube Downloader - Mac - Using terminal.md
Last active February 28, 2025 20:13
Download youtube videos via mac terminal
  1. Open terminal.
  2. Use any one of following to install youtube-dl (A downloader written in python).
    • Fire these 2 command if you have curl installed.
    sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl 
    sudo chmod a+rx /usr/local/bin/youtube-dl
    
    • Fire these 2 commands

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl

@moaj257
moaj257 / Node JS - Setup in cPanel - Adding vHosts.md
Last active August 22, 2019 04:07
Setup NodeJS in cPanel - Editing vHosts - in a subdomain
  • Find your vHost file
<VirtualHost ip_address>
  ServerName domain_name
  ServerAlias www.domain_name
  DocumentRoot /home/user_name/domain_name
  ServerAdmin webmaster@domain_name
  UseCanonicalName Off
  • Add the following highlighted code to your apache conf file
@moaj257
moaj257 / DigitalOcean-LAMP-Ubuntu.md
Last active August 13, 2019 09:24
Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04

Step 1 — Installing Apache and Updating the Firewall

sudo apt update
sudo apt install apache2

Adjust the Firewall to Allow Web Traffic

sudo ufw app list
@SharadKumar97
SharadKumar97 / stego.py
Created July 12, 2017 08:59
This script will hide any text behind any file.
# This script hide's text behind any media file like jpg file, mp3 file ecetera.
# This script accepts two parameter for hiding text and one parameter for finding text.
# Please install steganography python library by - pip install steganography
# This script is compatible with python 2.7
from __future__ import absolute_import,unicode_literals
import argparse
from steganography.steganography import Steganography
parser=argparse.ArgumentParser()
parser.add_argument("--carrier",help="Give path of carrier file which will contain our text.")
@lifenautjoe
lifenautjoe / instagram-web-unfollow.js
Created March 14, 2017 23:27
Script to unfollow people in the instagram website
/**
* Instagram web unfollow script
*
* WHAT IS IT?
* A script to unfollow people in the instagram website
*
* WHY?
* I needed to clean my account so I quickly did this
*
* HOW TO USE:
@gokulkrishh
gokulkrishh / media-query.css
Last active May 7, 2025 06:24
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@matt-bailey
matt-bailey / async-and-conditional-css-loading.html
Last active March 17, 2021 22:09
A simple script (based on one by Google) for loading CSS files asynchronously and conditionally based on body tag classes
<html>
<head>
<!-- Inlined critical styles -->
<style>.blue{color:blue;}</style>
<!-- CSS loader -->
<script>
/* ==========================================================================
Load CSS asynchronously and conditionally after initial painting
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active April 28, 2025 21:34
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }