Skip to content

Instantly share code, notes, and snippets.

View ericktucto's full-sized avatar
😎
Happy

Erick Tucto ericktucto

😎
Happy
View GitHub Profile
@onlime
onlime / .eslintrc.js
Last active April 29, 2024 20:35
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 February 20, 2024 23:15
Xfce4 panel plugin enabling easy switching between display profiles
pygobject
dbus-python
python-xlib
@thingsiplay
thingsiplay / proton
Last active March 21, 2024 13:34
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...
@juanbrujo
juanbrujo / PlayStationBIOSFilesNAEUJP.md
Last active May 1, 2024 13:35
Files for PlayStation BIOS Files NA-EU-JP
@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

@loilo
loilo / magic-methods.js
Last active April 25, 2024 13:58
PHP Magic Methods in JavaScript
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
@motss
motss / config.md
Created November 19, 2017 02:49
.editorconfig + .gitattributes

Config

.editorconfig

# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org

root = true