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 | |
#==================================================================== | |
# sys-mon.sh | |
# | |
# Copyright (c) 2011, WangYan <[email protected]> | |
# All rights reserved. | |
# Distributed under the GNU General Public License, version 3.0. | |
# | |
# Monitor system mem and load, if too high, restart some service. | |
# |
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
/* | |
CSS stylesheet is based on Kevin Burke's Markdown.css project: | |
http://kevinburke.bitbucket.org/markdowncss | |
For code highlighting: | |
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/magula.min.css"> | |
<script src="http://yandex.st/highlightjs/6.1/highlight.js"></script> | |
<script src="http://yandex.st/highlightjs/6.1/languages/cpp.min.js"></script> | |
<script>hljs.initHighlightingOnLoad();</script> | |
*/ |
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 | |
# | |
### BEGIN INIT INFO | |
# Provides: set_rps | |
# Required-Start: $remote_fs $network $time $syslog | |
# Required-Stop: $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Set rps | |
# Description: Script for open rps |
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 | |
** |
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
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
# 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
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
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
#!/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 |
OlderNewer