I hereby claim:
- I am matse on github.
- I am matse (https://keybase.io/matse) on keybase.
- I have a public key ASAadjSAOP8bgKOaCNswz0L9Y26h6f1tfDsmbMPsHN5Stwo
To claim this, I am signing this object:
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
| # source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
| #/bin/sh | |
| # stop service | |
| systemctl stop pvestatd.service | |
| systemctl stop pvedaemon.service | |
| systemctl stop pve-cluster.service | |
| systemctl stop corosync | |
| systemctl stop pve-cluster | |
| # edit through sqlite, check, delete, verify |
| Uses web API to bulk-delete plan branches | |
| See README.md |
I hereby claim:
To claim this, I am signing this object:
| <!-- start git diff syntax colors --> | |
| <dict> | |
| <key>name</key> | |
| <string>diff.header</string> | |
| <key>scope</key> | |
| <string>meta.diff, meta.diff.header</string> | |
| <key>settings</key> | |
| <dict> | |
| <key>fontStyle</key> | |
| <string>italic</string> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| class ActiveRecord::Base | |
| def self.import!(record_list) | |
| raise ArgumentError "record_list not an Array of Hashes" unless record_list.is_a?(Array) && record_list.all? {|rec| rec.is_a? Hash } | |
| return record_list if record_list.empty? | |
| (1..record_list.count).step(1000).each do |start| | |
| key_list, value_list = convert_record_list(record_list[start-1..start+999]) | |
| sql = "INSERT INTO #{self.table_name} (#{key_list.join(", ")}) VALUES #{value_list.map {|rec| "(#{rec.join(", ")})" }.join(" ,")}" | |
| self.connection.insert_sql(sql) |