Lzdev. I'm lazy lazy ...very lazy dev ..!!

Categories:

Copyright by Lzdev

Friend Ranking - The best extension to rank and remove inactive friends on Facebook

Friend Ranking - Unfriend Toolkit for Facebook, show your friend engagement statistics, unfriend inactive friends on Facebook, security and safety. To remove friends could help you build your quality friendzone. The friend is the best, let Friend Ranking help you to do that. * Features: - Show engagement statistics based on likes/react, comments, mutual friends, messages (free feature). - Sort friends by columns (free feature). - Auto unfriend selected (premium feature). - Backup, e…

Read more...

Useful docker commands for everyday use!

Below is a collection of useful docker commands that I use often Run a docker compose, remember cd to the directory containing the compose file before running docker-compose up Run and rebuild docker compose docker-compose up --build List runing container docker ps List all container docker ps -a Remove image docker rmi [image-id] Stop container docker stop [container-id]

Read more...

Useful git commands for everyday use!

- Init git project: git init Clone repo from link git clone [link] - View remote git remote - Save username, password git config credential.helper store - Update code and write to local file  git pull - Pull new code but not write to file. git fetch - Switch branch git fetch origin <----this will fetch the branch git checkout branch_name <--- Switching the branch - Rename branch: Rename your local branch.…

Read more...

How to get facebook access token 2020

Login FB on your browser and then open url https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed and press Ctrl + F to find keyword "accessToken". String EAAA.... is your facebook access token.

Read more...

Block any https website in route with iptables on DD-WRT router

Here is how I was able to do this: (1) Find out all the IP space that belongs to Facebook ---(a) Google'd for Facebook's BGP AS number -> AS32934 ---(b) Looked up all the routes for AS32934 on as.robtex.com ---(c) Self aggregated all the IP space. (2) Build a set of rules in IPTABLES that: ---(a) Define the FB destinations ---(b) Define the local sources ---(c) can be triggered into use based on a cron schedule. In order to use this configuration, there are some pr…

Read more...

Automate tasks with crontab

- Setup yum install cronie - Start crontab and automatically run every reboot: service crond start chkconfig crond on - Some commonly used commands: crontab -e: create or edit crontab file crontab -l: show crontab file crontab -r: remove crontab file - Structure of crontab file has 5 timed fields, finally the command will be run periodically, the structure is as follows: * * * * * command to be executed - - - - - | …

Read more...

Use cscript to activate Office 2010, 2013 & 2016

When you're unable to activate Office through additional means, you can use the cscript commands to activate Office with the help of the Command Prompt. [Solution 1] Activate Office with cscript   Open the Command Prompt (Admin) or PowerShell (Admin). Execute the command that belongs to your version:   Office 2010: cd C:\Program Files (x86)\Microsoft Office\Office14 Office 2013: cd C:\Program Files (x86)\Microsoft Office\Office15 Office 2016: cd C:\Prog…

Read more...

The Principles of Good Programming

DRY - Don’t repeat yourself. - Probably the single most fundamental tenet in programming is to avoid repetition. Many programming constructs exist solely for that purpose (e.g. loops, functions, classes, and more). As soon as you start repeating yourself (e.g. a long expression, a series of statements, same concept) create a new abstraction. Abstraction Principle - Related to DRY is the abstraction principle “Each significant piece of functionality in a program shou…

Read more...