sudo apt update && sudo apt upgrade
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
/****** | |
* | |
* 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++) { |
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
# 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 |
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
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 |
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 | |
# 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/ |
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
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 { |
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.
Here we write upgrading notes for brands. It's a team effort to make them as
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
# 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. |
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
# 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 |
NewerOlder