Links:
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
| #!/usr/bin/env bash | |
| function proxy() { | |
| local PUBLIC_PORT="80" | |
| local LOCAL_HOST="127.0.0.1" | |
| local LOCAL_PORT="8080" | |
| mkfifo socket | |
| sudo nc -kl ${1=PUBLIC_PORT} 0<socket | nc ${2=LOCAL_HOST} ${3=LOCAL_PORT} 1>socket | |
| rm socket |
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
| ################################################################################ | |
| # | |
| # r8168 is the Linux device driver released for Realtek Gigabit Ethernet | |
| # controllers with PCI-Express interface. | |
| # | |
| # Copyright(c) 2014 Realtek Semiconductor Corp. All rights reserved. | |
| # | |
| # This program is free software; you can redistribute it and/or modify it | |
| # under the terms of the GNU General Public License as published by the Free | |
| # Software Foundation; either version 2 of the License, or (at your option) |
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
| /* Schrodinger equation explorer */ | |
| /* Michael Creutz */ | |
| /* [email protected] */ | |
| /* to compile: */ | |
| /* cc -O -L/usr/X11R6/lib schrodinger.c -lX11 -lm */ | |
| /* this solves the Schrodinger equation in a potential */ | |
| /* displays amplitude squared and the potential superposed */ |
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
| function nameof -a pid | |
| pidof | grep $pid | awk '{ print $3 }' | |
| end | |
| set n 0 | |
| function find-leaks | |
| sudo echo (printf "%*s" 4 "id")" | "(printf "%*s" 25 "name")" | "(printf "%*s" 10 "pid")" | "(printf "%*s" 5 "found leak?") | |
| for pid in (ps aux | grep -v root | awk '{ print $2 }' | sed '1d;p' | head -n 100) |
On macOS when you switch between versions of ocaml, or otherwise are having issues with ocamlfind, usually the reason has to do with that homebreww installed the num packaged separately and is a dependency of many packages, hence you also need to install or switch to the appropriate version for it using homebrew, the appropriate package name is ocaml-num.
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
| https://github.com/rust-lang/rust/tree/5679f5c55e15e4a42542c36b1abc86b469903d19 |
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
| global _main | |
| section .text | |
| _main: | |
| mov ecx, ebx | |
| add ebx, eax | |
| mov eax, ecx | |
| loop _main |
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
| global _main | |
| section .text | |
| _main: | |
| mov eax, edi | |
| ret |