Skip to content

Instantly share code, notes, and snippets.

View h1dd3nsn1p3r's full-sized avatar
🎯
Focusing

Anuj Subedi h1dd3nsn1p3r

🎯
Focusing
  • cream { code } tech.
  • Nepal
  • 07:01 (UTC +05:45)
  • LinkedIn in/anuj-subedi
View GitHub Profile
@h1dd3nsn1p3r
h1dd3nsn1p3r / ssh.md
Last active March 20, 2024 06:31
Add new user and enable SSH access.

Add user.

adduser anujsubedi

Mod user to sudo.

usermod -aG sudo anujsubedi
@h1dd3nsn1p3r
h1dd3nsn1p3r / gist:d4315009f06baf698eb8ae4ae7df17b4
Created November 9, 2023 06:46
Addonify.com: hide quick view button by Dilyana
#addonify-quick-view-modal .woocommerce .product .summary .summary-content .cart .quantity input[type=number],
#addonify-quick-view-modal .woocommerce .product .summary .summary-content .cart .quantity input[type=text] {
height: 38px;
min-height: 38px;
padding: 6px;
margin: 0;
width: 100%;
border-radius: 0;
border-color: var(--ast-border-color);
@h1dd3nsn1p3r
h1dd3nsn1p3r / EditorConfig
Last active April 29, 2024 11:22
EditorConfig
# editorconfig.org
# Ref: https://editorconfig.org/
# top-most EditorConfig file
root = true
[*]
indent_style = tab
tab_width = 2
indent_size = 2
@h1dd3nsn1p3r
h1dd3nsn1p3r / hide-go-cart-mobile-device
Last active February 26, 2023 05:09
Hide Go Cart trigger button at mobile devices.
@media ( max-width: 575px ) {
#gocart__woo-trigger {
display: none;
}
}
@h1dd3nsn1p3r
h1dd3nsn1p3r / Ratchet + nginx + SSL secure websocket
Created November 25, 2022 16:57
Ratchet + nginx + SSL secure websocket
upstream socket {
server localhost:6969;
}
server
{
listen 80;
listen 443 ssl http2;
server_name ws.cmpriceaction.com;
#!/bin/bash
# Function definations.
__fly_help_menu() {
echo -e ""
echo -e "======================="
echo -e "THESE ARE THE AVAILABLE COMMANDS:"
echo -e ""
echo -e "⟹ ./cli.sh --create -domain example.com"
@h1dd3nsn1p3r
h1dd3nsn1p3r / Gulp 4 to compile SASS to CSS, minify + bundle JS script files & generate RTL CSS
Created June 24, 2020 10:13
Gulp 4 to compile SASS to CSS, minify + bundle JS script files & generate RTL CSS
const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const postcss = require('gulp-postcss');
const autoprefixer = require('autoprefixer');
const cssnano = require('cssnano');
const replace = require('gulp-replace');
const notify = require('gulp-notify');
@h1dd3nsn1p3r
h1dd3nsn1p3r / rClone script to backup files to Back Blaze B2
Created May 18, 2020 12:18
rClone script to backup files to Back Blaze B2. You need to have rclone installed in your server (https://rclone.org/install/). After installing an rclone configure Google Drive (https://rclone.org/drive/). You can call this script from Linux crontab
#!/bin/bash
##############################################################################
# An rclone backup script by Anuj Subedi ([email protected]).
#
# Copyright (C) 2020 Anuj Subedi <[email protected]>
#
# This script is licensed under the terms of the MIT license.
# https://opensource.org/licenses/MIT
#
@h1dd3nsn1p3r
h1dd3nsn1p3r / rClone script to backup files to google drive
Last active March 7, 2024 03:32
rClone script to backup files to google drive. You need to have rclone installed in your server (https://rclone.org/install/). After installing an rclone configure Google Drive (https://rclone.org/drive/). You can call this script from Linux crontab
#!/bin/bash
##############################################################################
# An rclone bash script to backup files by Anuj Subedi ([email protected]).
#
# Copyright (C) 2020 Anuj Subedi <[email protected]>
#
# This script is licensed under the terms of the MIT license.
# https://opensource.org/licenses/MIT
#
@media (max-width: 600px) {
.header-style-1 .top-header .os-col.left-col {
display: flex;
flex: 0 0 100%;
max-width: 100%;
margin-bottom: 10px;
}