These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.
Press the Win/Super key, type software and press Enter.
| #!/bin/sh | |
| # Make sure to: | |
| # 1) Name this file `backup.sh` and place it in /home/ubuntu | |
| # 2) Run sudo apt-get install awscli to install the AWSCLI | |
| # 3) Run aws configure (enter s3-authorized IAM user and specify region) | |
| # 4) Fill in DB host + name | |
| # 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket) | |
| # 6) Run chmod +x backup.sh | |
| # 7) Test it out via ./backup.sh |
| OUT := binariy-name | |
| PKG := gitlab.com/group/project | |
| VERSION := $(shell git describe --always --long --dirty) | |
| PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) | |
| GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/) | |
| all: run | |
| server: | |
| go build -i -v -o ${OUT} -ldflags="-X main.version=${VERSION}" ${PKG} |
Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for
the repo https://myorg/myrepo/ is: [email protected]:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).
You make edits, and commit and push your changes, like any normal repo. This wiki repo
is distinct from any clone of the project repo (the repo without wiki.get appended).
| /* Sometimes it's pretty easy to run ito troubles with React ES6 components. | |
| Consider the following code: */ | |
| class EventStub extends Component { | |
| componentDidMount() { | |
| window.addEventListener('resize', this.onResize.bind(this)); //notice .bind | |
| } | |
| componentWillUnmount() { | |
| window.removeEventListener('resize', this.onResize.bind(this)); |
| import geocoder | |
| import requests | |
| import unicodecsv as csv | |
| import time | |
| container = {} | |
| g = geocoder.google("New Brunswick, Canada") | |
| url = "https://www.realtor.ca/api/Listing.svc/PropertySearch_Post" | |
| PropertySearchType = { |
| # Claas Heuer, November 2015 | |
| # | |
| # Setup Powerline on Debian and Centos for BASH, VIM and TMUX | |
| # source: https://fedoramagazine.org/add-power-terminal-powerline/ | |
| # install on debian | |
| sudo apt-get install python-pip | |
| sudo apt-get install powerline |
| package main | |
| import ( | |
| "net" | |
| "os/exec" | |
| "github.com/k0kubun/pp" | |
| ) | |
| func Hosts(cidr string) ([]string, error) { |
Because there is an issue with OAuth2 login and localhost development, you currently have to deploy your meteor site to be able to test the Facebook login. A nice little workaround for this is to make the local instance of meteor accessible externally.
There is a great online guide for setting up port forwarding with your router and you can check your public external IP here.
For example, If you have an Apple router, simply open up Airport Utility on your Mac and click edit on your router, then go to the Network tab. Under Port Settings click the + icon and select Personal Web Sharing, setting all of the public and private ports to 3000. Make sure the private IP is set to your current computer IP.