$ ssh <mydomain.com>
$ dokku apps:create
This file contains hidden or 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 | |
# Created by fibergames.net // Loranth Moroz // v.0.5 | |
# Updated by yukicreative // Jay Vogt // v.0.6 | |
# Updated by nicbet // Nicolas Bettenburg // v.0.7 | |
# Required tools to run this script as is: curl (https://curl.haxx.se/) & jq (https://stedolan.github.io/jq/) | |
# This is to be used with crontab -> example entry to run it every 3hours: | |
# 0 */3 * * * sh /path/to/script/dnsupdater.sh | |
# Don't forget to make it executable: chmod +x /path/to/script/dnsupdater.sh |
This file contains hidden or 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
/* Progress Bars */ | |
$step: 1; | |
$loops: round(100 / $step); | |
$increment: 360 / $loops; | |
$half: round($loops / 2); | |
$backColor: #fafafa; | |
.progress-circle { | |
position: relative; | |
float: left; |
This file contains hidden or 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 | |
wget http://launchpadlibrarian.net/365856925/multiarch-support_2.27-3ubuntu1_amd64.deb | |
wget http://launchpadlibrarian.net/353281752/libsass0_3.4.8-1_amd64.deb | |
wget http://launchpadlibrarian.net/344203197/sassc_3.4.5-1_amd64.deb | |
sudo dpkg -i multiarch-support_2.27-3ubuntu1_amd64.deb | |
sudo dpkg -i libsass0_3.4.8-1_amd64.deb | |
sudo dpkg -i sassc_3.4.5-1_amd64.deb |
This file contains hidden or 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
$sizes: -20,-19,-18,-18,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20; | |
@media screen { | |
@each $size in $sizes { | |
.pb-#{$size}-widescreen { | |
@include widescreen { padding-bottom: #{$size}rem !important; } | |
} | |
.pt-#{$size}-widescreen { | |
@include widescreen { padding-top: #{$size}rem !important; } | |
} | |
.pl-#{$size}-widescreen { |
This file contains hidden or 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
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * <command to execute> |
This file contains hidden or 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
# config/initializers/asset_url_processor.rb | |
# See https://github.com/rails/cssbundling-rails/issues/22 | |
class AssetUrlProcessor | |
def self.call(input) | |
context = input[:environment].context_class.new(input) | |
data = input[:data].gsub(/url\(\s*["']?(?!(?:\#|data|http))([^"'\s)]+)\s*["']?\)/) do |_match| | |
"url(#{context.asset_path($1)})" | |
end | |
{data: data} |
This file contains hidden or 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 | |
# See https://superuser.com/a/1649000 | |
# disable the service | |
launchctl disable gui/$(id -u)/com.microsoft.update.agent | |
# check that the service is disabled | |
launchctl print-disabled gui/$(id -u) | grep microsoft |
This file contains hidden or 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
module Parameterized | |
extend ActiveSupport::Concern | |
# included do | |
# attr_accessor :params | |
# end | |
module ClassMethods | |
# Provide the parameters to the job in order to use them in the instance methods and callbacks. | |
# |
OlderNewer