Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name UniFI Video Automatic Login
// @namespace http://tampermonkey.net/
// @version 0.1
// @autho Henrik Karlsson
// @match https://192.168.0.21:7443/*
// @grant none
// @run-at document-idle
// @require https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js
// ==/UserScript==
# On a feature branch:
git rebase master
# When rebasing like above, "ours" refers to the changes made on master and "theirs" is the changes made on the feature branch
# When reaching a conflict in path/to/file:
# Discover changes that were made on the master branch since branching out
git log -p feature_branch..master path/to/file
git diff feature_branch...master path/to/file
#!/bin/sh
# Authors:
# - Moritz Warning <[email protected]> (2016)
# - Zhong Jianxin <[email protected]> (2014)
#
# See file LICENSE at the project root directory for license information.
#
# i3status.conf should contain:
# general {
call plug#begin('~/.vim/plugged')
Plug 'kassio/neoterm'
Plug 'editorconfig/editorconfig-vim'
Plug 'tpope/vim-vinegar'
call plug#end()
:tnoremap <Esc> <C-\><C-n>
const createTree = (module, usedModules) => {
const treeEntry = output.tree[module];
if (!treeEntry) {
return `[${module} tree entry not found]`;
}
if (!treeEntry.depMap) {
return `[${module} has no dep map]`;
}
Setting breakpad minidump AppID = 740
Using breakpad crash handler
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/root/.steam/sdk32/steamclient.so
with error:
/root/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
'use strict'
;(() => {
const vaalOrbImage = 'https://pathofexile.gamepedia.com/media/pathofexile.gamepedia.com/2/2c/Vaal_Orb_inventory_icon.png'
const vaalableSelectors = [
'a', '.navbar', '.portrait', '.site-header', 'main', '.site-slogan', '.byline', 'p', 'div', 'img', 'nav', 'article', 'hr'
];
const randint = (min, max) => Math.floor(min + Math.random() * (max - min))
const TeamSpeakClient = require('node-teamspeak')
const util = require('util')
const bluebird = require('bluebird')
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
const nyancat = [
[
'▒▒▒▒▒▒▒█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█',
'▒▒▒▒▒▒▒█░▒▒▓▒▒▒▒▒▒▒▒▒▄▄▒▓▒▒░█░▄▄',
const TeamSpeakClient = require('node-teamspeak')
const util = require('util')
const bluebird = require('bluebird')
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
const nyancat = [
[
'▒▒▒▒▒▒▒█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█',
'▒▒▒▒▒▒▒█░▒▒▓▒▒▒▒▒▒▒▒▒▄▄▒▓▒▒░█░▄▄',
#!/usr/bin/env python
# cycle-workspace
# Moves the currently active workspace to the next active display
# Depends on i3-py (`pip install i3-py`)
import i3
# figure out what is on, and what is currently on your screen.
focused_workspace = list(filter(lambda s: s['focused'], i3.get_workspaces()))[0]