Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@perXautomatik
perXautomatik / .gitattributes
Created August 29, 2022 13:02 — forked from djhaskin987/ .gitattributes
catch-all, end-all, One to Rule Them All, comprehensive gitattributes file; or, notes of my travels through other people's code.
# Use this line at your own risk
# * text=auto
# Editor save files
# (these should be in your gitignore)
*~ text
.*.sw[a-z] text
\#* text
.#* text
@perXautomatik
perXautomatik / LF.gitattributes
Created August 29, 2022 10:17 — forked from bsara/LF.gitattributes
General .gitattributes File
# Project
* text eol=lf
# Language Diffs
*.cs diff=csharp
*.css diff=css
@perXautomatik
perXautomatik / noop_sync.vbs
Created August 29, 2022 09:37 — forked from j1n6/noop_sync.vbs
Powershell to sync and push to remote git repository via Windows Scheduled Tasks
' Hack to workaround the Powershell Console popup running on a Windows Scheduled Task
' Powershell limitations: https://github.com/PowerShell/PowerShell/issues/3028
'
' Add this file in the same git root directory as the sync.ps1
'
Dim shell,command
Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject")
Dim sScriptDir : sScriptDir = oFSO.GetParentFolderName(WScript.ScriptFullName)
command = "powershell.exe -nologo -File " & sScriptDir & "\sync.ps1"
[user]
name = Arkadiusz Świerczek
email = arkadiusz.swierczek@gmail.com
[alias]
log-dog = log --decorate --oneline --graph
log-adog = log --all --decorate --oneline --graph
conflicts = diff --name-only --diff-filter=U
@perXautomatik
perXautomatik / setup_linux
Created July 4, 2022 09:36 — forked from secf4ult/setup_linux
Environment setup scripts.
#!/bin/sh
# Getting Ready
LOGDIR="~/log"
DOTFILES="~/.dotfiles"
# Update & Upgrade
sudo apt-get update -y
sudo apt-get upgrade -y
# Setup Prerequisite
@perXautomatik
perXautomatik / Profile.ps1
Created July 4, 2022 08:56 — forked from nimzo6689/Profile.ps1
Windows10用の環境構築時のコマンドまとめ
# -- Modules --------------------------------------------------
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster
Import-Module DockerCompletion
Import-Module scoop-completion
Import-Module PSColor
# ZLocation alternates your prompt function to track the location.
# If you have a custom prompt function in $profile, you should place Import-Module ZLocation after the prompt customization.
@perXautomatik
perXautomatik / profile.ps1
Created July 1, 2022 13:54 — forked from bradwilson/profile.ps1
Downloadable files for bradwilson.io/blog/prompt/powershell
######## POSH-GIT
# ... Import-Module for posh-git here ...
# Background colors
$GitPromptSettings.AfterStash.BackgroundColor = 0x5F5FAF
$GitPromptSettings.AfterStatus.BackgroundColor = 0x5F5FAF
$GitPromptSettings.BeforeIndex.BackgroundColor = 0x5F5FAF
$GitPromptSettings.BeforeStash.BackgroundColor = 0x5F5FAF
@perXautomatik
perXautomatik / profile.ps1
Created June 2, 2022 09:57 — forked from SteveL-MSFT/profile.ps1
PowerShell Prompt
#Requires -Version 7
# Version 1.2.10
# check if newer version
$gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {
@perXautomatik
perXautomatik / Jsonrdiff.ps1
Last active May 9, 2022 12:49 — forked from cchamberlain/rdiff.ps1
Recursively diffs 2 Json objects - Includes validation for paths and optional summary export. Requires PowerShell 3.0 or later.
#########################################################################
### USAGE: JSON-rdiff path/to/left,path/to/right [-s path/to/summary/dir] ###
### ADD LOCATION OF THIS SCRIPT TO PATH ###
#########################################################################
[CmdletBinding()]
param (
[parameter(HelpMessage="Stores the execution working directory.")]
[string]$ExecutionDirectory=$PWD,
[parameter(Position=0,HelpMessage="Compare two directories recursively for differences.")]
@perXautomatik
perXautomatik / installed.config
Last active April 20, 2022 08:46 — forked from Decicus/software.md
List of software I often install on new setups
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="7zip" version="21.7" />
<package id="7zip.install" version="21.7" />
<package id="accesschk" version="6.14" />
<package id="accessenum" version="1.32" />
<package id="adexplorer" version="1.51" />
<package id="adinsight" version="1.20" />
<package id="AdoptOpenJDKjre" version="16.0.1.901" />
<package id="adrestore" version="1.10" />