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
# https://wiki.archlinux.org/title/ZFS#Unlock/Mount_at_boot_time:_systemd | |
[Unit] | |
Description=Load %I encryption keys | |
Before=systemd-user-sessions.service zfs-mount.service | |
After=zfs-import.target | |
Requires=zfs-import.target | |
DefaultDependencies=no | |
[Service] | |
Type=oneshot |
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 PrusaSlicer 2.0.0+linux64 on 2019-09-13 at 08:47:34 | |
bed_temperature = 90 | |
bridge_fan_speed = 50 | |
compatible_printers = | |
compatible_printers_condition = | |
compatible_prints = | |
compatible_prints_condition = | |
cooling = 1 | |
disable_fan_first_layers = 3 | |
end_filament_gcode = "; Filament-specific end gcode" |
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
- hosts: all | |
tasks: | |
- name: Get SSH Keys | |
uri: | |
url: https://api.github.com/users/tjbenator/keys | |
method: GET | |
return_content: yes | |
register: ssh_keys | |
- name: Add keys to authorized_keys file |
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
#!/bin/bash | |
if [ ! -f "$@" ]; then | |
echo 'No valid file path given.' | |
echo | |
echo 'Usage: ' | |
echo "./$(basename $0) pathtofile" | |
exit 0 | |
fi | |
path_to_file=$(realpath "$@") |
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
### Keybase proof | |
I hereby claim: | |
* I am tjbenator on github. | |
* I am tjbenator (https://keybase.io/tjbenator) on keybase. | |
* I have a public key ASDhLRc4Vzzh7E_GQb3SEdMHpbDzNdw3ZvatOXSSdnWm9go | |
To claim this, I am signing this object: |
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
PowerShell.exe -ExecutionPolicy Bypass -Command "& { get-process PROCESSNAME -ErrorAction SilentlyContinue | Sort-Object StartTime -descending | select Id, StartTime -skip 1 | stop-process }" |
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
#!/bin/bash | |
#Where Variety is located | |
VARIETY=/opt/extras.ubuntu.com/variety/bin/variety | |
FAVORITES=~/.config/variety/Favorites | |
#Get current wallpaper's name | |
FAV=$(basename $($VARIETY --show-current| sed -n 2p)) | |
#Check if the favorite already exists | |
if [ -f $FAVORITES/$FAV ]; then |
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 off | |
echo %%0 %0 | |
echo %%~0 %~0 | |
echo %%n0 %n0 | |
echo %%x0 %x0 | |
echo %%~n0 %~n0 | |
echo %%dp0 %dp0 | |
echo %%~dp0 %~dp0 | |
pause |
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
public class ColorConvert { | |
public static String Convert(String sentence) { | |
sentence = sentence.replaceAll("&0", "§0"); | |
sentence = sentence.replaceAll("&1", "§1"); | |
sentence = sentence.replaceAll("&2", "§2"); | |
sentence = sentence.replaceAll("&3", "§3"); | |
sentence = sentence.replaceAll("&4", "§4"); | |
sentence = sentence.replaceAll("&5", "§5"); | |
sentence = sentence.replaceAll("&6", "§6"); | |
sentence = sentence.replaceAll("&7", "§7"); |
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
<# | |
.SYNOPSIS | |
Enable/Disable Microsoft Lync | |
.DESCRIPTION | |
Enable/Disable Microsoft Lync's "Auto Run When Logon To Windows" and "Auto Open Main Window When Startup". | |
.NOTES | |
Author : Travis Beck | |
Last Modified : 2014/05/01 | |
#> |
NewerOlder