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 | |
#A compact version of https://github.com/proprietary/chromium-widevine specialized for my own system and uses | |
if [ "$EUID" != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
#wherever you want, preferably where script is located |
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
char *inputString(FILE* fp, size_t chunk){ | |
if(chunk < 1) | |
chunk = 1; | |
char *str; | |
int ch; | |
size_t len = 0; | |
str = realloc(NULL, sizeof(*str) * chunk); | |
if(!str)return str; | |
while(EOF!=(ch=fgetc(fp)) && ch != '\n'){ | |
str[len++]=ch; |
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
# C++ objects and libs | |
*.slo | |
*.lo | |
*.o | |
*.a | |
*.la | |
*.lai | |
*.so | |
*.so.* | |
*.dll |
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
<!-- copiar e colar o card para testar o exemplo --> | |
<ion-grid style="padding-top: 60px;"> | |
<ion-row style="text-align: center; position: absolute;"> | |
<ion-card class="cardWidth"> | |
<ion-card-header> | |
<ion-card-subtitle>Card Subtitle</ion-card-subtitle> | |
<ion-card-title>Card Title</ion-card-title> | |
</ion-card-header> | |
<ion-card-content> |