Skip to content

Instantly share code, notes, and snippets.

View dotiful's full-sized avatar
🏠
Working from home

Art Dev dotiful

🏠
Working from home
View GitHub Profile
@killvxk
killvxk / goip-default-login.yaml
Created February 2, 2023 07:34 — forked from drfabiocastro/goip-default-login.yaml
GoIP GSM VoIP Gateway Default Password
id: goip-default-login
info:
name: GoIP GSM VoIP Gateway Default Password
author: drfabiocastro
severity: high
description: GoIP GSM VoIP Gateway Default Password, Allows attackers to send, receive sms and calls.
reference:
- http://en.dbltek.com/
- https://medium.com/@hackatnow/how-to-create-a-python-script-to-find-goip-gsm-gateway-on-shodan-and-send-sms-ussd-via-goip-e2e203f5d339
@dvygolov
dvygolov / getKeitaroSalesRevenue.js
Created June 2, 2022 07:18
A Google Apps Script for getting daily revenue from Keitaro grouped by campaign group (buyers mark).
function getKeitaroData() {
let ss = SpreadsheetApp.getActiveSpreadsheet();
let sheet = ss.getSheetByName('Keitaro');
let apiKey = '<YOUR_KEITARO_API_KEY>';
let url = 'http://<YOUR_TRACKER_DOMAIN>/admin_api/v1/report/build';
let options= {
"method":"POST",
"headers":{
@butageek
butageek / windows_activation.md
Last active November 16, 2024 15:15
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@don-coleman
don-coleman / opkguinstalled
Created February 22, 2021 09:46
List all user-installed packages on OpenWrt - requires bash, and produces a more minimal list then other similar scripts.
#! /bin/bash
#
# We use bash associative arrays indexed by the package name.
#
opkg status \* | {
declare -A packages
declare -A packages_depends
declare -A packages_skip
@runiq
runiq / .bash_profile
Created January 20, 2021 00:04
How I handle envvars
[[ -f "$HOME/.profile" ]] && source "$HOME/.profile"
[[ $- == *i* && -f "$HOME/.bashrc" ]] && source "$HOME/.bashrc"
@atnbueno
atnbueno / click-to-delete.user.js
Last active August 22, 2023 04:29
A userscript to delete page elements when clicked twice while pressing Alt, Control, and Shift simultaneously
// ==UserScript==
// @name Click to delete
// @author Antonio Bueno
// @namespace userscripts.atnbueno.com
// @description This script deletes page elements if clicked twice while simultaneously pressing Alt, Control, and Shift
// @version 2.0
// @grant none
// ==/UserScript==
/*
@sawaYch
sawaYch / kde_hdmi_analog_switch.md
Last active November 17, 2020 08:52
Config alsamixer profile for KDE Neon (Phonon)

Description:
When headphone(analog) and HDMI connect to monitor, kde cannot auto switch audio to headphone.
What can we do is use plasmoid to adjust the audio channel manually.
Add the profile to /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf.

sudo vim /usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf


[Profile ouput:analog-stereo+output:hdmi-stereo]
@Protoff
Protoff / testWebp.js
Last active December 28, 2023 23:00
Тест браузера на поддержку webp
document.addEventListener('DOMContentLoaded', function() {
testWebP(document.body)
})
function testWebP(elem) {
const webP = new Image();
webP.src = 'data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA';
webP.onload = webP.onerror = function () {
webP.height === 2 ? elem.classList.add('webp-true') : elem.classList.add('webp-false')
}
@gusbemacbe
gusbemacbe / fonts.conf
Last active August 28, 2020 07:54
Color emoji font on Arch Linux (updated)
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>