This file contains 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
export HISTCONTROL=erasedups | |
export HISTSIZE=10000 | |
export HISTFILESIZE=10000 |
This file contains 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
package main | |
import "fmt" | |
func main() { | |
var ch = make(chan int) | |
close(ch) | |
var ch2 = make(chan int) | |
go func() { |
This file contains 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
package main | |
import ( | |
"fmt" | |
"net" | |
"time" | |
) | |
func main() { | |
go server() |
This file contains 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
diff --git a/target/linux/ramips/dts/RT-AC52U-B1.dts b/target/linux/ramips/dts/RT-AC52U-B1.dts | |
new file mode 100644 | |
index 0000000..aad625c | |
--- /dev/null | |
+++ b/target/linux/ramips/dts/RT-AC52U-B1.dts | |
@@ -0,0 +1,184 @@ | |
+/dts-v1/; | |
+ | |
+#include "mt7620a.dtsi" | |
+ |
This file contains 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/bash | |
ROOTDIR=/root/update/root/ | |
PARENT_COMMAND=$(ps -o comm= $PPID) | |
#echo parent is --${PARENT_COMMAND}-- | |
if [ "$PARENT_COMMAND" != "unshare" ]; then | |
echo "Entering mount namespace..." | |
unshare -f -m bash $0 "$@" |
This file contains 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
equery hasuse -F "\$cp" python_targets_python3_8 | xargs emerge -pNvu1 |
This file contains 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/bash | |
# This will find big files and use dd to measure read throughput. | |
# Don't know how much the pipe is a bottleneck (64K is the greater chunk the pipe can support). | |
find -size +10M -exec dd if={} bs=64K 2>/dev/null \; | dd of=/dev/null bs=64K |
This file contains 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
[gentoo] | |
auto-sync = yes | |
location = /usr/portage | |
sync-type = git | |
sync-uri = https://github.com/gentoo-mirror/gentoo.git | |
sync-depth = 1 | |
sync-git-clone-extra-opts = -b master | |
sync-git-verify-commit-signature = true |
This file contains 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
$toconvert="S-1-5-21-254888874-1234533502-2544551582-1002" | |
$sid = New-Object System.Security.Principal.SecurityIdentifier($toconvert) | |
$c = New-Object 'byte[]' $sid.BinaryLength | |
$sid.GetBinaryForm($c, 0) | |
echo (($c|ForEach-Object ToString X2) -join '') |
This file contains 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
cd /var/db/pkg/ | |
find -iname env*.bz2 -exec sh -c "bzcat {} | grep CC=\\\"clang > /dev/null || echo {} | egrep -o '(([a-z]|-)+\/\w+)' " \; |
NewerOlder