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
# Generated by Powerlevel10k configuration wizard on 2022-10-04 at 21:46 CEST. | |
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 21094. | |
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, | |
# slanted separators, slanted heads, slanted tails, 1 line, sparse, many icons, concise, | |
# transient_prompt, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with powerline prompt style with colorful background. | |
# Type `p10k configure` to generate your own config based on it. | |
# |
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
apt-get update | |
apt-get install git curl fish | |
curl -L https://get.oh-my.fish | fish | |
usermod -s /usr/bin/fish peter | |
omf install agnoster | |
omf theme agnoster |
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
const fadeText = function () { | |
function getRandomColor () { | |
return '#'+Math.floor(Math.random()*16777215).toString(16); | |
} | |
const words = 'You shall not debug I am a servant of the JavaScript wielder of the flame of V8. You cannot Debug. The dark fire will not avail you flame of Google. Go back to the IE! You cannot pass.'.split(' '); | |
var div = document.createElement('div'); | |
div.setAttribute('style', 'position: fixed; right: 10px; bottom: 10px;z-index: 100000; font-size: 100px; font-weight: bold;'); | |
document.body.appendChild(div); | |
function fade(initial, step, delay, callback) { | |
div.style.display = 'block'; |
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
const addVideo = function () { | |
var video = ['HP362ccZBmY', 'oHg5SJYRHA0'].sort(() => Math.random() - 0.5).pop(); | |
var div = document.createElement('div'); | |
div.innerHTML = '<iframe width="560" height="315" src="https://www.youtube.com/embed/' + video + '?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'; | |
div.setAttribute('style', 'position: fixed; right: 10px; bottom: 10px;z-index: 100000'); | |
document.body.appendChild(div); | |
} | |
const fadeText = function () { | |
function getRandomColor () { |
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
@ECHO 'Binding .gitconfig to current windows .gitconfig' | |
mklink C:\msys64\home\%username%\.gitconfig C:\Users\%username%\.gitconfig | |
@ECHO 'Binding .ssh to current windows .ssh' | |
mklink /D C:\msys64\home\%username%\.ssh C:\Users\%username%\.ssh | |
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
Contains the following javascript tools: | |
Break when property changes | |
Break when property changes (works on arrays) | |
Save object as json to disk | |
Dumpt cookies to console | |
Flatten javascript array | |
Flatten recusrive object | |
Get recusrive parent | |
Group array by property | |
Sort orbject |
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
#example configuration | |
sensor: | |
- platform: trafikverket | |
api_key: !secret trafikverket_api_key | |
trains: | |
- name: "Train to work" | |
from: Sölvesborg | |
to: Kristianstad C | |
time: "07:28" | |
- name: "Train from work early" |
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
Add-Type -TypeDefinition @" | |
public enum AggregationType | |
{ | |
Min, | |
Max, | |
Sum, | |
Avg | |
} | |
"@ |
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
var isDevBuild = process.argv.indexOf('--env.prod') < 0; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var extractCSS = new ExtractTextPlugin('vendor.css'); | |
module.exports = { | |
resolve: { | |
extensions: [ '', '.js' ] | |
}, |
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
cinst fiddler4 | |
cinst dotpeek | |
cinst Sysinternals | |
cinst beyondcompare | |
cinst ilspy | |
cinst 7zip.install | |
cinst paint.net | |
cinst Inkscape | |
cinst filezilla | |
cinst tortoisesvn |