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
#light-switch { | |
position: fixed; | |
top: -1.5em; | |
right: 1em; | |
text-align: center; | |
cursor: pointer; | |
z-index: 1021; | |
} | |
#light-switch div.rounded-circle { |
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 | |
# Monitor file for changes and send email notification | |
# Usage: ./logmond.sh /path/to/file [email protected] | |
usage() { | |
echo "Usage: ./logmond.sh /path/to/file [email protected]" | |
} | |
if [ "$#" -ne 2 ]; then | |
usage |
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
<?php | |
$sku = 'PBSEXP50'; | |
$url = 'https://www.fitnessdepot.ca/WebService/store-inventory.php?store_id=6&price=549.88&sku=' . $sku; | |
// List of nodes I don't want to check, some store inventory is not up to date | |
$ignoreNodes = [ | |
'Oakville', | |
'Call or Email to [email protected]' | |
]; | |
$foundNodes = []; |
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
#include <stdio.h> | |
#include <string.h> | |
#include <regex.h> | |
#define TEST_REGEX "^.*\\/([a-zA-Z_.]*)\\.log : [A-Z]{3} [0-9]{2}\\/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{6} .* : (.*)$" | |
#define MAX_REGEX_MATCHES 5 | |
#define MAX_STRING_SIZE 1000 | |
#define MAX_ERR_LENGTH 50 | |
/** |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"path/filepath" | |
"regexp" | |
) | |
func main() { |
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
# Work | |
Host github.com-work | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/id_rsa_work | |
# Personal | |
Host github.com-personal | |
HostName github.com | |
User git |