This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kristian@luke:~/.../irclogs/Undernet$ awk '{ gsub("@",""); gsub("KristianL","Kristian"); gsub("[\\-|`]","") } $2 == "<" { $2="<"$3; $3=""; } $2 ~ "<.[a-zA-Z0-9|\\-`]*>" { foo[$2]++} END { for (a in foo) printf("%-20s wrote %5d lines\n",a,foo[a])}' \#hotellet.log* | |
| <DadaphLizzy> wrote 5 lines | |
| <idril> wrote 134 lines | |
| <Catya> wrote 35 lines | |
| <mrpip> wrote 1 lines | |
| <Botski> wrote 7 lines | |
| <CatyaDadaph> wrote 4 lines | |
| <Dadajobb> wrote 141 lines | |
| <epiphron> wrote 14 lines | |
| <Nesq> wrote 2 lines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Dash is /bin/sh on Ubuntu and "system" scripts should work on it | |
| kristian@freud:~$ dash | |
| $ echo Variable: $HOSTNAME Command: $(hostname) | |
| Variable: Command: freud | |
| $ bash | |
| kristian@freud:~$ echo Variable: $HOSTNAME Command: $(hostname) | |
| Variable: freud Command: freud | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kristian@freud:~$ time for a in {1..2000}; do echo $(hostname) > /dev/null; done | |
| real 0m3.619s | |
| user 0m0.240s | |
| sys 0m0.590s | |
| kristian@freud:~$ time for a in {1..2000}; do echo $HOSTNAME > /dev/null; done | |
| real 0m0.046s | |
| user 0m0.030s | |
| sys 0m0.010s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Author: Jussi Kivilinna <[email protected]> 2008-01-25 23:51:51 | |
| Committer: David S. Miller <[email protected]> 2008-02-01 04:27:01 | |
| Parent: 3692e94f1559523b84a5a0e65929ee84b276e83f (Move usbnet.h and rndis_host.h to include/linux/usb) | |
| Child: 38320c70d282be1997a5204c7c7fe14c3aa6bfaa ([IPSEC]: Use crypto_aead and authenc in ESP) | |
| Branches: master, remotes/origin/master | |
| Follows: v2.6.24 | |
| Precedes: v2.6.25-rc1 | |
| Add new driver 'rndis_wlan' for wireless RNDIS devices. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (gdb) call malloc(100) | |
| $1 = (void *) 0xd2a410 | |
| (gdb) call ((struct rlimit *)$1).cur_max=100 | |
| There is no member named cur_max. | |
| (gdb) call ((struct rlimit *)$1).rlim_cur=100 | |
| $2 = 100 | |
| (gdb) call ((struct rlimit *)$1).rlim_max=10000 | |
| $3 = 10000 | |
| (gdb) call setrlimit(7,$1) | |
| $4 = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (gdb) call malloc(50) | |
| $1 = (void *) 0xd2a480 | |
| (gdb) call *((unsigned long long *)$1) = 500 | |
| $2 = 500 | |
| (gdb) call *((unsigned long long *)($1+8)) = 2000 | |
| $3 = 2000 | |
| (gdb) call setrlimit(7,$1) | |
| $4 = 0 | |
| (gdb) detach | |
| Detaching from program: /proc/17514/exe, process 17514 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Author: Kristian Lyngstol <[email protected]> | |
| # | |
| # Generates RST for setting author, copyright, version. | |
| echo ":Author: Tollef Fog Heen, Kristian Lyngstøl" | |
| echo ":Copyright: Varnish Software AS 2010-2011, Redpill Linpro AS 2008-2009" | |
| VER=`git tag -l --contains | sed s/version-//` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mcelog --ascii --cpu intel --cpumhz 1333 <<<"CPU 1: Machine Check Exception: 4 Bank 5: b200001040100e0f" | |
| CPU 1: Machine Check Exception: 4 Bank 5: b200001040100e0f | |
| HARDWARE ERROR. This is *NOT* a software problem! | |
| Please contact your hardware vendor | |
| CPU 1 BANK 5 | |
| MCG status:MCIP | |
| MCi status: | |
| Uncorrected error | |
| Error enabled | |
| Processor context corrupt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kristian@freud:~/Source/varnish/doc$ git push | |
| Counting objects: 7, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (4/4), done. | |
| Writing objects: 100% (4/4), 470 bytes, done. | |
| Total 4 (delta 3), reused 0 (delta 0) | |
| remote: /usr/lib/python2.6/dist-packages/trac/loader.py:41: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages) | |
| remote: pkg_resources.Environment(search_path) | |
| remote: /usr/lib/python2.6/dist-packages/trac/loader.py:68: UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages) | |
| remote: entry.load(require=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ubuntu | |
| 02:03 <+leftyfb> KristianL: got a friend of yours over in #linuxhelp that we can't understand :) | |
| #linuxhelp | |
| 02:04 -!- Irssi: Join to #linuxhelp was synced in 1 secs | |
| 02:04 < KristianL> leftyfb: hmm? | |
| 02:04 < leftyfb> KristianL: silentw1z | |
| 02:05 < leftyfBX> 07:57PM <silentw1z> når jeg kjører apt-get install vncserver så får jeg opp " Klarte ikke å finne pakken vncserver" | |
| 02:05 < leftyfBX> 07:57PM <silentw1z> må vel ha en bedre source.list | |
| 02:05 < KristianL> ok, this is how you do it: |