Skip to content

Instantly share code, notes, and snippets.

View saade's full-sized avatar
🦒
FilamentPHP evangelist

Guilherme Saade saade

🦒
FilamentPHP evangelist
View GitHub Profile
[interface]
resolution_dir="480_272"
[rawdisplay]
class="wide"
screen_x=480
screen_y=272
[map]
2dheadup="1"
@saade
saade / eventReport.js
Created March 20, 2017 14:28
List all Events on current page
// defining function
(function($) {
$.eventReport = function(selector, root) {
var s = [];
$(selector || '*', root).addBack().each(function() {
var e = $._data(this, 'events');
if(!e) return;
var tagGroup = this.tagName || "document";
if(this.id) tagGroup += '#' + this.id;
if(this.className) tagGroup += '.' + this.className.replace(/ +/g, '.');
@saade
saade / vivo.js
Last active August 18, 2017 17:34
TUGO - Bot
window.addEventListener('load', () => {
function TUGO_sendMessage(number, message) {
// Add Number
var _number_input = angular.element($(".host")[0]).scope();
_number_input.tagList.addText(number);
// Add Text
var _text_input = angular.element($('textarea[ng-model="message"]')[0]).scope();
_text_input.message = message;
_text_input.sendMessage(_text_input.message);
setTimeout(() => {
var X_sacs = ["5521999395050",
"555199595050",
"557199595050",
"558182595050",
"5511999595050",
"554192905050",
"554891905050",
"556199595050",
"553199595050",
"5511943613092",
javascript:( X_checkTest() )
# Android SDK setup
## Install Java
```
sudo apt-get update
sudo dpkg --add-architecture i386
sudo apt-get install libbz2-1.0:i386
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
sudo apt-get install openjdk-8-jdk openjdk-8-jre
#!/bin/sh
versionMaj="1"
versionMin="0"
versionRev="1"
version="$versionMaj.$versionMin-$versionRev"
echo "Removing old Postman tarballs"
rm -f $(ls Postman*.tar.gz)
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-add-repository "deb https://download.sublimetext.com/ apt/stable/"
sudo apt install sublime-text
sudo mkdir /var/run/mysqld
sudo chmod 777 /var/run/mysqld
sudo /etc/init.d/mysql stop
sudo mysqld_safe --skip-grant-tables &
mysql -uroot
use mysql;
update user set authentication_string=password('mynewpassword') where user='root';
flush privileges;
quit
Step 1 – Add new repository sources
At the time of writing, PHP 7.0 hasn’t yet made the official repository sources, so we need to add one which provides us with the PHP 7.0 packages. Edit your sources file with this command:
sudo nano /etc/apt/sources.list
Below the existing entries in the file on a blank line, add the following two lines:
deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
Your file should look a little like this: