Grafana with field name modification and flux
Tuesday, June 1, 2021
Monday, May 31, 2021
How to change Git clone URL (and SSH) when using docker Gitlab
wonder how to change this ?
for Clone with SSH, change made under gitlab.rb config file, replace these two
- gitlab_shell_ssh_port
- gitlab_ssh_host
and run gitlab-ctl reconfigure to reload the configuration.
and for Clone with HTTP, change it under Admin area menu, Settings -> General -> Visibility and access Control.
Monday, June 18, 2018
reverse task sequence in Ansible
I found this solution to be handy for my need that I need to reverse the task sequence when I remove the instance from the cloud, basically, all task are the same just like when creating the instance, only for removing it, the task should start from the last one, here is my ansible playbook, as you can see I have list of task that needs to be performed in sequence, put them in to the list is the trick here, so I can have them sequenced in reverse.
============================
- name: Create/Destroy instance
hosts: localhost
vars:
cmd_sequence: [ "projects.yml", "members.yml", "groups.yml", "rules.yml", "networks.yml", "subnets.yml", "ports.yml", "servers.yml", "router.yml", "properties.yml" ]
tasks:
- name: DESTROY Instance from the Cloud
vars:
task_name: "tasks/{{ item }}"
include_tasks: "{{ task_name }}"
with_items:
- "{{ cmd_sequence[::-1] }}"
when: deploytype=="DESTROY"
- name: CREATE Instance in the Cloud
vars:
task_name: "tasks/{{ item }}"
include_tasks: "{{ task_name }}"
with_items:
- "{{ cmd_sequence }}"
when: deploytype=="CREATE"
=============================
Monday, February 2, 2015
Clover IRC105 Color Camera connector 4 pinout
for the owner or ex-owner that has the IRC105 camera without the cable and want to know what is the pin out for its connector, here is the info :
this is the camera :
this is the connector pinout :
1 : Video (+) pin
2 : Video (-) pin
3 : Camera Voltage (-) pin
4 : Camera Voltage (+) pin
this is the camera :
this is the connector pinout :
1 : Video (+) pin
2 : Video (-) pin
3 : Camera Voltage (-) pin
4 : Camera Voltage (+) pin
Wednesday, September 24, 2014
Windows 7 Share inaccessible from non-windows or old media player (PBO, PlayOn, ACRyan)
recently my windows 7 PC got the update and suddenly my media player unable to access video files stored in my PC, turned out now windows 7 is too secure for non-microsoft media player, or any old media player.
here is the remedy, change the windows 7 registry to allow old style authentication from other device.
open Regedit, go to HKEY_LOCAL_MACHINE (HKLM)
restart a PC, now window share is accessible again from old media player.
my media player is PBO from patriot, and run PlayonHD firmware from AC Ryan.
here is the remedy, change the windows 7 registry to allow old style authentication from other device.
open Regedit, go to HKEY_LOCAL_MACHINE (HKLM)
- in HKLM\SYSTEM\CurrentControlSet\Control\Lsa, create LmCompatibilityLevel = dword "1", and change NoLmHash from "0" to "1"
- in HKLM\SOFTWARE\Policies\Microsoft create key Netlogon
- in HKLM\SOFTWARE\Policies\Microsoft\Netlogon create key Paramaters
- in HKLM\SOFTWARE\Policies\Microsoft\Netlogon\Paramaters create AllowNT4Crypto = dword "1"
- in HKLM\SYSTEM\CurrentControlSet\Services\Netlogon\Paramaters create AllowNT4Crypto = dword "1"
- make sure in HKLM\SYSTEM\CurrentControlSet\Services\Lanmanserver\Paramaters requiresecuritysignature already set to dword "0"
restart a PC, now window share is accessible again from old media player.
my media player is PBO from patriot, and run PlayonHD firmware from AC Ryan.
Thursday, September 18, 2014
Driver for Tiny USB wifi dongle, RTL8188BEV or RTL8188CUS
just want to share the link, here is the driver for Linux, Windows XP up to 8 and Mac OSX, looking the right ones was pain in the butt.
http://www.infoanda.com/resources/RTL8188EU_RTL8188BEV.rar
and here is the dongle that I got it from ebay.
http://www.infoanda.com/resources/RTL8188EU_RTL8188BEV.rar
and here is the dongle that I got it from ebay.
Monday, June 3, 2013
traffic measurement with STAK on asterisk with g.729
ever wonder how much g729 compare to g711 when it come to use the bandwidth ?, here is the result when I am using STAK, ( stak-1.0b1 on linux) in my asterisk server.
with g711 codec :
./stakrate -r5 -ci eth2 -f "host x.x.x.x"
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.61 kBps/100.60 pps, Average: 19.58 kBps/100.45 pps
with g729 codec :
./stakrate -r5 -ci eth2 -f "host x.x.x.x"
=> Currently 5.90 kBps/100.40 pps, Average: 5.90 kBps/100.40 pps
=> Currently 5.91 kBps/100.60 pps, Average: 5.90 kBps/100.50 pps
=> Currently 6.75 kBps/101.80 pps, Average: 6.18 kBps/100.93 pps
=> Currently 6.79 kBps/102.20 pps, Average: 6.34 kBps/101.25 pps
with g711 codec :
./stakrate -r5 -ci eth2 -f "host x.x.x.x"
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.57 kBps/100.40 pps, Average: 19.57 kBps/100.40 pps
=> Currently 19.61 kBps/100.60 pps, Average: 19.58 kBps/100.45 pps
with g729 codec :
./stakrate -r5 -ci eth2 -f "host x.x.x.x"
=> Currently 5.90 kBps/100.40 pps, Average: 5.90 kBps/100.40 pps
=> Currently 5.91 kBps/100.60 pps, Average: 5.90 kBps/100.50 pps
=> Currently 6.75 kBps/101.80 pps, Average: 6.18 kBps/100.93 pps
=> Currently 6.79 kBps/102.20 pps, Average: 6.34 kBps/101.25 pps
almost 1/4.
Thursday, May 2, 2013
Unlock Linksys Sipura SPA 2102-R from clearwire.
I know this is getting old, but continuing the topic, I found another used SPA-2102-R that is no longer attached with the provider, named clearwire, and with the same trick that I use in this link
Unlock Linksys Sipura SPA 2102, I am able to unlock it and use it with my own voip provider, but with slightly different step.
1. without connecting it anywhere, except a phone headset, set device to default configuration, by pressing **** and option 73738# and press 1 to confirm.
2. make dns record to have us-prov.clearwire.com pointing out to personal webserver address.
3. and copy that spaMAC.cfg which is explained in above link to webserver directory.
4. turn on SPA device, and after it get the provision file above the device will have all password cleared.
easy device to work with.
Saturday, January 19, 2013
Memory Stick 64bit driver for Sony Vaio VGN-FW140E, dev id 0592
download the driver from this site if you want to enable ricoh memory stick controller on windows 7 64bit.
file name is : MEMORY_CARD_READER_WRITER_DRIVER_RICOH_MS_6.3X64_I_6.3.0.61.ZIP
ftp://ftp.vaio-link.com/PUB/VAIO/ORIGINAL/MEMORY_CARD_READER_WRITER_DRIVER_RICOH_MS_6.3X64_I_6.3.0.61.ZIP
file name is : MEMORY_CARD_READER_WRITER_DRIVER_RICOH_MS_6.3X64_I_6.3.0.61.ZIP
ftp://ftp.vaio-link.com/PUB/VAIO/ORIGINAL/MEMORY_CARD_READER_WRITER_DRIVER_RICOH_MS_6.3X64_I_6.3.0.61.ZIP
Thursday, October 11, 2012
vga options in kernel parameter, for Linux change its console screen resolution
just add one of this options to make our linux screen console to have bigger than old time standard 80x25 mode.
ie : kernel /vmlinuz-xxxx ro root=/dev/xxx rhgb quiet vga=VVV
where VVV is one of this number 791 is sufficient enough for me.
791 - 1024x768, 16 bit
792 - 1024x768, 24 bit
794 - 1280x1024, 16 bit
795 - 1280x1024, 24 bit
reboot the machine for setting to be applied.
Sunday, September 9, 2012
12.4-24 IOS on NPE-400, its run, with finger crossed.
7206-RT1#sh ver
Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 12.4(24)T5, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Fri 04-Mar-11 06:49 by prod_rel_team
ROM: System Bootstrap, Version 12.2(4r)B2, RELEASE SOFTWARE (fc2)
BOOTLDR: 7200 Software (C7200-BOOT-M), Version 12.0(22)S, EARLY DEPLOYMENT RELEASE SOFTWARE (fc2)
7206-RT1 uptime is 20 hours, 35 minutes
System returned to ROM by reload at 15:24:50 HPT Sat Sep 8 2012
System restarted at 15:31:13 HPT Sat Sep 8 2012
System image file is "disk0:c7200-advipservicesk9-mz.124-24.T5.bin"
Last reload reason: Reload Command
1 FastEthernet interface
28 Serial interfaces
2 HSSI interfaces
125K bytes of NVRAM.
62720K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).
125440K bytes of ATA PCMCIA card at slot 1 (Sector size 512 bytes).
4096K bytes of Flash internal SIMM (Sector size 256K).
Configuration register is 0x2102
Saturday, August 18, 2012
Linksys SPA400 Default IP address
my SPA400 has default IP address : 192.168.1.151 with default gateway 192.168.1.1, try this ip in yours, default username is : Admin with no password ( blank password ).
I wrote this because somehow, cisco website, intentionally trying to confuse people by saying, no default ip address, and give this clue on its ip address :
.
I wrote this because somehow, cisco website, intentionally trying to confuse people by saying, no default ip address, and give this clue on its ip address :
There are only two ways to determine the SPA400 IP address:that is nonsense right ?
- Using the SPA9000 Setup Wizard (so people will buy cisco SPA9000 ??? :-) )
- By generating the DHCP client's table of the main router
.
Wednesday, July 18, 2012
Joomla: 500 - An error has occurred
Ever reach a strange error like this ? when tried to login to the Administration section of my Joomla(1.7) with wrong username or password ?.
"500 - An error has occurred - Return to Control Panel"
dont panic, just look into your configuration.php files, see what is under variable $log_path, and $tmp_path, and work by make sure the directory is writable by your webserver account ( ie apache user) or change it to different address that the server has with write permission.
this problem occurred when we copy joomla installation to new server or for some reason, permission change.
Friday, July 6, 2012
ltdl libtool-ltdl-devel missing
just to remind me, if -ltdl error is appear when trying to build something under linux, check if libtool-ltdl-devel is there,
and another reason I put this on the page seems that internet has less information regarding ltdl library, and I just want to populate internet with this information :-)
and another reason I put this on the page seems that internet has less information regarding ltdl library, and I just want to populate internet with this information :-)
Monday, July 2, 2012
AMD E-350 vs AMD E2-1800 on windows experience index number
anyone want to see how this almost identical processor will look compared each other ? just for the information, the only difference for this two processor other than the production year (more than 1 year apart), is the CPU clock speed and of course, the clock speed of its GPU, pretty sad for such "good" processor only got this improvement after 1 year, AMD should name this E2-1800 with E-550 for this small improvement right ?
These windows experience index result below are coming from E350 foxconn NTA350 nettop and E2-1800 Sony Vaio SVE11113FXW netbook.
this is E-350, with processor score 3.8

