I use mc as file manager, and suffer from Ins. key absence at MAC keyboard.
Author Archives: KsI - Page 5
OS X how to press ins (Insert key) mc.
OS X How to press ALT (for alt-s at mc, etc)
alt+s is quich navigation search in MC (Midnight commander) to activate alt press.
control + (alt option)
OS X Make F1-F12 work as functional keys (without Fn)
System Preferences -> Hardware -> Keyboard -> “Use the F1-F12 keys to control software features”
How to make BIG partitions in linux
Your cannot create partitions larger then 4Tb using fdisk.
Your should use parted and gpt as partition type.
Read more »
Mysql check auto_increment values
We get old project, with braindead architecture.
Database structure provides surprises regularly. Yesterday we had a problem with maximum integer value reached at one column.
‘id’ at one table was auto_increment and “INT” not UNSIGNED INT or BIG INT, so after reaching id value 2147483647 application stop working, I change type to UNSIGNED BIGINT.
Squid with simple authentication
Typical task:
We order server at India, for development needs. Need to setup web proxy with authentication. Use squid, Luke!
#htpasswd /etc/squid/passwd
squid.conf
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
<span class="zbench-more-link"> <a href="https://it.randomthemes.com/2012/11/15/squid-with-simple-authentication/#more-193" class="more-link">Read more »</a></span>
qmail maillists and Jira messages delivery issues.
We had interesting issue with jira and qmail.
No mail comes to mail list group.
Not trivial email routing probles, message for mail list comes to ezmlm, but ezmlm rejects messages with tag
Precedence: bulk
Mysql How to delete all triggers
I`v got an issue from our development team to dump all triggers from prod db and add them to development db.
It`s trivial, except all triggers deletion. Everyone use magic, procedures, etc.
How to dump only triggers:
-u backup -pMEGASECUREPASSWORD
-h dbslave1-1.randomthemes.com database_name > /home/backup/mysql/database_name_triggers.sql
How to delete all triggers:
Fastest way (a little bit hindy 🙂 🙂 but working o.k.): Upload trigger names to file, apply regexp, delete
regexps (use vi, Luke):
:%s/\n/;\r/g
:%s/database_name/DROP TRIGGER IF EXISTS database_name/g
:%s/\t/./g
$mysql mydatabase < ./drop_all_triggers.sql
How to check if zabbix agent insstalled at all infrastructure hosts
We use LXC containers at PH hosts.
containers named like:
rolename$RoleVersion-$InstanceNumber
For example
at host sXX2
appserver1-1
db1-1
db1-2
zabbix3-1
We need to check, if zabbix agents are installed at all infrastructure. One way – user fabric, Luke, as all 80 level DevOps do, or use ssh as all 40 level DevOps do.
Sorry for a little bit 🙂 “hindi” code 🙂 no review was done 🙂
Read more »
How to install unassigned packages ubuntu/debian
We start chef deployment…
Chef deserve additional Huge article, but let`s start:
aptitude update
aptitude -o Aptitude::CmdLine::Ignore-Trust-Violations=true install opscode-keyring
aptitude -y -o Aptitude::CmdLine::Ignore-Trust-Violations=true install chef
Recent Comments