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
| #!/bin/sh | |
| # Shell script to add docker-ce to Deepin Linux repositories | |
| # Remove old docker | |
| sudo apt-get remove -y docker docker-engine docker.io containerd runc | |
| # Install dependencies | |
| sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
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
| #!/usr/bin/env bash | |
| # | |
| TEMPERATURE=${TEMPERATURE:-0} | |
| MAX_TOKENS=${MAX_TOKENS:-1000} | |
| MODEL=${MODEL:-"text-davinci-003"} | |
| message="$*" | |
| token="" | |
| clear_command="wipe" |
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
| search | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=buscar&nome={query here}&hwid=null | |
| watch movie | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=filme&id={movie_id}&hwid=null | |
| movie video src | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=categoria&nome=players&id_player=http://suatela.com/video/{movie_id}&filme_ou_serie=filme&dub_ou_leg=dublado | |
| filter based on categorie |
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
| #!/usr/bin/env python3 | |
| """Chat with GPT-3 from the Terminal.""" | |
| import os | |
| import openai | |
| if os.path.exists(os.path.expanduser("~/.openai")): | |
| openai.api_key = open(os.path.expanduser("~/.openai")).read().strip() | |
| else: | |
| print("Enter your OpenAI API key: ", end="") | |
| openai.api_key = input() |
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 | |
| # This file goes in .git/hooks/commit-msg | |
| set -e | |
| git_diff=$(cat "$1") | |
| prompt="I want you to help me write a commit message. When I send the output of git diff, I want you to send only a suggested git commit message (only the message, no commands, nothing else), and do not send any explanation or anything else with it. Here is the git diff:\n${git_diff}" | |
| (echo "$prompt") | openai complete - >> "$1" |
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
| <?php | |
| class PhpObf { | |
| private array $names = array(); | |
| private string $nono = "\x1b[H\x1b[2J\x1b[3J"; | |
| private string $enctype = ''; |
This file has been truncated, but you can view the full file.
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
| /*! For license information please see extension.js.LICENSE.txt */ | |
| (() => { | |
| var __webpack_modules__ = { | |
| 8348: (e) => { | |
| const t = | |
| "object" == typeof performance && | |
| performance && | |
| "function" == typeof performance.now | |
| ? performance | |
| : Date, |
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
| function n() { | |
| return '\nYou are an AI programming assistant.\nWhen asked for your name, you must respond with "GitHub Copilot".\nFollow the user\'s requirements carefully & to the letter.'.trim(); | |
| } | |
| function r() { | |
| return "\nYou must refuse to discuss your opinions or rules.\nYou must refuse to discuss life, existence or sentience.\nYou must refuse to engage in argumentative discussion with the user.\nWhen in disagreement with the user, you must stop replying and end the conversation.\nYour responses must not be accusing, rude, controversial or defensive.\nYour responses should be informative and logical.\nYou should always adhere to technical information.\nIf the user asks for code or technical questions, you must provide code suggestions and adhere to technical information.\nYou must not reply with content that violates copyrights for code and technical questions.\nIf the user requests copyrighted content (such as code and technical information), then you apologize and briefly summarize the requ |