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
import sys | |
def redact_log(file_name): | |
new_file_name = file_name + ".redacted.log" | |
print("start to redact_log file=", file_name, "new file=", new_file_name) | |
f1 = open(file=file_name, mode="r") | |
f2 = open(file=new_file_name, mode="w") | |
for line in f1.readlines(): | |
if "argument" in line: |
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
Go 22 hrs 19 mins โโโโโโโโโโโโโโโโโโโโโ 65.9% | |
Python 2 hrs 44 mins โโโโโโโโโโโโโโโโโโโโโ 8.1% | |
Bash 2 hrs 34 mins โโโโโโโโโโโโโโโโโโโโโ 7.6% | |
YAML 2 hrs 18 mins โโโโโโโโโโโโโโโโโโโโโ 6.8% | |
Makefile 1 hr 52 mins โโโโโโโโโโโโโโโโโโโโโ 5.5% |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"github.com/pingcap/parser" | |
"github.com/pingcap/parser/ast" | |
"github.com/pingcap/parser/format" |
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 | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |