Skip to content

Instantly share code, notes, and snippets.

View ericktucto's full-sized avatar
😎
Happy

Erick Tucto ericktucto

😎
Happy
View GitHub Profile
@devmaars
devmaars / Termux SSH Tutorial.md
Created April 5, 2024 15:05
This guide will show you how to set up an ssh server on your phone using Termux and connect to it from your computer. This is useful if you want to access your phone's files or run commands on your phone from your computer.

How to ssh to termux the right way

Termux

Requirements

  • Termux (From F-Droid)
  • ADB (Android Debug Bridge)
  • USB Cable (Wireless connection is also possible but it's slower)
@onlime
onlime / .eslintrc.js
Last active May 7, 2024 08:54
ESLint/Prettier config for Vue 3 in VS Code
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'prettier'
@theY4Kman
theY4Kman / requirements.txt
Last active May 19, 2024 19:56
Xfce4 panel plugin enabling easy switching between display profiles
pygobject
dbus-python
python-xlib
@thingsiplay
thingsiplay / proton
Last active December 10, 2024 18:05
Proton script
#!/bin/sh
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@beganovich
beganovich / flatpak-cursor-fix
Created January 3, 2021 12:04
Flatpak cursor fix
flatpak --user override --filesystem=/home/$USER/.icons/:ro
flatpak --user override --filesystem=/usr/share/icons/:ro
@Fmajor
Fmajor / vue.ctags
Created June 19, 2019 18:20
A ctags syntax file for vue components
# A ctags syntax file for vue components
--langdef=vue
--langmap=vue:.vue
# vue-commands in <template>
--regex-vue=/^(<template>)$/\1/t,template/{scope=set}{exclusive}
--regex-vue=/^\S*(.*(v-if=|v-for=|v-show=|ref=)("[^"]*"))/\2\3/c,vue-command/{scope=ref}
--regex-vue=/^(<\/template>)$/\1//{scope=pop}{exclusive}{placeholder}
# css in <template>
--regex-vue=/^(<style.*)$/style/s,script/{scope=set}{exclusive}
--regex-vue=/^(<\/style>)$/\1//{scope=clear}{placeholder}
@satishgunjal
satishgunjal / wifissid.py
Created October 14, 2018 07:20
Get connected wifi SSID using python on Raspberry pi
import subprocess
try:
output = subprocess.check_output(['sudo', 'iwgetid'])
print("Connected Wifi SSID: " + output.split('"')[1])
except Exception, e:
print e

To install the module for the RTL8723DE chipset, first determine your kernel using uname -r if your kernel is lower than 4.11, do

sudo apt-get install build-essential dkms git
git clone -b 4.10-down https://github.com/jeremyb31/rtl8723de.git
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

Then reboot

export function magicMethods (clazz) {
// A toggle switch for the __isset method
// Needed to control "prop in instance" inside of getters
let issetEnabled = true
const classHandler = Object.create(null)
// Trap for class instantiation
classHandler.construct = (target, args, receiver) => {
// Wrapped class instance