// mmcli must be available
// if not, install using snap install modem-manager
$ mmcli -L ;; check listed modem
$ mmcli -m x ;; x is modem id listed
// use nmcli (network manager) to setup
$ nmcli c add type gsm ifname <port> con-name <arbitrary> apn <apn url>
$ nmcli r wwan on ;; setup wwan to on
This file contains 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 | |
all_project_ids=`curl --header "PRIVATE-TOKEN: ${gitlab_access}" \ | |
"https://gitlab.com/api/v4/projects?membership=true&simple=true&per_page=100" | jq '.[] | select(.path_with_namespace|test("'${filter}'")) | .id'` | |
if [ "$1" == "protect" ]; then | |
# protecc | |
for i in $all_project_ids; do | |
curl --request POST --header "PRIVATE-TOKEN: ${gitlab_access}"\ | |
"https://gitlab.com/api/v4/projects/${i}/protected_branches?name=master&push_access_level=30&merge_access_level=30&unprotect_access_level=40" | |
done |
This file contains 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 | |
all_project_ids=`curl -s --header "PRIVATE-TOKEN: ${gitlab_access}" \ | |
"https://gitlab.com/api/v4/projects?membership=true&simple=true&per_page=100" | jq '.[] | select(.path_with_namespace|test("'${filter}'")) | .id'` | |
echo $all_project_ids | |
for i in $all_project_ids; do | |
last_job=`curl -s --globoff --header "PRIVATE-TOKEN: ${gitlab_access}" "https://gitlab.com/api/v4/projects/${i}/jobs" | jq '.[0] | select(.id != null) | .id'` | |
if [ "$last_job" != "" ]; then | |
echo "retrying job id: $last_job" |
This file contains 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
FROM nginx:1.19 | |
COPY *.pem /etc/nginx/certs/ | |
COPY nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 443 | |
ENTRYPOINT ["nginx", "-g", "daemon off;"] |
This file contains 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
# Run this on ubuntu or debian | |
1. Install Docker | |
2. Install Docker-Compose | |
3. Pull https://gitlab.com/hardtmann/fit-to-work-web | |
4. Open prepare.sh | |
5. Modify all devices' Vendor ID and Product ID, and save | |
6. Run prepare.sh with sudo | |
7. If all is well, when you connect any of the devices, you should see 'tempdev, hbpdev, or pulseoxidev' under /dev | |
8. Open docker-compose.yml, set "TEMPDEV_ENABLED, HBPDEV_ENABLED, PULSEOXIDEV_ENABLED" to either true or false, depending on your need |
This file contains 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
version: '2' | |
services: | |
shadow_tmp: | |
image: registry.gitlab.com/dekape/shadow/shadow:latest | |
container_name: shadow_tmp | |
environment: | |
- RUN_AS_TEMPORARY_CONTAINER=true | |
privileged: true | |
volumes: |
This file contains 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
<?php | |
phpinfo(); | |
?> |
This file contains 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
int do_once = 0; | |
typedef struct __attribute__((__packed__)) { | |
uint8_t bLength; | |
uint8_t bDescriptorType; | |
uint16_t bcdUSB; | |
uint8_t bDeviceClass; | |
uint8_t bDeviceSubClass; | |
uint8_t bDeviceProtocol; |
This file contains 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
FROM ubuntu | |
MAINTAINER Isa Ansharullah <[email protected]> | |
RUN apt-get update | |
RUN apt-get install -y python | |
RUN apt-get install -y software-properties-common | |
RUN add-apt-repository -y ppa:team-gcc-arm-embedded/ppa | |
RUN apt-get update | |
RUN apt-get install -y gcc-arm-embedded |
This file contains 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
//------------------------------------------------------------------------------ | |
// File generated by LCD Assistant | |
// http://en.radzio.dxp.pl/bitmap_converter/ | |
//------------------------------------------------------------------------------ | |
const unsigned char logo_bukalapak [] = { | |
#if 0 | |
0x00, | |
#else | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
NewerOlder