Skip to content

Instantly share code, notes, and snippets.

View ertugerata's full-sized avatar
💭
tired

Ertuğrul Erata ertugerata

💭
tired
View GitHub Profile
@linuxcaffe
linuxcaffe / Makefile
Created November 14, 2021 02:45
hledger+pandoc invoice generator
INVOICECMD=./mkinvoice client.md work.client.dev assets:receivable:client:reimbursement
client-dry:
$(INVOICECMD)
client:
$(INVOICECMD) -m -p
@read -p "press enter to commit, or ctrl-c to cancel: "
$(INVOICECMD) -c
@rstacruz
rstacruz / Arch Linux ARM on Crostini.md
Last active March 16, 2023 05:22
Arch Linux ARM on Crostini

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@eldadfux
eldadfux / .env
Last active June 29, 2022 05:24
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
@ismailyenigul
ismailyenigul / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Last active October 11, 2023 13:11
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. certificatesresolvers.myresolver.acme.email=myemail@gmail.com
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml
@uogbuji
uogbuji / debian-pydev.md
Last active August 25, 2023 01:10
My Python dev setup for Linux (Debian, Ubuntu, Mint & ChromeOS/Crostini)

Python dev environment on Linux

User local install as much as possible, leaving system-wide kit (e.g. python & python-pip .debs) alone. Tested on Debian, Ubuntu, Mint & ChromeOS/Crostini.

Environment

Set up the dev environment (this is the only system-wide part):

sudo apt install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev
@uogbuji
uogbuji / pixelbook-dev-setup.md
Last active May 17, 2024 00:35 — forked from cassiozen/pixelbook-dev-setup.md
Notes on setting up Pixelbook for development

Pixelbook or Pixel Slate Setup

Partly updated June 2023

General caution: Chrome OS is a secure OS by design, but this has at least one key consequence. If you change your Google account password, you will still be required to enter the old password the next time you access each Chrome OS device. Devices are encrypted with that password, so the OS needs to decrypt using the old password then re-encrypt using the new one. If you forget your old password you will lose access to your Chrome OS device data. As always, make sure you keep backups up to date.

Fast User Switching

If you have multiple Chrome OS accounts (Say, work and play), you can quickly sitch between them without logging out:

@kgersen
kgersen / setup-lxd for crostini.txt
Created February 28, 2019 04:24
setup lxd client in penguin crostini vm (requires ChromeOS linux apps)
source: https://discuss.linuxcontainers.org/t/using-lxd-on-your-chromebook/3823
ctrl-alt-t to access crosh
vsh termina (or vmc start termina)
lxc config set core.https_address :8443
lxc config set core.trust_password some-password
# create an Ubuntu container
lxc launch ubuntu:18.04 c1
# copy the lxc command from it
@Kirens
Kirens / procedure.md
Created January 13, 2018 14:27
Deploying a NixOS server on DigitalOcean

Prerequisites

We'll use NixOps to deploy, so we need to install it

nix-env -i nixops

And to deploy on DigitalOcean we need to have an account and create an API access token for it.

@ilkermanap
ilkermanap / excel_modify.py
Last active December 14, 2017 09:21
excel file manipulation using openpyxl, simple example / openpyxl ile excel dosya duzenleme basit ornek
from openpyxl import load_workbook
# Kaynak dosyayi oku
dosya = load_workbook('deneme.xlsx')
# icindeki tablo isimlerini yazdir
print(dosya.get_sheet_names())
# ben bos dosya kullandim. icinde Sheet1 vardi
# sayfa degiskeni, artik Sheet1
@MuhammetDilmac
MuhammetDilmac / parser.py
Created January 11, 2017 12:30
Pisi pspec.xml dosyasından build dependency'leri çekip ekrana yazan python scripti
#!/usr/bin/env python3
import sys
import os
import xml.etree.ElementTree as ET
# Argüman kontrolü
if not len(sys.argv) == 2:
print("[!] Argüman sayısı uyumsuz. Uygulamaya argüman olarak dosya yolunu vermelisiniz.")
print("[+] Kullanımı: python3 %s pspec.xml" % sys.argv[0])