mkdir osm
wget -O osm/planet.mbtiles https://hidrive.ionos.com/api/sharelink/download?id=SYEgScrRe
podman run -ti --rm -p 9000:9000 --name sms -v $(pwd)/osm/:/data/ registry.gitlab.com/markuman/sms:latest
firefox http://localhost:9000
| #!/bin/bash | |
| gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
This gist describes the process we've used to migrate our Maven package repository from Sonatype Nexus to GitHub Packages. The same process could be used for migrating any Maven package repo that is in the standard layout.
We created a special repository on GitHub to hold all of our Maven packages. You might decide to migrate packages to different repositories, in which case invoke the script multiple times.
The script uses find to look for all of the folders containing poms and upload them. You specify the folder
This gist is an example of how you can simply install and run and extended Postgres using docker-compose. It assumes that you have docker and docker-compose installed and running on your workstation.
- Requires
dockeranddocker-compose - Clone via http:
git clone https://gist.github.com/b0b7e06943bd389560184d948bdc2d5b.git - Make
load-extensions.shexecutable - Build the image:
docker-compose build
THIS WAS ORIGINALLY POSTED ON MY TUMBLR ON FEB 25, 2011. I forgot I had a Tumblr account. I recently logged in (in light of the acquisition by Automattic), found some old posts, and I'm republishing them exactly as they were with zero modifications.
Amazon announced CloudFormation to the public yesterday, and while the general opinion I could glean from various sources shows that people are excited about this new technology, many are still unsure what it is and how it fits into their current cloud workflow. I feel as though I have a firm grasp on CloudFormation and will attempt to answer some questions here.
Note: I'm definitely not a representative of Amazon in any way, and anything here is simply my educated opinion on the matter.
| const File = require('vinyl'); | |
| const gulp = require("gulp"); | |
| const Handlebars = require('handlebars'); | |
| const streamArray = require('stream-array'); | |
| const ghostContentAPI = require("@tryghost/content-api"); | |
| const api = new ghostContentAPI({ | |
| url: 'https://demo.ghost.io', | |
| key: '22444f78447824223cefc48062', | |
| version: "v4" |
| var getSubtitles = require('youtube-captions-scraper').getSubtitles; | |
| var _ = require('lodash'); | |
| // All Last Week Tonight episodes... and a few related videos that got sucked in by mistake | |
| var videos = ["IdirC1uFdXU","baSNHz4uiX4","-mSGwndFMp8","R7qSiEKntQA","rn6QpV2Vo-0","7VG_s2PCH_c","t0CyBv18A5k","_E9DJS6I2nE","MGpo9DQkSvQ","d5SXQ_zb1XQ","R44dRIPLZGM","s6MwGeOm8iI","abn6cPxrc5w","gvZSpET11ZY","ScmJvmzDcG0","HaBQfSAVt0s","3G7aLVWzJeo","_9BjJkqybz8","4U2eDJnwz_s","IU2ye11FyIQ","WhMGcp9xIhY","CdDBi0DheMw","MdHmp5EX5bE","TB_wx0dAPU0","ximgPmJ9A5s","5HS2TstPfW4","ygVX1z6tDGI","UpdMYOtAmKY","ViDPIyiszoo","FsZ3p9gOkpY","opi8X9hQ7q8","OjPYmEZxACM","NpPyLcQ2vdI","2nXYbGmF3_Q","etkd57lPfPU","Fmh4RdIwswE","ET_b78GSBUs","dHiAls8loz4","dFnN2toxFaY","AJm8PeWkiEU","8-hahRWhFvg","OubM8bD9kck","mOVPStnVgvU","nG2pEffLEJo","hWQiXv0sn9Y","IYfgvS0FA7U","mXQuto1fMp4","5xnZ_CeTqyM","RKjk0ECXjiQ","4NNpkv3Us1I","9fB0GBwJ2QA","rs2RlZQVXBU","g6iDZspbRMg","LEcbagW4O-s","LdhQzXHYLZ4","QCjk_NPsIqU","wrpeEitIEpA","seGgZp-XYdM","1ZAPwfrt |
| require "rubygems" | |
| require "twitter" | |
| require "json" | |
| require "csv" | |
| #require "date" | |
| # things you must configure | |
| TWITTER_USER = "your_twitter_username" | |
| MAX_AGE_IN_DAYS = 7 # anything older than this is deleted |
| #!/bin/bash | |
| # Pre commit hook that prevents FORBIDDEN code from being commited. | |
| # Add unwanted code to the FORBIDDEN array as necessary | |
| FILES_PATTERN='\.(rb|js|coffee|spec)(\..+)?$' | |
| FORBIDDEN=( debugger ruby-debug binding.pry console.log ) | |
| for i in "${FORBIDDEN[@]}" | |
| do |
| # author: | |
| # @Bartosz Kosarzycki | |
| # | |
| sudo apt-get install npm | |
| sudo npm install -g react-native-cli | |
| sudo ln -s /usr/bin/nodejs /usr/bin/node | |
| cd /home/user/your/project/path | |
| react-native init AwesomeProject | |
| cd AwesomeProject |