Tips showing client media reel.
Here is link to a nice article from wiredrive on
Tips for Showing a Client a Media Reel
This article indeed has some good points to make your presentations useful.
Here is link to a nice article from wiredrive on
This article indeed has some good points to make your presentations useful.
Very quick hack to fix the font hinting automatically. Just execute the below:
sudo ln -s /usr/share/fontconfig/conf.avail/10-autohint.conf /etc/fonts/conf.d/10-autohint.conf
After this you should see the font hinting enabled and thus better experience with fonts.
One of the easiest way to make sure that you can have a decent battery life is
sudo yum install tlp smartmontools sudo systemctl enable tlp sudo systemctl start tlp
And after this you can check the status like this:
sudo tlp stat
— TLP 0.9 ——————————————–+++ Configured Settings: /etc/default/tlp
Continue reading
TLP_ENABLE=1
TLP_DEFAULT_MODE=AC
DISK_IDLE_SECS_ON_AC=0
DISK_IDLE_SECS_ON_BAT=2
MAX_LOST_WORK_SECS_ON_AC=15
MAX_LOST_WORK_SECS_ON_BAT=60
SCHED_POWERSAVE_ON_AC=0
SCHED_POWERSAVE_ON_BAT=1
NMI_WATCHDOG=0
ENERGY_PERF_POLICY_ON_AC=performance
ENERGY_PERF_POLICY_ON_BAT=powersave
DISK_DEVICES=”sda sdb”
DISK_APM_LEVEL_ON_AC=”254 254″
DISK_APM_LEVEL_ON_BAT=”128 128″
SATA_LINKPWR_ON_AC=max_performance
SATA_LINKPWR_ON_BAT=min_power
AHCI_RUNTIME_PM_TIMEOUT=15
PCIE_ASPM_ON_AC=performance
PCIE_ASPM_ON_BAT=powersave
RADEON_POWER_PROFILE_ON_AC=high
RADEON_POWER_PROFILE_ON_BAT=low
RADEON_DPM_STATE_ON_AC=performance
RADEON_DPM_STATE_ON_BAT=battery
RADEON_DPM_PERF_LEVEL_ON_AC=auto
RADEON_DPM_PERF_LEVEL_ON_BAT=auto
WIFI_PWR_ON_AC=off
WIFI_PWR_ON_BAT=on
WOL_DISABLE=Y
SOUND_POWER_SAVE_ON_AC=0
SOUND_POWER_SAVE_ON_BAT=1
SOUND_POWER_SAVE_CONTROLLER=Y
BAY_POWEROFF_ON_BAT=0
BAY_DEVICE=”sr0″
RUNTIME_PM_ON_AC=on
RUNTIME_PM_ON_BAT=auto
RUNTIME_PM_ALL=1
RUNTIME_PM_DRIVER_BLACKLIST=”radeon nouveau”
USB_AUTOSUSPEND=1
USB_BLACKLIST_WWAN=1
RESTORE_DEVICE_STATE_ON_STARTUP=0
First, you need to install enki. YOu can do so with
sudo yum install enki
And then you can use the editor as usual. The first thing that you will notice is the navigator window. And here is screenshot for you.

As you can see if you make a typo or mistake then you will immediately be warned with RED color.
Continue readingHere is a very nice article that you may find useful
If you are doing some scripting and using ‘time’ command, then you know sometimes it becomes difficult to capture the output as the output would be something like this:
: amit ; time ls real 0m0.002s user 0m0.000s sys 0m0.001s
So, it is better to change that format. Here is simple example:
|
1
|
Some times I need random string, for example to use as email seperator or to use in some API. One way is to use tools like /dev/[u]random or od and other such. But they seem cubersome after I figured this out.
openssl rand <length> openssl rand 10
This alone without some parameters is not interesting thoug. You can use ‘-base64’ or ‘-hex’ to select the encoding.
So if you execute the above you will get something like this
Continue reading