git reset HEAD~1 --soft
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 | |
TEMP_MIN=1000 | |
TEMP_MAX=10000 | |
RAW_TEMPERATURE=$(gsettings get org.gnome.settings-daemon.plugins.color night-light-temperature) | |
COLOR_TEMP=${RAW_TEMPERATURE//uint32/} | |
GRANULARITY=500 |
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 appMachine = Machine({ | |
id: "tabs", | |
initial: "search", | |
states: { | |
search: { | |
on: { | |
HELP: "help", | |
SETTINGS: "settings" | |
} | |
}, |
The following is the procedure I use on UNIX systems:
First, export all public certificates into a public keyring:
$ gpg --armor --export > pub.asc
Second, export all secret certificates into a secret keyring:
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
my fucking content |
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
my fucking content |
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
my fucking content |
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
[R, G, B] = min(ColorOneRed + ColorTwoRed, 255), min(ColorOneGreen + ColorTwoGreen, 255), min(ColorOneBlue+ ColorTwoBlue, 255) |
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
rsync -v --progress --ignore-existing -e ssh ./local/folder/* username@address:/directory/to/upload/to/ |
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
import sys, os | |
source = "./Source_Folder/" | |
destination = "./Destination_Folder/" | |
extension = ".xml" | |
fileList = [] | |
for root, folders, files in os.walk(source): | |
for f in files: | |
fileName, fileExtension = os.path.splitext(os.path.join(root,f)) |