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
// https://firebase.google.com/docs/reference/security/storage | |
rules_version = '2'; | |
service firebase.storage { | |
match /b/{bucket}/o { | |
function checkFileSize() { | |
return true; | |
// return request.resource.size < 10 * 1024 * 1024; // 10MB file size limit | |
} | |
function hasPermissionToReadResource(resourceType, resourceId) { |
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
# update the base packages and add a non-sudo user | |
RUN apt-get update -y && apt-get upgrade -y && adduser --ingroup docker docker | |
# install python and the packages the your code depends on along with jq so we can parse JSON | |
# add additional packages as necessary | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip | |
RUN apt-get update && \ | |
apt-get install -y openjdk-8-jdk && \ | |
apt-get install -y ant xvfb libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth && \ |
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
/** | |
* @author ebidel@ (Eric Bidelman) | |
* License Apache-2.0 | |
* | |
* Shows how to use Puppeeteer's code coverage API to measure CSS/JS coverage across | |
* different points of time during loading. Great for determining if a lazy loading strategy | |
* is paying off or working correctly. | |
* | |
* Install: | |
* npm i puppeteer chalk cli-table |
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
docker exec -it sentry_container_id bash | |
echo "SENTRY_FEATURES['auth:register'] = False" >> /etc/sentry/sentry.conf.py | |
restart container |
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
*/30 * * * * say -v whisper "I am watching you" |
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
[ | |
{ | |
"id":"1", | |
"time_offset":"+00:00", | |
"name":"Africa\/Abidjan", | |
"time_offset_dst":"+00:00" | |
}, | |
{ | |
"id":"2", | |
"time_offset":"+00:00", |
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
/* Responsive hack - Bootstrap */ | |
@screen-xs: 300px; | |
@screen-xs-min: @screen-xs; | |
@screen-phone: @screen-xs-min; | |
// Small screen / tablet | |
// Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1 | |
@screen-sm: 620px; | |
@screen-sm-min: @screen-sm; | |
@screen-tablet: @screen-sm-min; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
@mixin bp($point, $high:'', $low:'') { | |
/* XS */ | |
$mobile-max: 767; | |
$mobile-min: 1; | |
@if $point == xs { | |
@if $high != '' { | |
$mobile-max: $high; | |
} | |
@if $low != '' { |
NewerOlder