Skip to content

Instantly share code, notes, and snippets.

View wguilherme's full-sized avatar
🚀
On fire

Withney Guilherme wguilherme

🚀
On fire
View GitHub Profile
@aidos-dev
aidos-dev / README.md
Last active May 24, 2024 05:32
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
@Cauen
Cauen / adminbro-translation-ptbr.js
Last active June 29, 2021 18:46
Adminbro portuguese configuration file (translated all strings to brazilian portuguese)
// Unfortunately the singular and plural are having problems in my version of admin bro, and therefore should be updated if yours is already working
export const translations = {
actions: {
new: 'Criar novo',
edit: 'Editar',
show: 'Mostrar',
delete: 'Deletar',
bulkDelete: 'Deletar tudo',
list: 'Listagem',
@argentinaluiz
argentinaluiz / Guia rápido de instalação do WSL2 + Docker.md
Last active May 30, 2023 23:47
Guia rápido de instalação do WSL2 + Docker
@jasperf
jasperf / cf7.css
Last active June 9, 2022 09:34 — forked from codehandling/cf7.css
Contact Form 7 Styles for basic CSS styling of the form. Form is responsive and has nice rounded corners. For labels and placeholders you need to edit the form in CF7 https://imwz.io/contact-form-7-css-boilerplate/
/*
** Contact Form 7 basics
**
**/
/* Form width and border */
.wpcf7 {
text-align: left;
width: 90%;
@ainsofs
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# 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"
@ceee
ceee / gist:6033429
Created July 18, 2013 21:49
fetch meta attribute in vanilla js (with og support)
/**
* Fetches a meta (+ open graph) attribute from HTML
*
* @returns value The request content of the meta tag (nullable)
*/
var getMetaAttribute = function( attribute )
{
var key = null;
var value = null;
var meta = document.getElementsByTagName('meta');
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active May 10, 2024 10:00
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th