Export:
- Copy from
${user}/.atom
:
- config.cson
- keymap.cson
- snippets.cson
- styles.less
- Save installed packages list
apm list --installed --bare > packages.list
# how to install VB guest additions on Elementary OS | |
# http://www.binarytides.com/install-virtualbox-guest-additions-elementary-os-luna/ | |
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results | |
[Dd]ebug/ |
Export:
${user}/.atom
:apm list --installed --bare > packages.list
type IfEquals<T1, T2, IfEqual = T2, Else = never> = (< | |
Interim | |
>() => Interim extends T1 ? true : false) extends < | |
Interim | |
>() => Interim extends T2 ? true : false | |
? IfEqual | |
: Else; | |
type Entries<T> = { | |
[K in keyof T]: [K, T[K]]; |
#!/bin/sh | |
npm install -D typescript @types/node @types/react @types/react-dom @types/jest | |
echo "{ | |
"compilerOptions": { | |
"target": "ESNext", | |
"lib": ["dom", "dom.iterable", "esnext"], | |
"allowJs": true, | |
"skipLibCheck": true, |
for f in src/exercise/*.js; do sed -i '' '1s/^/\/\/ @ts-nocheck\'$'\n/g' "$f"; mv -- "$f" "${f%.js}.tsx"; done |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
#!/bin/bash | |
# add it as `pre-push` file in your repository `.git/hooks folder` | |
# to test it - run `git push --dry-run`, it might be helpful :) | |
echo "============================= pre-push started ============================= " | |
remote="$1" | |
url="$2" | |
z40=0000000000000000000000000000000000000000 |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.item { | |
background: #FFF; |
##!/bin/bash | |
# ======= Generate extensions list by: | |
#code --list-extensions | while read line; do | |
# echo code --install-extension $line | |
#done | |
# ======== My current extensions listcode --install-extension DSKWRK.vscode-generate-getter-setter | |
code --install-extension akamud.vscode-theme-onedark | |
code --install-extension alefragnani.Bookmarks | |
code --install-extension Angular.ng-template |