| # How to use "acme.sh" to set up Lets Encrypt without root permissions | |
| # See https://github.com/Neilpang/acme.sh for more | |
| # This assumes that your website has a webroot at "/var/www/<domain>" | |
| # I'll use the domain "EXAMPLE.com" as an example | |
| # When this is done, there will be an "acme" user that handles issuing, | |
| # updating, and installing certificates. This account will have the following | |
| # (fairly minimal) permissions: | |
| # - Host files at http://EXAMPLE.com/.well-known/acme-challenge |
| var canvas = document.createElement('canvas'); | |
| var gl; | |
| var debugInfo; | |
| var vendor; | |
| var renderer; | |
| try { | |
| gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); | |
| } catch (e) { | |
| } |
| import { SafeAreaProvider } from 'react-native-safe-area-context'; | |
| import * as AuthSession from 'expo-auth-session'; | |
| import { RefreshTokenRequestConfig, TokenResponse, TokenResponseConfig } from 'expo-auth-session'; | |
| import jwtDecode from 'jwt-decode'; | |
| import { useEffect, useState } from 'react'; | |
| import { Alert, Platform, Text, TouchableOpacity } from 'react-native'; | |
| import { useAsyncStorage } from '@react-native-async-storage/async-storage'; | |
| import * as React from 'react' | |
| import * as WebBrowser from 'expo-web-browser'; |
I spend a lot of time to replace gammu with python-gsmmodem for my Huawei E3531.
The python exemple is just an exemple, it's incomplete. It does not read sms in the memory (if you receive a sms before starting the script). And it does not concat multiple parts sms (it will print unordered parts).
Also, as your live read sms script is running, you cannot send sms with another script because the dongle is busy.
Here is my own script to read all kind of SMS and send in same time.
I live abroad and have only 1 sim card slot in my phone. It holds the SIM card of the country that I am in right now. But I also have another SIM card from my home country which receives my banking SMS codes. I can't afford to lose the "home" SIM card, so I decided to keep it in my house and forward the SMS messages to my main phone and computer via Telegram (just like Whatsapp, but so much better).
I also made a choice to use a 4G/LTE stick instead of 3G, because the 3G signal in my area is getting worse in worse due to operators upgrading their equipment.
- Raspberry Pi 4
- Huawei E8372 (but can be any similar)
| cd\Program Files\Microsoft Office\Office16 | |
| cd\Program Files (x86)\Microsoft Office\Office16 | |
| cscript OSPP.VBS /sethst:kms.digiboy.ir | |
| cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
| slmgr.vbs /ckms |
| --- | |
| Description: AWS AppSync Notes API | |
| Parameters: | |
| APIName: | |
| Type: String | |
| Description: Name of the API - used to generate unique names for resources | |
| MinLength: 3 | |
| MaxLength: 20 | |
| AllowedPattern: '^[a-zA-Z][a-zA-Z0-9_]*$' |
| function uploadFiles(url) { | |
| var response = UrlFetchApp.fetch(url) | |
| var fileName = getFilenameFromURL(url) | |
| var folder = DriveApp.getFolderById('1IxMiswEfi67ovoBf8ZH1RV7qVPx1Ks6l'); | |
| var blob = response.getBlob(); | |
| var file = folder.createFile(blob) | |
| file.setName(fileName) | |
| file.setDescription("Download from the " + url) | |
| return file.getUrl(); |
| var commentSchema = new Schema({ | |
| postId: { | |
| type: String, | |
| hashKey: true | |
| }, | |
| id: { | |
| type: String, | |
| rangeKey: true, | |
| default: shortId.generate |