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
#OS junk files | |
[Tt]humbs.db | |
*.DS_Store | |
#Visual Studio files | |
*.[Oo]bj | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
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
enum day_of_week_t { SUN, MON, TUES, WED, THURS, FRI, SAT }; | |
day_of_week_t calcDayOfWeek(unsigned int day, unsigned int month, unsigned int year) | |
{ | |
int Y = 0, y = 0, c = 0, m = 0, d = 0, w = 0; | |
// Check for vaild arguments | |
year = year % 10000; | |
if (month < 1 || month > 12) |
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
server { | |
listen 80; | |
listen [::]:80; | |
root <PATH_TO_DOCUMENT_ROOL>/html; | |
index index.php index.html index.htm; | |
server_name <HOSTNAME>.<DOMAIN_NAME>; | |
location / { |
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
server { | |
listen 80 ; | |
listen [::]:80; | |
server_name <HOSTNAME>.<DOMAINNAME>; | |
# Force redirection to secure site | |
return 301 https://$server_name$request_uri; | |
} |
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
server { | |
listen 80; | |
listen [::]:80; | |
root <PATH_TO_DOCUMENT_ROOT>/html; | |
index index.php index.html index.htm; | |
server_name www.<DOMAIN_NAME> <DOMAIN_NAME>; | |
location / { |
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
#!/usr/bin/env python | |
import sys, binascii | |
y = "your_password"; | |
# If they didn't provide a password on the command-line, use the hard coded one. | |
if len(sys.argv) > 1: | |
y = str(sys.argv[1]) |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Drawing; | |
using System.IO; | |
using System.Drawing.Imaging; | |
private static void MergeTiffs(List<Bitmap> bmps, string filename) | |
{ | |
// Save first bitmap to memory as TIFF |
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
# /usr/share/applications/jar-launcher.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Type=Application | |
Exec=java -jar %f | |
Icon=java | |
Name=jar-launcher | |
Comment=Launch a jar 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
server { | |
listen 80; | |
server_name <hostname>; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443; | |
server_name <hostname>; |
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: jenkins | |
roles: | |
- role: ansiblebit.oracle-java | |
oracle_java_set_as_default: yes | |
tasks: | |
- name: Ensure Jenkins Repository is Installed | |
yum_repository: | |
name: jenkins | |
state: present |
OlderNewer