Skip to content

Instantly share code, notes, and snippets.

View Sunnepah's full-sized avatar

Sunday Ayandokun Sunnepah

View GitHub Profile
@Sunnepah
Sunnepah / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-pages/core-pages.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<?php
/* * **
*
* This script converts an existing MySQL database to migrations in Laravel 4.
*
* 1. Place this file inside app/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table
@Sunnepah
Sunnepah / reset-bitnami-jenkins-pwd
Created February 3, 2016 00:57
Reset Bitnami Jenkins password
1. SSH to server and edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml
Set disableSignup to false: <disableSignup>false</disableSignup>
2. Restart
/etc/init.d/bitnami restart
3. Sign up via the web interface
4. Edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml
Copy the user permissions for the default user and assign these to the newly signed up user
Verifying my Blockstack ID is secured with the address 19cJB4AXTLAtmV5cxzX5BZr6caDjynggAk https://explorer.blockstack.org/address/19cJB4AXTLAtmV5cxzX5BZr6caDjynggAk
@Sunnepah
Sunnepah / update-golang.md
Created March 6, 2018 22:55 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Ubuntu 14.04 (Trusty Tahr)

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@Sunnepah
Sunnepah / docker-cleanup-resources.md
Last active October 23, 2018 20:28 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@Sunnepah
Sunnepah / cloudbuild.yaml
Last active February 27, 2021 20:13
Google Cloudbuild.yaml to build, push image to gcr and deploy to cloud run service
steps:
# build the container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'eu.gcr.io/[google-cloud-yourproject]/[app-name]:latest', '.'] # change eu.gcr.io to your region
# push the container image to Container Registry
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'eu.gcr.io/[google-cloud-yourproject]/[app-name]:latest']
# Deploy container image to Cloud Run