Monthly Archives: May 2021

How to find out CPU make and model in Linux

Use the following simple command to find out make and model of CPU/Processor – cat /proc/cpuinfo

┌──(kali㉿kali)-[~]
└─$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 94
model name : Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
stepping : 3
cpu MHz : 2591.996
cache size : 6144 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq monitor ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips : 5183.99
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

There are other commands like

lscpu

dmidecode

But, cat /proc/cpuinfo works reliably on all machines.

How to use Free Clipboard Manager in Windows 10

I have been using clipboard managers for a long time. I came across a variety of clipboard managers both on Linux and Windows. Long ago when I was using KDE 3 Klipper was my favorite clipboard manager. After moving to windows I didn’t find any thing that matched my taste. A few free ones were sluggish and others came with restriction on usage unless you buy them. Number of times I have resisted the idea of writing my own clipboard history manager after failing to find some features I wanted in existing ones out there.

Windows 10 packs a neat little clipboard history manager for some one whose needs are simple. It won’t automatically process links or other text you put into clipboard. It’s pretty basic. But it will save your day with out having to install 3rd party clipboard managers

How to enable Windows Clipboard History

Goto Settings search for Clipboard . Turn on the toggle button under Clipboard History section. Look at the following screen shot

Once you have enabled it. You will be able to summon the clipboard history pop up by pressing Win + V key combination

Ideas are worthless

When building new products or services it’s better to share them with potential customers as early as possible. This will help close the feedback loop. Which is precious when a business is in early phase and haven’t burnt too much cash on the new product.

Start ups operating in stealth mode, shrouded in secrecy, developing the product in private, spend years in making it perfect. Then unveiling it to the public. Though that’s very tempting to entrepreneur. This path ruins careers and empties bank accounts.

I have been on the both sides of this game. There is a service which we have built and shared with potential customers very early on. It became successful. And there are a few products which were developed in stealth mode for a long time and they ultimately went no where.

Stealth mode hinders businesses from early learning opportunities and puts them at a huge disadvantage.

MVP (Minimum Viable Product) /Prototype – is early representation of what your offering will look like. It can rough around the edges. But, try to present it to the potential customers early on in the product’s life cycle. The feedback a business gets from early users is priceless and will help shape the whole thing into a better product that people actually want to use. Coming out of stealth mode and finding out that no one really wants to use the product is a very tough situation to spring back from. At this point one has to battle with lots of psychological effects like Sunk Cost Fallacy

Ideas are cheap or like they say dime a dozen. What really counts is the ability to transform that Idea into usable product/service. The journey from idea to taking the first payment from the customer is fraught with peril.

Unless you are working in an industry where there is heavy competition and competitors with deep pockets that can copy your idea over night, it’s a bad idea to develop the product in the dark.

How to whitelist Google IP address ranges in firewall using iptables

As an administrator, when you need to obtain a range of IP addresses for Google APIs and services’ default domains, you can refer to the following sources of information.

The default domains’ IP address ranges for Google APIs and services fit within the list of ranges between these 2 sources. (Subtract the usable ranges from the complete list.)

Once you get the IP address ranges, use the xargs command to update iptables.

google-ips-whitelist.sh