This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt | |
cat /mnt/d/Dropbox/EMakers/pautas_atas/templates/pauta.txt >> /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt | |
sed -i -- "s/DATA/$2/g" /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt | |
sed -i -- "s/TIPO/$1/g" /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt | |
vim /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
touch /mnt/d/Dropbox/EMakers/pautas_atas/2018/atas/Ata_$1_$2.txt | |
cat /mnt/d/Dropbox/EMakers/pautas_atas/2018/pautas/Pauta_$1_$2.txt >> /mnt/d/Dropbox/EMakers/pautas_atas/2018/atas/Ata_$1_$2.txt | |
sed -i -- "s/PAUTA/ATA/g" "/mnt/d/Dropbox/EMakers/pautas_atas/2018/atas/Ata_$1_$2.txt" | |
vim /mnt/d/Dropbox/EMakers/pautas_atas/2018/atas/Ata_$1_$2.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gabriel Marques de Melo | |
// DCC - UFLA | |
/************************************************* | |
* Public Constants | |
*************************************************/ | |
#define NOTE_B0 31 | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import peewee | |
from peewee import * | |
from bs4 import BeautifulSoup | |
import sys | |
import os | |
db = MySQLDatabase("redacao_inteligente", user="root", passwd="emakersjr") | |
class Blog(peewee.Model): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import flashbdev | |
os.VfsFat.mkfs(flashbdev.bdev) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
import ubinascii | |
mac = ubinascii.hexlify(network.WLAN().config('mac'),':').decode() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure that you have properly installed mod_wsgi | |
# sudo apt install libapache2-mod-wsgi-py3 | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
DocumentRoot /home/pi/projects/recrear-lp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call( | |
document.querySelectorAll('*'), | |
function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} | |
} | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install bbswitch-dkms | |
sudo vi /etc/modprobe.d/blacklist.conf | |
###### add this below | |
# Blacklist the alternative nvidia module | |
blacklist nouveau | |
# Blacklist the original nvidia module | |
blacklist nvidia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install git | |
git clone https://gitlab.com/st42/termux-sudo | |
cd termux-sudo | |
cat sudo > /data/data/com.termux/files/usr/bin/sudo | |
chmod 700 /data/data/com.termux/files/usr/bin/sudo |
OlderNewer