Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| ;annotation syntax | |
| (import [java.lang.annotation Retention RetentionPolicy Target ElementType] | |
| [javax.xml.ws WebServiceRef WebServiceRefs]) | |
| (definterface Foo (foo [])) | |
| ;annotation on type | |
| (deftype ^{Deprecated true | |
| Retention RetentionPolicy/RUNTIME | |
| javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"] |
| #!/bin/bash | |
| # Extract subdirectory into a submodule. | |
| if [ -z "$1" ]; then | |
| echo "Usage: extract-submodule subdirectory" | |
| echo "No trailing slash" | |
| echo "Should be run from the root directory of repository" | |
| echo "Everything should be clean prior to running this script" | |
| echo "You need to manually copy submodule somewhere and update .gitmodules file appropriately" | |
| exit 1; |
| #!/bin/bash | |
| # As the "bufferbloat" folks have recently re-discovered and/or more widely | |
| # publicized, congestion avoidance algorithms (such as those found in TCP) do | |
| # a great job of allowing network endpoints to negotiate transfer rates that | |
| # maximize a link's bandwidth usage without unduly penalizing any particular | |
| # stream. This allows bulk transfer streams to use the maximum available | |
| # bandwidth without affecting the latency of non-bulk (e.g. interactive) | |
| # streams. |
| #!/bin/sh | |
| schedtool -R -p 2 -e /usr/bin/socat tcp-l:5555,fork,reuseaddr system:'printf "HTTP/1.0\\\\x20200\\\\x20OK\\\\r\\\\nContent-Type\:\\\\x20video/x-matroska\\\\r\\\\n\\\\r\\\\n" && ffmpeg -f video4linux2 -ss 2 -i /dev/video0 -ss 2 -f oss -ac 1 -i /dev/dsp -s 320x240 -vcodec libx264 -vpre ultrafast -b 300k -ar 22050 -acodec libmp3lame -ab 32k -f matroska pipe\:1 < /dev/null' |
| # Copyright (C) 2011 Alessandro Ghedini <[email protected]> | |
| # Updated 2012 by Mike Perry to extract syscall table addresses | |
| # Updated 2014 by Francis Brosnan Blázquez to check for ia32 support | |
| obj-m += noptrace2.o | |
| KERNEL_VER=$(shell uname -r) | |
| SCT := $(shell grep " sys_call_table" /boot/System.map-$(KERNEL_VER) | awk '{ print $$1; }') | |
| SCT32 := $(shell grep "ia32_sys_call_table" /boot/System.map-$(KERNEL_VER) | awk '{ print $$1; }') |
| pm list packages -f |
| From 7959a97980894e1a47361e566d234a5f341dd05d Mon Sep 17 00:00:00 2001 | |
| From: Vitaly _Vi Shukela <[email protected]> | |
| Date: Tue, 29 Nov 2011 19:29:50 +0300 | |
| Subject: [PATCH] Strace-based speed limiter | |
| Apply to strace-4.6 | |
| Set env SPEEDLIMIT_READ=1000 and slow down other process with strace | |
| Example: SPEEDLIMIT_READ=$((200*1024)) ./strace -o /dev/null -p `pidof wget` | |
| --- |
| <script language="JavaScript" type="text/javascript"> | |
| // Comcast Cable Communications, LLC Proprietary. Copyright 2012. | |
| // Intended use is to display browser notifications for critical and time sensitive alerts. | |
| var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'; | |
| // var image_url='http://servicealerts.comcast.net:8080/images/mt'; | |
| var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images'; | |
| var headertext1='<strong>Comcast Courtesy Notice</strong>'; | |
| var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.'; | |
| var textline2='Please sign in for more information and to remove this alert.'; | |
| var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login¶mName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>'; |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)