As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.contrib import admin | |
| from polls.models import Poll, Choice | |
| from django.contrib.auth.models import User | |
| from django.contrib.admin import AdminSite | |
| from polls.views import index | |
| class MyAdminSite(AdminSite): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import CoreData | |
| let appTransactionAuthorName = "app" | |
| @main | |
| struct ZenJournalApp: App { | |
| var body: some Scene { | |
| WindowGroup { |
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.
| Aerobase | Keycloak | WSO2 Identity Server | Gluu | CAS | OpenAM | Shibboleth IdP | |
|---|---|---|---|---|---|---|---|
| OpenID Connect/OAuth support | yes | yes | yes | yes | yes | yes | third-party |
| Multi-factor authentication | yes | yes | yes | yes | yes | yes | yes |
| Admin UI | yes | yes | yes | yes | yes | yes | no |
| OpenJDK support | yes | yes | yes | yes | no | ||
| Identity brokering | yes | yes | yes | ||||
| Middleware | NGINX, Wildfly | Wildfly, JBOSS | WSO2 Carbon | Jetty, Apache HTTPD | any Java app server | any Java app server | Jetty, Tomc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>BrowserView Demo</title> | |
| </head> | |
| <body> | |
| <h1>BrowserView Demo</h1> | |
| <button>Toggle BrowserView</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Red [needs: 'view] | |
| CRLF: copy "^M^/" ;; constant for 0D 0A line feed | |
| ;;------------------------------------ | |
| crypt: func ["function to en- or decrypt message from textarea tx1" | |
| /decrypt "decrypting switch/refinement" ][ | |
| ;;------------------------------------ | |
| ;; when decrypting we have to remove the superflous newlines | |
| ;; and undo the base64 encoding first ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # source: https://gist.github.com/francoisromain/58cabf43c2977e48ef0804848dee46c3 | |
| # and another script to delete the directories created by this script | |
| # project-delete.sh: https://gist.github.com/francoisromain/e28069c18ebe8f3244f8e4bf2af6b2cb | |
| # Call this file with `bash ./project-create.sh project-name` | |
| # - project-name is mandatory | |
| # This will creates 4 directories and a git `post-receive` hook. |
Using the REST API to upload a file to WordPress is
quite simple. All you need is to send the file in a
POST-Request to the wp/v2/media route.
There are two ways of sending a file. The first method simply sends the file in the body of the request. The following PHP script shows the basic principle:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl key pair generate | |
| //client - using meteor.js | |
| const nodersa = Npm.require('node-rsa'); | |
| import { HTTP } from 'meteor/http'; | |
| const syncPost = Meteor.wrapAsync( HTTP.post, HTTP ); | |
| encryptStringWithRsaPublicKey( data ) { | |
| const absolutePath = Assets.absoluteFilePath( "public.key" ); //public key file path | |
| const publicKey = fs.readFileSync( absolutePath, "utf8" ); |
NewerOlder