For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
| // go to https://twitter.com/your-username, and enter the following into the developer console: | |
| for(var i = 1; i < 500; i++){ // just do it a bunch | |
| // Un retweet | |
| document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click(); | |
| document.getElementsByClassName("js-close")[0].click(); | |
| // Delete tweets | |
| document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click(); | |
| document.getElementsByClassName("delete-action")[0].click() | |
| } |
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.
http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/
Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
Here are the simple steps needed to create a deployment from your local 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 deepl.io to act upon a Web-Hook that's triggered that service.
-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn
As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.
Note: Defined models and collections will be used in entire cheatsheet.
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}| /** | |
| * Custom hook for dynamically resizing a textarea to fit its content. | |
| * @param {React.RefObject<HTMLTextAreaElement>} textareaRef - Reference to the textarea element. | |
| * @param {string} textContent - Current text content of the textarea. | |
| * @param {number} maxHeight - Optional: maxHeight of the textarea in pixels. | |
| */ | |
| import { useEffect } from "react"; | |
| const useDynamicTextareaSize = ( | |
| textareaRef: React.RefObject<HTMLTextAreaElement>, |

