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/bash | |
vip=172.21.15.128 | |
stime=15 | |
run_wrk_short() { | |
echo "==== short connection: with $1 task, $2 connection ==" | |
wrk2 -H "Connection: Close" -t $1 -c $2 -d 30s -R 30000 http://$vip --latency | |
sleep $stime | |
} |
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 | |
#if use drive which if=ide, set root to /dev/sda1 | |
#if use drive which if=virtio, set root to /dev/vda1 | |
P9PATH=~/work/xxxx-repo/xxxx/test | |
~/work/qemu-run-arm64/qemu/aarch64-softmmu/qemu-system-aarch64 \ | |
-s -cpu cortex-a57 -machine virt \ | |
-trace enable=wd_dummy_v2_* \ |
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
# -*- coding: utf-8 -*- | |
from netaddr import IPNetwork | |
import click | |
@click.command() | |
@click.argument('cidr') | |
@click.option('--seperator', '-s', default=',', help='List seperator.') | |
@click.option('--file', '-f', default=False, help='txt file output path.') | |
@click.option('--range/--no-range', default=False, help='Output first and last IP Addresses') |
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/bash | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
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
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc | |
index f637193e644f..60f9f5cd3644 100644 | |
--- a/content/browser/frame_host/navigator_impl.cc | |
+++ b/content/browser/frame_host/navigator_impl.cc | |
@@ -147,6 +147,10 @@ void NavigatorImpl::CheckWebUIRendererDoesNotDisplayNormalURL( | |
->GetController() | |
->GetBrowserContext(), | |
url); | |
+ bool whitelistedSurfingkeys = url.host() == "gfbliohnnapiefjpjlpjnehglfpaknnc"; | |
+ if (whitelistedSurfingkeys) { |
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/git/git/tree/e83c5163316f89bfbde7d9ab23ca2e25604af290 |
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
# USAGE: | |
# s bookmarkname - saves the curr dir as bookmarkname | |
# g bookmarkname - jumps to the that bookmark | |
# g b[TAB] - tab completion is available | |
# l - list all bookmarks | |
# save current directory to bookmarks | |
touch ~/.sdirs | |
function s { | |
cat ~/.sdirs | grep -v "export DIR_$1=" > ~/.sdirs1 |
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! SetCursorStyle() | |
if &term =~ "xterm\\|rxvt" | |
" use a | cursor in insert mode | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
" use a rectangle cursor otherwise | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
" reset cursor when vim exits | |
autocmd VimLeave * silent !echo -ne "\<Esc>]50;CursorShape=0\x7" |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#define _XOPEN_SOURCE | |
int main(void) | |
{ | |
char *passwd; | |
char key[] = "123456"; | |
passwd = crypt(key, "$6$y9cP0qlmDYgBk6OZ$"); |
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
/* | |
** Copyright 2000 | |
** by | |
** The Board of Trustees of the | |
** Leland Stanford Junior University. | |
** All rights reserved. | |
** | |
** | |
** Disclaimer Notice | |
** |