# yum install -y iw
# iw dev wlan0 set power-save off
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
Font=DejaVu Sans Mono | |
FontHeight=12 | |
Columns=256 | |
Rows=80 | |
ScrollbackLines=102400000 | |
ClipShortcuts=yes | |
RightClickAction=paste | |
Term=xterm-256color | |
Answerback=xterm-256color | |
OpaqueWhenFocused=yes |
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 | |
curl -s https://1.1.1.1/cdn-cgi/trace | grep "ip=" | cut -d= -f 2 |
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 python3 | |
#-*- coding: utf-8 -*- | |
import sys | |
import requests | |
import json | |
from datetime import datetime | |
EMAIL='Your Email' | |
APIKEY='Your API Key from CloudFlare' |
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(m) { | |
function g(e) { | |
try { | |
if (navigator.plugins && navigator.plugins.length) | |
for (var t = 0; t < navigator.plugins.length; t++) { | |
var n = navigator.plugins[t]; | |
if (n.name.indexOf(e) >= 0) | |
return n.name + (n.description ? "|" + n.description : "") | |
} | |
} catch (r) {} |
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
<?php | |
function files_in($path, $types = 'f', $recursive = false) | |
{ | |
$files = array(); | |
//$path = realpath($path); | |
$dirs = new RecursiveDirectoryIterator($path); | |
$dirs->setFlags($dirs->getFlags() | FilesystemIterator::SKIP_DOTS); |
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
// http://stackoverflow.com/questions/18432577/stacked-tabs-in-bootstrap-3 | |
.tabs-below, .tabs-right, .tabs-left { | |
.nav-tabs { | |
border-bottom: 0; | |
} | |
} | |
.tab-content > .tab-pane, | |
.pill-content > .pill-pane { | |
display: none; |
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 <string> | |
#include <typeinfo> | |
#include <iostream> | |
int main() | |
{ | |
std::string s1("mark "), s2("liu"); | |
auto iter = s1.end(); | |
std::cout << "iter is a " << typeid(iter).name() << std::endl; | |
std::cout << "void is a " << typeid(void).name() << std::endl; |
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
using System; | |
using System.Windows.Forms; | |
using Excel = Microsoft.Office.Interop.Excel; | |
namespace WindowsApplication1 | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ |
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
<HTML><HEAD><TITLE>404 Not Found</TITLE> | |
</HEAD> | |
<BODY text=#000000 link=#0000ff bgColor=#ffffff onload=stuff()> | |
<H1>404 - Not Found</H1> | |
I'm sorry, dear visitor, but the requested URL was not found on this server. You can <a href="/" style="text-decoration:none;">back to homepage</a>. | |
<P> | |
<HR> | |
<SCRIPT language=Javascript> | |
var tl=new Array( |
NewerOlder