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/sh | |
# | |
# whatthecommit - Random commit message generator | |
# | |
# Show random commit message from http://whatthecommit.com/. | |
# | |
# Seungwon Jeong <[email protected]> | |
# | |
# Copyright 2011 by Seungwon Jeong |
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
// go get github.com/jaypipes/ghw | |
// go get github.com/pkg/errors | |
package main | |
import ( | |
"github.com/jaypipes/ghw" | |
"github.com/pkg/errors" | |
"crypto/md5" | |
"encoding/hex" |
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
/* | |
This is about format a large floating number to a readable currency string | |
Ex - 1684748483.3454 | |
Output - 1,684,748,483.34 | |
You can customize the decimals part to your needs. | |
*/ | |
func FormatString(number float64) string{ | |
data := fmt.Sprintf("%.2f",number) | |
temp := strings.Split(data,".") |
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
module microphone | |
go 1.14 | |
require ( | |
github.com/go-ole/go-ole v1.2.4 | |
github.com/moutend/go-wca v0.2.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
/*Its a simple implementation where follows round robin format to access proxies in thread or normal method*/ | |
/*The proxies should be loaded in format ip:port:user:pass*/ | |
import ( | |
"sync" | |
"fmt" | |
"os" | |
"bufio" | |
"strings" | |
) |
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
import ( | |
"os" | |
"bufio" | |
) | |
func readFileByLine(filename string) (error,[]string){ | |
data := []string{} | |
file, err := os.Open(filename) | |
if err != nil{ | |
return err,[]string{} |
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
#!/usr/bin/env python3 | |
import concurrent.futures.thread | |
import sys | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
def remove_file(path): | |
print('Removing file %s' % path) |