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
#!/bin/bash | |
prezto.sh(){ | |
#clear | |
#sudo apt-get install -y git | |
#sudo apt-get update && sudo apt-get install -y zsh | |
# Get prezto | |
#git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto | |
# Backup zsh config if it exists |
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
1. Login to your EC2 instance using your .pem file | |
ssh -i your_pem_file.pem ubuntu@ec2-________.compute-1.amazonaws.com | |
2. Create a new user that will access the instance using a password: | |
$ sudo useradd -s /bin/bash -m -d /home/USERNAME -g root USERNAME | |
where: | |
-s /bin/bash : use /bin/bash as the standard shell | |
-m -d /home/USERNAME : create a home directory at /home/USERNAME |
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
<snippet> | |
<content><![CDATA[ | |
https://en.wikipedia.org/wiki/Box-drawing_character | |
┌─┬─┐ | |
│ │ │ | |
├─┼─┤ | |
│ │ │ | |
└─┴─┘ | |
╔═╦═╗ |
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
let deeplyNestedObject = { | |
'foo1': 'bar1', | |
'lorem1': 'ipsum1', | |
'dolor1': { | |
'foo2': 'bar2', | |
'lorem2': 'ipsum2', | |
'dolor2': { | |
'foo3': 'bar3', | |
'lorem3': 'ipsum3', | |
'dolor3': { |
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
/** @type {import('tailwindcss').Config} */ | |
const fs = require('fs'); | |
const path = require('path'); | |
const colors = require('tailwindcss/colors'); | |
module.exports = { | |
prefix: 'tw-', | |
content: [ | |
'./src/**/*.{html,vue}', | |
], |
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
// Credit: Stanford’s Developing iOS8 App with Swift Course (Available via iTunes U Course via Apple Swift Portal) | |
// This function itself accept a closure, and return nothing | |
func performOperation(operation: (Double, Double) -> Double) { | |
println(operation(20.0,10.0)) | |
} | |
// Thanks to type inference, we can further simplify the following | |
// function call that accept a well defined closure as argument | |
performOperation({ (op1: Double, op2: Double) -> Double in | |
return op1 * op2 |
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
017-2854711,019-3740079,010-3073238,017-2854711,012-9145123,019-2695443,019-2645195,019-2695443,017-2854711,017-2854711,019-6428238,016-2491135,013-3588761,012-2043531,019-3320076,019-4698145,019-2695443,019-3320076,019-2695443,016-2491135 | |
013-2615416,019-2584307,019-2695443,012-9145123,017-3729633,013-3588761,013-3586224,013-3586224,011-12199847,012-2043531,017-2854711,019-3789605,019-6901018,010-8676446,019-4209702,019-3320076,013-3588761,019-2584307,016-9645676 | |
012-3452454,019-6428238,012-3452454,016-9645676,012-3452454,012-3539704,019-2584307,019-6901018,019-6901018,019-2695443,012-3539704,010-8676446,019-3789605,019-2695443,019-2645195,019-3320076,017-9922343,012-3628991,016-2491135 | |
019-2695443,019-2645195,013-2615416,019-2695443,019-2695443,017-2854711,013-3588761,013-3586224,017-2854711,017-9922343,019-6901018,017-3729633,013-3586224,019-6428238,010-8676446,013-3586224,012-9145123,012-2720926,019-2584307 | |
019-3320076,013-3586224,017-9922343,019-2104383,017-2854711,013-2615416,016-9645676,019-2194442 |
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
@font-face { | |
font-family: octicons-link; | |
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAA |
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
function backup() { | |
function downloadBlob(filename, blobUrl) { | |
var element = document.createElement('a'); | |
element.setAttribute('href', blobUrl); | |
element.setAttribute('download', filename); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
} |
NewerOlder