Skip to content

Instantly share code, notes, and snippets.

View waflessnet's full-sized avatar
🎯
Focusing

waflessnet waflessnet

🎯
Focusing
View GitHub Profile
/******
*
* click auto unretweet
*
* */
async function clickEnElementos() {
var elementosPath = document.querySelectorAll('path[d="M4.75 3.79l4.603 4.3-1.706 1.82L6 8.38v7.37c0 .97.784 1.75 1.75 1.75H13V20H7.75c-2.347 0-4.25-1.9-4.25-4.25V8.38L1.853 9.91.147 8.09l4.603-4.3zm11.5 2.71H11V4h5.25c2.347 0 4.25 1.9 4.25 4.25v7.37l1.647-1.53 1.706 1.82-4.603 4.3-4.603-4.3 1.706-1.82L18 15.62V8.25c0-.97-.784-1.75-1.75-1.75z"]');
for (var i = 0; i < elementosPath.length; i++) {
@waflessnet
waflessnet / sh
Created November 10, 2023 14:24
command kde panel hidden/ height location
# set show or height size kde panel
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "panels()[0].height = 40"
# move panel to bottom
#
#
# position screen
# 7 - 8 - 3
# 6 - - 2
# 5 - 4 - 1
@waflessnet
waflessnet / md
Created October 15, 2023 05:46
angular flowbite menu sidebar toggle active (hidden default mobile)
This is an example of how I solved it.
steps:
- Add new screen in tailwind.config.js. ex mb~(mobile)
https://flowbite.com/docs/customize/theming/#breakpoints
```
theme: {
screens: {
'mb': '340px', // <- new screen from small smartphone
@waflessnet
waflessnet / gist:5ffcb08abcb248a74029a5526d505def
Last active October 16, 2023 20:23
obtener un listado de archivos de otro commit a la rama actual
#!/bin/bash
# recuperar un listado de archivos de otro commit a la rama actual
# <COMMIT-ID> : el hash del commit donde estan los archivos que quieres recuperar
# <EXPR> : expresion para filtrar el listado
git ls-tree --name-only -r <COMMIT-ID> | grep -i <EXPR> | xargs -I {} git checkout <COMMIT-ID> '{}'
# ejemplo:
# recuperar los archivos que estan en la carpeta test/ del commit 6f425124 a la rama actual
# <COMMIT-ID>: 6f425124
# <EXPR>: test/
@denguir
denguir / cuda_install.md
Last active May 28, 2024 14:24
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@aalmiray
aalmiray / DataSourceFactory.java
Last active February 8, 2022 18:42
Oracle Aunonomous Database + MyBatis
package com.acme.todo;
import oracle.ucp.jdbc.PoolDataSource;
import oracle.ucp.jdbc.PoolDataSourceFactory;
import javax.sql.DataSource;
import java.util.Properties;
public class DataSourceFactory {
public static DataSource createDataSource(String datasourceConfigFile) throws Exception {
@yougg
yougg / proxy.md
Last active May 25, 2024 08:26
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@chtzvt
chtzvt / dnsmasq.conf
Created September 20, 2017 20:30
Optimized Dnsmasq configuration, for use with OpenWRT/DD-WRT/Tomato/etc
# Charlton Trezevant's Zoomin DNSMasq Config - Version 1.0
# Having a large local cache speeds up subsequent DNS queries significantly (from several hundred msec to around 25-30)
# You may need to adjust this depending on the amount of free space you have
cache-size=10000
# This ensures local reverse lookup queries are never sent upstream (e.g. dig +noall +answer -x 10.0.1.1)
bogus-priv
# Names without a dot or other domain part will also not be forwarded upstream
domain-needed
# We won't need dnsmasq to overwrite the system's resolv.conf, as we have our own cache.
@oxyflour
oxyflour / ssh-vpn.sh
Last active January 15, 2024 08:41
how to setup non-root ssh vpn tunnel
# remember to add
#PermitTunnel yes
# in /etc/ssh/sshd_config
# create tun device on both machines
# ref: http://www.k336.org/2013/04/non-root-ssh-vpn.html
sudo ip tuntap add dev tun0 mode tun user oxyflour group oxyflour
# delete tun
sudo ip tuntap del dev tun0 mode tun