Skip to content

Instantly share code, notes, and snippets.

View gubleo's full-sized avatar
🚫
não leia minha bio!

Gustavo Borges gubleo

🚫
não leia minha bio!
View GitHub Profile
@OberdanBrito
OberdanBrito / Datas Retroativas.sql
Created September 20, 2021 18:52
O exemplo utiliza o looping do banco de dados dentro de cada linha para gerar uma sequência de 365 dias do ano para cada registro da tabela de destino
/**
* Como obter datas retroativas usando o bloco de código, Looping
*/
do
$$
begin
for i in 1 .. 365 loop
raise notice '%', current_date - i || 'T00:00:00.000Z';
@chaodonghu
chaodonghu / like-post-instagram.js
Last active December 27, 2023 03:22
Google Chrome script that allows user to mass like instagram posts, automatically presses "next" and likes post.
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023
// Please @ me in the comments if this stops working, I will try to get it working again within the month
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Search for a hashtag (eg. https://www.instagram.com/explore/tags/hikingadventures/)
// 3. Click on a photo to reveal the like button as well as arrows for navigating between photos
// 3. Open developer tools by right clicking on the page and clicking "INSPECT"
// 4. Copy the code below and paste in the developer tools console and press enter to run
@chaodonghu
chaodonghu / follow-instagram.js
Last active May 8, 2024 17:13
Google Chrome script that allows user to mass follow instagram users on another's profile
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023
// Please @ me in the comments if this stops working, I will try to get it working again within the month
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWERS" OR "FOLLOWING" on your Instagram profile or a desired user's Instagram profile
// 3. Open developer tools by right clicking on the page and clicking "INSPECT"
// 4. Copy the code below and paste in the developer tools console and press enter to run
// 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background)
@chaodonghu
chaodonghu / unfollow-everyone-instagram.js
Last active June 18, 2024 01:31
Google Chrome script that allows user to mass unfollow instagram users on user's profile
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023
// Please @ me in the comments if this stops working, I will try to get it working again within the month
// INSTRUCTIONS
// 1. Open Instagram in Chrome
// 2. Click on "FOLLOWING" on your Instagram profile
// 3. Open developer tools by right clicking on the page and clicking "INSPECT"
// 4. Copy the code below and paste in the developer tools console and press enter to run
// 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background)
@tdcosta100
tdcosta100 / WSL2GUIXvnc-pt_br.md
Last active June 12, 2024 13:03
Tutorial para utilizar interface gráfica no WSL2, substituindo XServer pelo Xvnc, permitindo ao WSL trabalhar como se fosse Linux nativo, incluindo tela de login

WSL2 com interface gráfica utilizando Xvnc

Nesse tutorial, iremos configurar a interface gráfica no WSL2 e acessá-la utilizando VNC. Nenhum software adicional fora do WSL é necessário (como o VcXsrv), exceto, claro, um VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, todos devem funcionar sem problemas).

Os componentes-chave que precisamos instalar são: tigervnc-standalone-server e systemd-genie.

Para essa configuração, irei utilizar o Ubuntu 20.04 LTS (Focal Fossa) e irei instalar o GNOME Desktop. Uma vez que os componentes-chave não são diretamente relacionados ou dependentes do Ubuntu ou do GNOME, você pode utilizar sua distribuição favorita e interface gráfica. Dê uma olhada na seção [Telas de exempo](https://gist.github.com/tdcosta100/c5c206f8958e82e638fa

@gubleo
gubleo / git.md
Created February 4, 2020 13:42
Comandos úteis GITHUB

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@gubleo
gubleo / only-screen.ts
Created January 14, 2020 19:22
Aplicando propriedades para diferentes resoluções
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insira suas propriedades aqui */
}
/* (320x480) Celulares, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insira suas propriedades aqui */
}
@iPublicis
iPublicis / trelloinstall.sh
Last active April 21, 2023 17:44
Install Trello Linux Client
#!/bin/bash
# Your system should be 64 bits and check if the last version at https://github.com/danielchatfield/trello-desktop/ is 0.19
# If the current version is not 0.19 change the file name below accordingly
wget https://github.com/Racle/trello-desktop/releases/download/v0.2.0/Trello-linux-0.2.0.zip -O trello.zip
sudo mkdir /opt/trello
sudo unzip trello.zip -d /opt/trello/
sudo ln -sf /opt/trello/Trello /usr/bin/trello
echo -e '[Desktop Entry]\n Version=1.0\n Name=Trello Desktop\n Exec=/usr/bin/trello\n Icon=/opt/trello/resources/app/static/Icon.png\n Type=Application\n Categories=Application' | sudo tee /usr/share/applications/trello.desktop
@leocomelli
leocomelli / git.md
Last active June 20, 2024 20:51
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda