Skip to content

Instantly share code, notes, and snippets.


Tom Cocking Tombo1001

View GitHub Profile
Tombo1001 / exportbrave.ps1
Last active Jan 21, 2022 — forked from irlperu/exportchrome.ps1
Export Brave Browser Bookmarks
View exportbrave.ps1
#Path to chrome bookmarks
$pathToJsonFile = "$env:localappdata\BraveSoftware\Brave-Browser\User Data\Default\Bookmarks"
$htmlOut = 'C:\temp\BraveBookmarks.html'
$htmlHeader = @'
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!--This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
Tombo1001 /
Last active Jan 19, 2021
Writing to an InfluxDB server with Python3
from datetime import datetime
from influxdb import InfluxDBClient
def func_log(unit, kind, value):
client = InfluxDBClient(host='', port=8086)
json_body = [
Tombo1001 / gist:5025797
Last active Dec 12, 2020
Taxi Rank Code #stage1
View gist:5025797
#include <stdio.h>
#define MAX_SIZE 100
void push ( int a[ ], int *top , int x);
int pop ( int a[ ], int *top);
void print ( int a[ ], int top );
int exit( );
int initialise( );
Tombo1001 / gist:4951814
Last active Dec 13, 2015
Basic arrays in C
View gist:4951814
#include <stdio.h>
void main()
int a[10], i, j, k;
for (i=0; i<=9; i++)