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
# Overwrite configs depending on version | |
run-shell "bash ~/.tmux/verify_tmux_version.sh" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
--- | |
Language: Cpp | |
# BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: false | |
AlignTrailingComments: true | |
AllowAllParametersOfDeclarationOnNextLine: false | |
AllowShortBlocksOnASingleLine: false |
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/bash | |
PLATFORM=linux-x86_64 | |
BIN_LIST=(analyzer manager recorder rtsp-server vsd) | |
LIB_LIST=(libvs/libvs.so \ | |
analyzer/import/linux-x86/bir_core/lib/*.so* \ | |
analyzer/import/linux-x86/iod_core/lib/*.so* \ | |
analyzer/import/linux-x86/IVAStreamLib/*.so*) |
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 hashlib | |
import os | |
import base64 | |
from datetime import datetime | |
username = "admin" | |
password = "12345" | |
# created = datetime.now().strftime("%Y-%m-%dT%H:%M:%S.000Z") |
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
int recursive_mkdir(const char *dir, mode_t mode) | |
{ | |
assert(dir && *dir); | |
// already exist | |
if (access(dir, F_OK) == 0) { | |
return 0; | |
} | |
size_t len; |
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
#ifndef _WIN32 | |
typedef struct _GUID { | |
uint32_t Data1; | |
uint16_t Data2; | |
uint16_t Data3; | |
uint8_t Data4[8]; | |
} GUID; | |
#endif | |
GUID StringToGuid(const std::string& str) |
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/python | |
import re | |
import sys | |
found_result = "false" | |
#parse format: | |
# T:49 ( 4518) P:31 I:4243600 C: 2 Min: 8 Act: 8 Avg: 8 Max: 9 | |
parser = re.compile("(?P<T>\d+)\D+(?P<T1>\d+)\D+(?P<P>\d+)\D+(?P<I>\d+)\D+(?P<C>\d+)\D+(?P<Min>\d+)\D+(?P<Act>\d+)\D+(?P<Avg>\d+)\D+(?P<Max>\d+)") |
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
[ 134.430000] usb 1-1: new high speed USB device number 4 using sv887x-ehci | |
[ 134.460000] IAA watchdog: status 1000 cmd 10b44 | |
[ 134.580000] scsi2 : usb-storage 1-1:1.0 | |
[ 134.590000] $$ USB driver: usb-storage | |
[ 135.660000] scsi 2:0:0:0: Direct-Access SanDisk SanDisk Cruzer 8.02 PQ: 0 ANSI: 0 CCS | |
[ 135.680000] sd 2:0:0:0: [sda] Attached SCSI removable disk | |
[ 135.690000] sd 2:0:0:0: Attached scsi generic sg0 type 0 | |
[ 135.710000] sda: detected capacity change from 8036285952 to 0 |