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.Configuration; | |
| using System.Data; | |
| using System.DirectoryServices; | |
| using System.Text; | |
| using Oracle.ManagedDataAccess.Client; | |
| namespace ORACLE_LDAP_TEST | |
| { | |
| class Program |
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
| /** | |
| * Fetch connection table from ASUS RT-AC88U router and serialize it do js object (JSON) | |
| */ | |
| import fetch from 'node-fetch'; | |
| import * as cheerio from 'cheerio'; | |
| const account = "<username>:<password>"; | |
| const router_ip = "<router ip>"; |
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.Linq; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var obj = new Test() | |
| { | |
| A = "HELLO", |
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
| func printProgressBar(iteration, total int, prefix, suffix string, length int, fill string) { | |
| percent := float64(iteration) / float64(total) | |
| filledLength := int(length * iteration / total) | |
| end := ">" | |
| if iteration == total { | |
| end = "=" | |
| } | |
| bar := strings.Repeat(fill, filledLength) + end + strings.Repeat("-", (length-filledLength)) | |
| fmt.Printf("\r%s [%s] %f%% %s", prefix, bar, percent, suffix) |
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 ( | |
| "flag" | |
| "log" | |
| nhttp "net/http" | |
| "os" | |
| "runtime" | |
| "../cycletls" |
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
| // get in radius packet attribute bytes = b[20:length] | |
| func getNASId(b []byte) (string, error) { | |
| for len(b) > 0 { | |
| if len(b) < 2 { | |
| return "", errors.New("short buffer") | |
| } | |
| length := int(b[1]) | |
| if length > len(b) || length < 2 || length > 255 { | |
| return "", errors.New("invalid attribute length") | |
| } |
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 ( | |
| "bytes" | |
| "encoding/json" | |
| "errors" | |
| "net/http" | |
| "os" | |
| "strconv" | |