Skip to content

Instantly share code, notes, and snippets.

View apinter's full-sized avatar
🏠
Working from home

Attila Pinter apinter

🏠
Working from home
  • OpenStorage.xyz
  • Jakarta, Indonesia
View GitHub Profile
@89luca89
89luca89 / microos-status.sh
Last active November 13, 2023 15:05
This script will compare current package list on a system with the "ideal" one of a fresh install of the same system.
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
sudo "$0" "$@"
exit
fi
GREEN='\033[1m\033[32m'
YELLOW='\033[1m\033[33m'
CLEAR='\033[0m'
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"comment.block",
"comment.block.documentation",
"comment.line",
"constant",
"constant.character",
@ryu1kn
ryu1kn / README.md
Last active March 18, 2024 14:19
Getting GCP access token from a service account key JSON file

Getting GCP access token from a service account key

Use your service account's key JSON file to get an access token to call Google APIs.

Good for seeing how things work, including the creation of JWT token.

To create a JWT token, you can replace create-jwt-token.sh script with tools like step.

If you just want to get an access token for a service account,

@z3t0
z3t0 / README.md
Last active August 4, 2021 20:21
Installing Arch Linux on Chuwi Vi8

Installing Linux on the Chuwi Vi8

This gist is a work in progress with various tips and bits of information designed to aid anyone in trying to get linux working on their Chuwi Vi8.

NOTE: As of yet, none of the information has been CONFIRMED by myself!!! I will be providing links that point to all the resources where other users have reported certain things to be working. This disclaimer will be removed once I test and confirm everything.

Support

This project aims to get Arch Linux running on the device with wifi and touch working. Other priorities can be added through requests.

Specifications and Drivers

@halberom
halberom / opt1_template.j2
Last active April 12, 2024 11:33
ansible - example of template if else
{# style 1 - long form #}
{% if filepath == '/var/opt/tomcat_1' %}
{% set tomcat_value = tomcat_1_value %}
{% else %}
{% set tomcat_value = tomcat_2_value %}
{% endif %}
{# style 2 - short form #}
{% set tomcat_value = tomcat_1_value if (filepath == '/var/opt/tomcat_1') else tomcat_2_value %}
@porjo
porjo / timelapse.md
Last active May 25, 2023 16:14
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

Simple glob:

ffmpeg -r 24 -i '*.JPG' -s hd1080 -vcodec libx264 timelapse.mp4

Start from DSC_0079.JPG

ffmpeg -r 24 -f image2 -start_number 79 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse2.mp4