Skip to content

Instantly share code, notes, and snippets.

View wemakefuture's full-sized avatar
💭
Coding for Automation

wemakefuture wemakefuture

💭
Coding for Automation
View GitHub Profile
@yask123
yask123 / whatsapp_sendMSG.js
Created January 24, 2015 17:08
Send messages on whatsapp by Javascript
document.getElementsByClassName("input")[1].innerHTML="This message was written via JS script! "; // Fills the text box message
var input = document.getElementsByClassName("icon btn-icon icon-send");//Grabs the send button
input[0].click();// Clicks the send button
@rjcorwin
rjcorwin / wpa2-wifi-connect.sh
Last active April 26, 2022 23:07
A simple `wifi` command for Debian that will connect you to a WPA2 WiFi network
#!/bin/sh
## A simple `wifi` command for Debian that will connect you to a WPA2 WiFi network
## usage:
## sudo ./wpa2-wifi-connect.sh <ssid> <pass>
ifdown wlan0
# build the interfaces file that will point to the file that holds our configuration
rm /etc/network/interfaces
touch /etc/network/interfaces
@slaFFik
slaFFik / wpforms-submit-form-once-loggedin.php
Last active August 31, 2022 11:32
WPForms: Submit the form only once for logged in users.
<?php
add_action( 'wp', function () {
if ( ! is_user_logged_in() ) {
return;
}
$entries = wpforms()->entry->get_entries(
array(
'form_id' => 74, // CHANGE THIS FORM ID