Skip to content

Instantly share code, notes, and snippets.

David Kryzaniak davidkryzaniak

Block or report user

Report or block davidkryzaniak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidkryzaniak
davidkryzaniak / lightsail-docker.sh
Created Dec 3, 2016
Auto-Install Docker on AWS Lightsail
View lightsail-docker.sh
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install -y docker-engine
sudo service docker start
sudo docker pull php:5.6-apache
@davidkryzaniak
davidkryzaniak / getnoticed-themecustomizer-customcss-customcss.css
Created Sep 21, 2016
Get Noticed! Theme, FontAwesome icons in the Share Bar
View getnoticed-themecustomizer-customcss-customcss.css
/* Chrome requires that @import's start at the beginning of a style block. This hack ensures the font loads */
</style><style>@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css);
/* switch the font from gntsocial to fontawesome */
.getnoticed-sharebar-modern .sharebar a:before { font-family: "FontAwesome" }
.getnoticed-sharebar-modern .sharebar a.share-buffer:before { content: "\f2ae"; }
.getnoticed-sharebar-modern .sharebar a.share-email:before { content: "\f0e0"; }
.getnoticed-sharebar-modern .sharebar a.share-facebook:before { content: "\f09a"; }
.getnoticed-sharebar-modern .sharebar a.share-googleplus:before { content: "\f0d5"; }
View rebecca-black.bat
chrome --kiosk https://www.youtube.com/embed/kfVsfOSbJY0?rel=0&autoplay=1
View gist:89e084fa14eb66b9a7ee
find . -mindepth 1 -type f -exec chmod 644 {} \;
find . -mindepth 1 -type f -name "*.php" -exec chmod 600 {} \;
find . -mindepth 1 -type d -exec chmod 755 {} \;
View dash-send-tweet-endpoint.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$ua = $_SERVER['HTTP_USER_AGENT'];
//User agent must be set to "**MY-SECRET-USER-AGENT**" and the ?secret must be "key"
if("**MY-SECRET-USER-AGENT**" == $ua && isset($_GET['secret']) && "key" == $_GET['secret']){
View ssh connect
Davids-MacBook-Pro:~ davidkryzaniak$ ssh root@192.168.1.1
root@192.168.1.1's password:
Tomato v1.28.0000 MIPSR2-108 K26 IPv6-VPN
root@unknown:/tmp/home/root# vi amazon-dash-watcher.sh
View amazon-dash-watcher.sh
#!/bin/sh
# The mac address of your Dash. Like: 74:75:48:b9:80:fb
MACADDR=
# Number of seconds to wait in between checks
INTERVAL=3
# Number of seconds to sleep after the button is pressed
WAITFOR=60
View Google Map
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript">
var locations = [
['Trip to X - Nov, 4th 2014', 47.06976, 15.43154, 1],
['Trip to Y - Oct, 1st 2012', 47.06975, 15.43116, 2],
['Trip to X - Oct, 1st 2012', 47.09399, 15.40548, 3],
['Trip to A - Oct, 1st 2012', 47.06993, 15.40727, 4],
['Trip to B - Oct, 1st 2012', 47.06934, 15.45888, 5],
['Trip to C - Oct, 1st 2012', 47.04572, 15.43234, 6],
['Trip to D - Oct, 1st 2012', 47.08350, 15.43212, 7],
View printer-friendly.css
@media print{
html::before{content:'Really?! Printing is so 1994...'}
body{display:none}
}
View social.css
.twitter > i{ background-color: #00ACED; }
.facebook > i{ background-color: #3B5998; }
.rssfeed > i{ background-color: #FA9934; }
.pinterest > i{ background-color: #CB2027; }
.google > i{ background-color: #D14836; }
.googleplus > i{ background-color: #D14836; }
.linkedin > i{ background-color: #0072B3; }
.email > i{ background-color: #7199DF; }
.youtube > i{ background-color: #C4302B; }
.vimeo > i{ background-color: #44BBFF; }
You can’t perform that action at this time.