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
''' | |
Follow these steps to configure the webhook in Slack: | |
1. Navigate to https://<your-team-domain>.slack.com/services/new | |
2. Search for and select "Incoming WebHooks". | |
3. Choose the default channel where messages will be sent and click "Add Incoming WebHooks Integration". | |
4. Copy the webhook URL from the setup instructions and use it in the next section. |
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
/* | |
Since late 2020, Netlify has put up a pay wall on its built-in Slack notifications for CI/CD. | |
This gist shows you a workaround using the still-free Netlify's deploy webhook that triggers a Netlify Function calling Slack Incoming Webhook. | |
Steps: | |
1. Deploy this Netlify Function | |
2. Have the corresponding link pasted into Netlify's deploy webhook, i.e. https://example.com/.netlify/functions/<your-function> | |
3. In next deploy, Netlify will trigger the deploy webhook, which in turn calls your Slack Incoming Webhook | |
*/ |
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
name: Deploy Jekyll Site to S3 | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
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
'use strict'; | |
/* Public domain project by Cloud Under (https://cloudunder.io). | |
* Repository: https://github.com/CloudUnder/lambda-edge-nice-urls | |
*/ | |
const config = { | |
suffix: '.html', | |
appendToDirs: 'index.html', | |
removeTrailingSlash: false, |
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
Verifying my Blockstack ID is secured with the address 1D51kV6mLCuq9BdX6tvrJGGFLr4Pt7EdFR https://explorer.blockstack.org/address/1D51kV6mLCuq9BdX6tvrJGGFLr4Pt7EdFR |
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
/// write to file | |
var txtFile = "c:/test.txt"; | |
var file = new File(txtFile); | |
var str = "My string of text"; | |
file.open("w"); // open file with write access | |
file.writeln("First line of text"); | |
file.writeln("Second line of text " + str); | |
file.write(str); | |
file.close(); |
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
<br><br> | |
<div align="center"> © 2017 Weebly in 3 Min<br> | |
<a href="http://weeblyin3min.weebly.com" style="color: white;"> 首頁  </a> | | |
<a href="http://weeblyin3min.weebly.com/about.html" style="color: white;">  關於我們  </a> | | |
<a href="http://weeblyin3min.weebly.com/hank-chans-blog" style="color: white;">  攻略  </a> | | |
<a href="http://weeblyin3min.weebly.com/slides.html" style="color: white;">  Slides  </a> | | |
</div> | |
/* 以下是已經被遮蓋掉的 Weebly original footer */ | |
<div id="footer" style="display:none">{footer} </div> |
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
<div id="footer" style="display:none">{footer}</div> |
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
style="visibility:hidden" | |
<div id="footer" style="visibility:hidden">{footer}</div> |
NewerOlder