I use Simple MTPFS to access the Android phone and rsync to sync the music files.
./mount_android.sh ~/Documents/temp/android
Trying to mount android to '/home/mat/Documents/temp/android'.
Could not retrieve device storage.
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
""" | |
Recipe by Mateus Mercer ~ [email protected] | |
This code is released with the MIT license, if you | |
didn't got a copy, get a copy at https://opensource.org/licenses/MIT | |
12/2016 | |
""" | |
I use Simple MTPFS to access the Android phone and rsync to sync the music files.
./mount_android.sh ~/Documents/temp/android
Trying to mount android to '/home/mat/Documents/temp/android'.
Could not retrieve device storage.
function createMatrix(x, y) { | |
matrix = new Array(y); | |
// Popula matriz | |
for (var i = matrix.length - 1; i >= 0; i--) { | |
matrix[i] = new Array(x) | |
} | |
return matrix; | |
} |
package net.matbm.forca; | |
import java.util.Scanner; | |
import static java.lang.System.out; | |
public class Main { | |
public static void main(String[] args) { | |
String palavra = "otorrinolaringologista"; | |
int maxErro = 5; |
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.4.1.slim.min.js | |
// ==/UserScript== |
var capitalByState = { | |
'MG': 'Belo Horizonte', | |
'PR': 'Curitiba', | |
'SP': 'São Paulo' | |
} // Allocated only one time and the data isn't INSIDE the function | |
// so 'capitalByState' can come from a external source! | |
var States = {}; | |
States.getCapitalCity = state => capitalByState[state] || 'Not Found'; // Again, allocated only one time, simulates static |
#include <iostream> | |
#include <vector> | |
#include "sortalgs.h" | |
int main(int argc, char **argv) { | |
std::vector<int> v = {1, 5, 2, 3, -3, -2, -1, 0, 3, 1}; | |
sortalg<Bubble>::sort(v.begin(), v.end()); | |
auto start = v.begin(); |
# CREATES 100 notifications in your desktop, super dangerous script, beware | |
from notifypy import Notify | |
import threading | |
ammount = 100 | |
def notify(num): | |
notification = Notify() | |
notification.title = "Cool Title: " + str(num) |
#!/bin/bash | |
#--------------------------------------------------------------------------------# | |
# # | |
# Fix WSL DNS resolution with Cisco AnyConnect # | |
# # | |
# ! Don't forget to set this configuration in /etc/wsl.conf: # | |
# [network] # | |
# generateResolvConf = false # | |
# # | |
# Based on: # |