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
!function ($) { | |
$(function(){ | |
// fix sub nav on scroll | |
var $win = $(window) | |
, $nav = $('.subnav') | |
, navTop = $('.subnav').length && $('.subnav').offset().top - 40 | |
, isFixed = 0 |
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 | |
/* | |
PARSE CSVs OF SHIFT DATA | |
FORMAT: Note that spaces outside of < >'s are significant. ( )'s indicate optional | |
<Shift Number>, <start-end>(,<start-end>), <Days of the week off> | |
eg. Shift 16, 0700-1200,1700-2200, Mon,Tue,Wed off | |
eg. Shift 102, 0900-1930, Wed,Thu,Sat off |
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
SELECT | |
CONCAT( | |
'ALTER TABLE `', | |
TABLE_SCHEMA, | |
'`.`', | |
TABLE_NAME, | |
'` ADD `change-field-name` VARCHAR(5) NULL DEFAULT NULL', | |
';' | |
) AS sql_string | |
FROM |
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
SELECT user_id, | |
COUNT(*) AS num, | |
date_format(creation_date, '%Y%u') AS theweek, | |
FROM awards | |
WHERE issued = 0 | |
GROUP BY user_id, theweek | |
HAVING num >= 3; |
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 | |
/* | |
Log RedBullStratos Telemetry | |
Each telemetry data point is in the form: | |
[AltitudeImperial] => 103477.69028871 | |
[AltitudeIsValid] => 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
# PhpMyAdmin | |
location /phpmyadmin { | |
root /usr/share/; | |
index index.php index.html index.htm; | |
location ~ ^/phpmyadmin/(. \.php)$ { | |
try_files $uri =404; | |
root /usr/share/; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
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
# EXIF Exporter | |
# ============== | |
# Exports EXIF data in a nice string format. For example: | |
# "Canon EOS 650D, EF-S18-55mm f/3.5-5.6 IS II, 1/200, f/9, ISO 100" | |
# | |
# It will also copy it to your clipboard | |
# | |
# Make sure you have PIL or Pillow installed | |
# This probably means you'll need to run: | |
# pip install Pillow |
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
add chain=input protocol=tcp dst-port=22 src-address-list=ssh_blacklist action=drop comment="drop ssh brute forcers" disabled=no | |
add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage3 action=add-src-to-address-list address-list=ssh_blacklist address-list-timeout=10d comment="" disabled=no | |
add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage2 action=add-src-to-address-list address-list=ssh_stage3 address-list-timeout=1m comment="" disabled=no | |
add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage1 action=add-src-to-address-list address-list=ssh_stage2 address-list-timeout=1m comment="" disabled=no | |
add chain=input protocol=tcp dst-port=22 connection-state=new action=add-src-to-address-list address-list=ssh_stage1 address-list-timeout=1m comment="" disabled=no |
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
52 Photos: | |
- W1 Portrait: Self Portrait @due(7 Jan) | |
Start things off right with a "selfie"! Explore the self timer setting on your camera.\ | |
- W2 Landscape: Traditional Landscape @due(7 Jan + 1w) | |
Shoot a beautiful landscape and share it with the world. Find a nice foreground and don't forget the sky. | |
- W3 Artistic: Red @due(7 Jan + 2w) | |
Shoot whatever inspires you. Red should be the focus of the image. Don't be afraid to be creative. | |
- W4 Portrait: Headshot @due(7 Jan + 3w) | |
You shot a selfie, now shoot a "selfie" of someone else! | |
- W5 Landscape: Black and White @due(7 Jan + 4w) |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
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
"Week","Title","Description", "Deadline" | |
"1","Portrait: Self Portrait","Start things off right with a selfie! Explore the self timer setting on your camera.","07-Jan-17" | |
"2","Landscape: Traditional Landscape","Shoot a beautiful landscape and share it with the world. Find a nice foreground and don't forget the sky.","14-Jan-17" | |
"3","Artistic: Red","Shoot whatever inspires you. Red should be the focus of the image. Don't be afraid to be creative.","21-Jan-17" | |
"4","Portrait: Headshot","You shot a selfie, now shoot a selfie of someone else!","28-Jan-17" | |
"5","Landscape: Black and White","Look for a scene with great contrast that will make a great black and white.","04-Feb-17" | |
"6","Artistic: Candy","Your artistic interpretation this week should be inspired by something sweet. A great chance to play with macro photography.","11-Feb-17" | |
"7","Portrait: Faceless","Tell someone's story without showing their face.","18-Feb-17" | |
"8","Landscape: Wide Angle/Panorama","This is a great opportunity to explore panorama stitching |
OlderNewer