Skip to content

Instantly share code, notes, and snippets.

@htasirx
htasirx / siteground-hosting-coupon-code-67.md
Last active February 1, 2023 08:38
SiteGround Coupon 2020 (70% Discount offer) - SSL Free

Siteground Coupons & Promo Codes (upto 70% Off) 2020

Why SiteGround is the best General or Managed WordPress Hosting

Who are specialists in WordPress is clear. Not surprisingly, WordPress includes it on its own page of recommended hostings . And, in addition, it is the only hosting that appears in the WordPress recommendation lists, Joomla! and Drupal . Save Up To 70% Discount for your Wordpress Hosting Solution with SiteGround.

How to get the Discount offer?

Step by Step get the Siteground discount

1.) Use this link to

@htasirx
htasirx / SSH-Commands-List.md
Last active November 6, 2019 09:57
Basic SSH Commands List

cd Change Directory.

mkdir Create a new folder (directory).

touch Create a new file.

rm Remove a file.

cat Show contents of a file.

@htasirx
htasirx / 5-Best-Blockchain-Books.md
Last active February 1, 2023 21:27
Best 5 Blockchain Books - You Need To read in 2023
@htasirx
htasirx / frontendDevlopmentBookmarks.md
Created January 30, 2020 17:37 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@htasirx
htasirx / FUN493.md
Last active January 30, 2020 17:49
FUNCTION

get_children() retrieves attachments, revisions, or sub-pages, p ossibly by post parent. It works similar to

`<?php $args = array( 'post_parent' => 0, 'post_type' => 'any', 'numberposts' => -1, 'post_status' => 'any' );

@htasirx
htasirx / mysql-docker.sh
Created January 30, 2020 17:50 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@htasirx
htasirx / docker-cleanup-resources.md
Created January 30, 2020 17:52 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@htasirx
htasirx / docker_cheat.md
Created January 30, 2020 17:55 — forked from wsargent/docker_cheat.md
Docker cheat sheet
@htasirx
htasirx / readme.md
Created January 30, 2020 17:58 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@htasirx
htasirx / node-and-npm-in-30-seconds.sh
Created January 30, 2020 18:01 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh