Skip to content

Instantly share code, notes, and snippets.

View topisani's full-sized avatar

Tobias Pisani topisani

  • Move Innovation
  • Denmark
View GitHub Profile
@topisani
topisani / bwclean2.py
Last active June 24, 2024 05:58 — forked from serif/bwclean2.py
Bitwarden Duplicate Entry Remover v2
#!/usr/bin/env python3
import sys
import csv
import hashlib
import json
from urllib.parse import urlparse
from datetime import datetime
def main(argv):
if len(argv) < 1:
@topisani
topisani / settings.json
Last active November 10, 2019 15:30
vs code flatblue-dark
"window.menuBarVisibility": "toggle",
"editor.tokenColorCustomizations": {
"comments": {
"foreground": "#766f6f",
"fontStyle": "italic"
},
"functions": "#ffe000",
"variables": "#178ca6",
"types": "#07b0ff",
"strings": "#71ba51",
# flatblue theme
%sh{
bg0="rgb:0d1011"
bg="rgb:18191c"
bg1="rgb:1E1F21"
bg2="rgb:212126"
bg3="rgb:323037"
bg4="rgb:3c383c"
# Global settings
colorscheme flatblue
try %{
addhl global number_lines -hlcursor -separator ' '
addhl global show_matching
set global ui_options ncurses_assistant=none
map -docstring "Open shell" global user <ret> ':repl<ret>'
}
@topisani
topisani / lsp-cquery.el
Created November 17, 2017 17:42
Cquery for emacs
;;; lsp-cquery.el --- cquery support for lsp-mode -*- lexical-binding: t; -*-
(require 'cc-mode)
(require 'lsp-mode)
(defcustom lsp-cquery-executable
"cquery"
"The cquery executable."
:type '(string)
:group 'lsp-mode)
@topisani
topisani / tp_titlebar.lua
Created July 24, 2016 02:47
Awesome titlebars
local awful = require("awful")
local abutton = require("awful.button")
local beautiful = require("beautiful")
local wibox = require("wibox")
local naughty = require("naughty")
local textbox = require("wibox.widget.textbox")
local tp_titlebar = {
widget = {},
layout = {},
visibility = {}
@topisani
topisani / gulpfile.js
Last active September 16, 2022 18:23
Gulp build script to build sass and upload to an ftp server. has a watch task.
// Web build script. Builds sass and uploads to an ftp server.
// Place source to be uploaded in a folder next to the script called src.
// Sass file is src/sass/style.scss and will become src/css/style.css
// will upload all files to the specified root
// Configuration for script
var config = {
host: 'example.com',
user: 'user',
password: 'fish123',
root: '/public_html'
@topisani
topisani / wordpoints.rb
Created October 22, 2015 17:35
Ruby script for a weird point system with words.
require 'yaml'
YAML::ENGINE.yamler='psych'
#Fordi ASCII-koderne tæller W med, og det har jane nok ikke gjort. Ellers må man tilføge dem.
LETTERS = {
'a' => 1,
'b' => 2,
'c' => 3,
'd' => 4,
'e' => 5,