start new:
tmux
start new with session name:
tmux new -s myname
| import hashlib | |
| from functools import wraps | |
| from django.core.cache import cache | |
| from django.utils.encoding import force_text, force_bytes | |
| def cache_memoize( | |
| timeout, | |
| prefix='', |
| <!-- Add this just before your closing </body> tag --> | |
| <!-- Replace 'APP_ID' with your app ID --> | |
| <script> | |
| window.intercomSettings = { app_id: 'APP_ID' }; | |
| </script> | |
| <!-- Replace 'APP_ID' with your app ID --> | |
| <script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/APP_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script> |
| [Unit] | |
| Description=Jenkins | |
| After=network.target | |
| Requires=network.target | |
| [Service] | |
| Type=simple | |
| EnvironmentFile=/etc/sysconfig/jenkins | |
| ExecStart=/usr/bin/java ${JENKINS_JAVA_OPTIONS} -jar /usr/lib/jenkins/jenkins.war --httpPort=${JENKINS_PORT} --httpListenAddress=${JENKINS_LISTEN_ADDRESS} ${JENKINS_ARGS} | |
| Restart=always |
| static void check_for_leaks() | |
| { | |
| GLuint max_id = 10000; // better idea would be to keep track of assigned names. | |
| GLuint id; | |
| // if brute force doesn't work, you're not applying it hard enough | |
| for ( id = 1 ; id <= max_id ; id++ ) | |
| { | |
| #define CHECK( type ) if ( glIs##type( id ) ) fprintf( stderr, "GLX: leaked " #type " handle 0x%x\n", (unsigned int) id ) | |
| CHECK( Texture ); |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight |