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
| {{ if .Inner }}<details {{ if eq (.Get "open") "true" }}open{{ end }}> | |
| {{ with .Get "title" }}<summary>{{.}}</summary>{{ end }} | |
| {{ .Inner | markdownify }} | |
| </details>{{ end }} |
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
Show hidden characters
| // Documentation at https://www.sublimetext.com/docs/color_schemes.html | |
| { | |
| "variables": {}, | |
| "globals": { | |
| "background": "#19171a", | |
| "selection": "#333", | |
| "selection_border": "#333", | |
| "stack_guide": "var(grey)", | |
| "active_guide": "var(purple)", | |
| "line_highlight": "var(black3)", |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowViewAccountInfo", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetAccountPasswordPolicy", | |
| "iam:GetAccountSummary", | |
| "iam:ListVirtualMFADevices" |
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
| ffmpeg -i in.mov -vcodec h264 -acodec mp2 out.mp4 |
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
| ffmpeg -i "https://<URL>.m3u8" -codec copy video.mp4 |
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
| curl -d '{"page_token":"1234567890","url":"https://url-goes-here.com/","title":"Title goes here"}' -H "Content-Type: application/json" -X POST https://feedbin.com/pages |
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
| // creates an object only once - garbage be glad ^^ | |
| let cachedObject = {}; | |
| // array to be filtered | |
| let arr = [ | |
| {id : 0, prop : 'blah'}, | |
| {id : 1, prop : 'foo'}, | |
| {id : 0, prop : 'bar'} | |
| ] |
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
| World |
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 | |
| BASE=/var/www/domain.com | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| commit=$(git rev-parse --short HEAD) | |
| BRANCH_DIR="$BASE/$branch" |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Hello React</title> | |
| <script src="https://unpkg.com/react@^16/umd/react.production.min.js"></script> | |
| <script src="https://unpkg.com/react-dom@^16/umd/react-dom.production.min.js"></script> | |
| <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
| </head> |