Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

sed bsed

🏠
Working from home
Block or report user

Report or block bsed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:55c571ea7943043fba80913e905a2fdb
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@bsed
bsed / file
Created Sep 27, 2016
freedom_public
View file
{"0.02037170523233711":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMEXMX2srxv9CHiddsTW2/4TP2kkn1kSNzw\r\n1j0vfVBfpUyotTtTjlz+yJcpY4hrTV1YwN3eSQpBF9KMFee2VpT/OM3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCV+pnW/8AAAACiwn/AAAACZC7D+TEz6Nm\r\n7f8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAACuwBALFcNxqlMgdA\r\n+PQJXHvUbVivAkLftoJHFVEGStjcqxANAQD/hYIIocYSMRhg1+qcYQnwf+9vo9um\r\nwRyZIjspEAeGJs7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBP0zKmc/AvfkKqqMFDfT\r\nM+jxgBP4diQk3AfEKkLzZqoG94tm6cJDVZnRvkbki7sInR4aNZ0pnpMISkZI68E/\r\nCy0DAQgHwv8AAABtBBgTCAAf/wAAAAWCV+pnW/8AAAAJkLsP5MTPo2bt/wAAAAKb\r\nDAAAAEMBAPxUcA4r24XNtaEn8VyRMBcctneBbhoS4nTpsiPl4Co0AP4ix/In61ZH\r\nv227su/L7I+5rbPPKXtIUmeFqe3HlohnRQ==\r\n=w/28\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}
View mysql-password-forget
# one shell
```bash
sudo mysqld_safe --skip-grant-tables &
```
# two shell
```bash
kelvin@gnux:~> sudo mysql -u root (06/25 20:51:01)
[sudo] password for kelvin:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 41
View .babelrc
{
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": [
"transform-runtime",
"transform-class-properties"
]
View node babel es6
npm install babel-plugin-transform-class-properties babel-plugin-transform-runtime \
babel-polyfill babel-preset-es2015 babel-preset-react babel-preset-stage-0 \
babel-register --save
View golang_vscode-tasks.json
{
"version": "0.1.0",
"isShellCommand": true,
"showOutput": "always",
"command": "go",
"echoCommand": true ,
"tasks": [
{
"taskName": "build",
"args": [
View golang_vscode-launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
@bsed
bsed / golang_vscode-settings.json
Last active May 29, 2016
VSCode+Golang settings
View golang_vscode-settings.json
{
//-------- Go configuration --------
"files.autoSave": "onFocusChange",
// Run 'go build'/'go test' on save.
"go.buildOnSave": true,
// Run 'golint' on save.
"go.lintOnSave": true,
// Run 'go tool vet' on save.
"go.vetOnSave": true,
// Flags to `go build`/`go test` used during build-on-save or running tests. (e.g. ['-ldflags="-s"'])
View golang_vscode-build-tasks.json
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "go",
// The command is a shell script
"isShellCommand": true,
// Show the output window only if unrecognized errors occur.
View golang_vscode-build-tasks.json
{
"version": "0.1.0",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "go",
// The command is a shell script
"isShellCommand": true,
// Show the output window only if unrecognized errors occur.
You can’t perform that action at this time.