and this is E2-1800, with processor score 3.9

I wish that at least AMD pump more juice on this already good processor, like more Mhz, or decreased the lithography to 32nm maybe, with only 0.1 processor score differences, well, that we got it already with E-450.
Saturday, March 31, 2012
Ivy Bridge Quad-Core, Eight-Thread Mo bile CPUs
Released within first quarter 2012
Ivy Bridge Quad-Core, Eight-Thread Desktop CPUs
Ivy Bridge Quad-Core, Eight-Thread Desktop CPUs
- Core i7-3770K (3.5GHz, 3.9 GHz w/Turbo Boost, 8MB L3 Cache, 77W): $332
- Core i7-3770 (3.4GHz, 3.9GHz w/Turbo Boost, 8MB L3 Cache, 77W): $294
- Core i7-3770S (3.1GHz, 3.9 GHz w/Turbo Boost, 8MB L3 Cache, 65W): $294
- Core i7-3770T (2.5GHz, 3.7GHz w/Turbo Boost, 8MB L3 Cache, 45W): $294
- Core i5-3570K (3.4GHz, 3.8GHz w/Turbo Boost, 6MB L3 Cache, 77W): $225
- Core i5-3570T (2.3GHz, 3.3 GHz w/Turbo Boost, 6MB L3 Cache, 45W): $205
- Core i5-3550 (3.3GHz, 3.7GHz w/Turbo Boost, 6MB L3 Cache, 77W): $205
- Core i5-3550S (3.0GHz, 3.7GHz w/Turbo Boost, 6MB L3 Cache, 65W): $205
- Core i5-3450 (3.1GHz, 3.5GHz w/Turbo Boost, 6MB L3 Cache, 77W): $184
- Core i7-3920XM (2.9GHz, 3.8GHz w/Turbo Boost, 8MB L3 Cache, 55W): $1096
- Core i7-3820QM (2.7GHz, 3.7GHz w/Turbo Boost, 8MB L3 Cache, 45W): $568
- Core i7-3720QM (2.6GHz, 3.6GHz w/Turbo Boost, 6MB L3 Cache, 45W): $378
Thursday, March 22, 2012
NPE-G1 Show version
DISTROUTER1#sh ver
Cisco IOS Software, 7200 Software (C7200-C6IS-M), Version 12.3(14)YX9, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Tue 14-Aug-07 02:17 by kellythw
ROM: System Bootstrap, Version 12.3(4r)T3, RELEASE SOFTWARE (fc1)
BOOTLDR: 7200 Software (C7200-KBOOT-M), Version 12.3(15), RELEASE SOFTWARE (fc3)
BOOTLDR: 7200 Software (C7200-KBOOT-M), Version 12.3(15), RELEASE SOFTWARE (fc3)
DISTROUTER1 uptime is 6 hours, 2 minutes
System returned to ROM by reload at 10:24:05 Tue Aug 18 2009
System restarted at 10:26:29 Tue Aug 18 2009
System image file is "disk2:c7200-c6is-mz.123-14.YX9.bin"
Last reload reason: Reload command
System returned to ROM by reload at 10:24:05 Tue Aug 18 2009
System restarted at 10:26:29 Tue Aug 18 2009
System image file is "disk2:c7200-c6is-mz.123-14.YX9.bin"
Last reload reason: Reload command
Cisco 7206VXR (NPE-G1) processor (revision B) with 983040K/65536K bytes of memory.
Processor board ID 35565483
SB-1 CPU at 700MHz, Implementation 1025, Rev 0.2, 512KB L2 Cache
6 slot VXR midplane, Version 2.11
Last reset from power-on
PCI bus mb1 (Slots 1, 3 and 5) has a capacity of 600 bandwidth points.
Current configuration on bus mb1 has a total of 400 bandwidth points.
This configuration is within the PCI bus capacity and is supported.
Current configuration on bus mb1 has a total of 400 bandwidth points.
This configuration is within the PCI bus capacity and is supported.
PCI bus mb2 (Slots 2, 4 and 6) has a capacity of 600 bandwidth points.
Current configuration on bus mb2 has a total of 0 bandwidth points.
This configuration is within the PCI bus capacity and is supported.
Current configuration on bus mb2 has a total of 0 bandwidth points.
This configuration is within the PCI bus capacity and is supported.
Please refer to the following document "Cisco 7200 Series Port
Adaptor Hardware Configuration Guidelines" on CCO,
for c7200 bandwidth points oversubscription/usage guidelines.
Adaptor Hardware Configuration Guidelines" on CCO
for c7200 bandwidth points oversubscription/usage guidelines.
2 FastEthernet interfaces
3 Gigabit Ethernet interfaces
509K bytes of NVRAM.
125184K bytes of ATA PCMCIA card at slot 2 (Sector size 512 bytes).
16384K bytes of Flash internal SIMM (Sector size 256K).
Configuration register is 0x2102
16384K bytes of Flash internal SIMM (Sector size 256K).
Configuration register is 0x2102
DISTROUTER1#
Monday, February 6, 2012
Enabling AHCI after Windows 7 installed on IDE Mode
If there is any chance that you guys installing windows 7 while in IDE mode for your SATA drives (just like me) and now want to change it to AHCI mode in the bios only to get windows startup crash, here is the step.
in the BIOS, change back the SATA mode to IDE, start windows normally and do below step :
1. start "Regedit"
2. Go to : HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlset / Services
3. Open msahci
4. In the right field double click on "start".
5. In the value Data field enter "0" and click "ok"
6. exit "Regedit"
restart your PC, back to BIOS again, and change the SATA mode to AHCI, your windows should start without any problem.
in the BIOS, change back the SATA mode to IDE, start windows normally and do below step :
1. start "Regedit"
2. Go to : HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlset / Services
3. Open msahci
4. In the right field double click on "start".
5. In the value Data field enter "0" and click "ok"
6. exit "Regedit"
restart your PC, back to BIOS again, and change the SATA mode to AHCI, your windows should start without any problem.
Wednesday, January 4, 2012
phpize error: unknown type name 'pval'
got this error ? suddenly unknown pval type ? because upgrading from php 5.3 to php 5.4 ?, sucks right ?
yeah, pval has been changed to zval, so if we find any source that use pval type, we need to find the newer source that has been updated to zval, if we unlucky to find one, edit the source by our self.
I got this problem when I tried to do 'pecl install stats' under php 5.4, the error was beginning with :
/var/tmp/stats/statistics.c:165:2: error: unknown type name 'pval'
well, then manually replace all pval with zval under statistics.c file (total 5 replacement, using %s vi command), but with one trick, since PECL will always reload from the source and delete any temporary local file, we have to make our updated file unwriteable, by issuing chattr +ui /var/tmp/stats/statistics.c., and the trick to get that statistic.c at the first time, press ctrl break on the first stage of pecl install when it decompressing the source, then update and lock the file with above trick.
Monday, June 20, 2011
TP-Link TL-MR3420 Wireless router is compatible with Nokia E52 Phone
I just realized today that my TP-Link Wireless router is supporting Nokia E52 phone on its native firmware, without any additional modem firmware.
although on their website, nokia support isnt mentioned anywhere, it does detect the nokia phone as 3G USB modem, here is the "officially" modem support from their website.
and here is my TL-MR3420 configuration that shows Nokia E52-1 as 3G USB Modem.
if somebody mind to ask, why I use my expensive phone as 3G modem on wireless router ???, why not ??, I have unlimited data plan on the phone, and the router is charging the phone too on its USB port. :-D
==========================
update for firmware version :
Firmware Version: 3.11.10 Build 100901 Rel.52652n
Hardware Version: MR3420 v1 00000000
==========================
although on their website, nokia support isnt mentioned anywhere, it does detect the nokia phone as 3G USB modem, here is the "officially" modem support from their website.
and here is my TL-MR3420 configuration that shows Nokia E52-1 as 3G USB Modem.
if somebody mind to ask, why I use my expensive phone as 3G modem on wireless router ???, why not ??, I have unlimited data plan on the phone, and the router is charging the phone too on its USB port. :-D
==========================
update for firmware version :
Firmware Version: 3.11.10 Build 100901 Rel.52652n
Hardware Version: MR3420 v1 00000000
==========================
Subscribe to:
Posts (Atom)





