Skip to content

Instantly share code, notes, and snippets.

@egi
egi / a.out
Created October 19, 2019 22:48
[30350.391366] psmouse serio1: synaptics: queried max coordinates: x [..5676], y [..4690]
[30350.434636] psmouse serio1: synaptics: queried min coordinates: x [1266..], y [1162..]
[30350.508364] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.16, id: 0x1e2b1, caps: 0xf016a3/0x940300/0x12e800/0x400000, board id: 3276, fw id: 2700066
[30350.508383] psmouse serio1: synaptics: serio: Synaptics pass-through port at isa0060/serio1/input0
[30350.560259] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input18
[30351.327461] psmouse serio3: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 3/3
[30351.563423] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio3/input/input19
<monitors version="2">
<configuration>
<logicalmonitor>
<x>1920</x>
<y>0</y>
<scale>1</scale>
<monitor>
<monitorspec>
<connector>HDMI-2</connector>
<vendor>SAM</vendor>
SELECT product_id, td.the_date, SUM(qty)
FROM fact_sales sf
LEFT JOIN `olap_time_dimensions` td ON sf.`olap_time_dimension_id`=td.id
WHERE td.`the_month`='07'
GROUP BY product_id, td.the_date
ORDER BY product_id, td.the_date;
@egi
egi / gist:1f8139b94e2cb42c41fd
Last active August 29, 2015 14:17
working on async web service client, ideally, in jboss
http://docs.oracle.com/javaee/6/tutorial/doc/gkkqg.html Session beans can implement asynchronous methods, business methods where control is returned to the client by the enterprise bean container before the method is invoked on the session bean instance. Clients may then use the Java SE concurrency API to retrieve the result, cancel the invocation, and check for exceptions. Asynchronous methods are typically used for long-running operations, for processor-intensive tasks, for background tasks, to increase application throughput, or to improve application response time if the method invocation result isn’t required immediately. https://today.java.net/article/2006/09/15/asynchronous-web-service-invocation-jax-ws-20 Asynchronous Invocation with a Port Proxy http://www.mastertheboss.com/javaee/jboss-web-services/asynchronous-web-services-with-jboss-ws Web Service client with Dynamic Proxy Web Service client with Dispatcher http://grails.github.io/grails-doc/3.0.x/gui
@egi
egi / gist:ae75b5a7322e2627963b
Created March 24, 2015 06:08
enabling access log on jboss as 6
http://stackoverflow.com/questions/8831658/grails-on-tomcat-how-to-log-raw-http-request-response
on jboss as 6, this is the easiest.
https://access.redhat.com/solutions/185383
this helps with the log pattern variant
@egi
egi / gist:d17083685241d2147b5d
Last active August 31, 2023 09:01
creating rate limiting rule with mod_security
http://sourceforge.net/p/mod-security/mailman/message/30634837/
global and ip cannot be set per appid.
http://johnleach.co.uk/words/1073/rate-limiting-with-apache-and-mod-security
basic rules for rate-limiting incoming traffic
https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_security-with-apache-on-debian-ubuntu
the instruction here helps in debugging mod_security
http://stackoverflow.com/questions/131681/how-can-i-implement-rate-limiting-with-apache-requests-per-second
@egi
egi / gist:5cb3df03b79b17f0c0d1
Last active August 29, 2015 14:17
nuskin, mlm
http://brontecapital.blogspot.com/2013/07/good-and-bad-mlms-pampered-chef.html
nuskin is stated 'at the other end compared to the gold-standard for MLM'
http://pyramidschemealert.org/nu-skin-facing-the-ultimate-whistle-blower/
is having dirty laundry exposed...
http://isnuskinascam.com/
helps to recover from mlm victims
http://www.mlm-thetruth.com/research/mlm-statistics/nuskins-numbers/
@egi
egi / ping packet lost
Last active August 29, 2015 14:15
20150218. Cannot connect to 202.78.200.140.
nopro:~ egi$ ping 202.78.200.140
PING 202.78.200.140 (202.78.200.140): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
--- 202.78.200.140 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
@egi
egi / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# complete case insensitively
set completion-ignore-case on
# makes completion of file and directory names easier
set show-all-if-ambiguous on