initialize git depository in the current directory
git init .
display the git remote/origin
cat .git/config
initialize git depository in the current directory
git init .
display the git remote/origin
cat .git/config
Dumping ground for Links
| ***************************************** | |
| *HTTP VERB | ACTION * | |
| ***************************************** | |
| * GET | READ * | |
| ***************************************** | |
| * POST | CREATE * | |
| ***************************************** | |
| * PUT | UPDATE * | |
| ***************************************** | |
| * DELETE | DELETE * |
| # | |
| # REQUIRES: | |
| # - server (the forge server instance) | |
| # - event (the forge event instance) | |
| # - sudo_password (random password for sudo) | |
| # - db_password (random password for database user) | |
| # - callback (the callback URL) | |
| # |
| function parseJwt (token) { | |
| var base64Url = token.split('.')[1]; | |
| var base64 = base64Url.replace('-', '+').replace('_', '/'); | |
| return JSON.parse(window.atob(base64)); | |
| }; |
| function sendXmlOverPost($url, $xml) { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| // For xml, change the content-type. | |
| curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); |
| /*************************************************************/ | |
| // NumeroALetras | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2015 Luis Alfredo Chee | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights |
| var fs = require('fs'), | |
| async = require('async'), | |
| csv = require('csv'); | |
| var input = fs.createReadStream(filename); | |
| var parser = csv.parse({ | |
| columns: true, | |
| relax: true | |
| }); | |
| # remove specific file from git cache | |
| git rm --cached filename | |
| # remove all files from git cache | |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
| version: '3' | |
| services: | |
| db: | |
| image: postgres:13 | |
| volumes: | |
| - db-data:/var/lib/postgresql/data/pgdata | |
| ports: | |
| - 5432:5432/tcp | |
| environment: | |
| - POSTGRES_PASSWORD=odoo |