Skip to content

Instantly share code, notes, and snippets.

@luxzg
luxzg / Porteus Kiosk - files and backup before 6.0.0 version.txt
Created April 24, 2024 11:38
Porteus Kiosk - files and backup before 6.0.0 version
###############################################################
# 2024-04-08: Distribution Release: Porteus Kiosk 6.0.0
###############################################################
https://porteus-kiosk.org/download.html
- Need to make account at Customer Panel and download custom ISO tied to your account, and always updated
###############################################################
# 2023-03-27 : Distribution Release: Porteus Kiosk 5.5.0
###############################################################
@jikamens
jikamens / namecheap-dns.py
Last active August 18, 2024 17:54
namecheap-dns.py - Export/import DNS records from/to Namecheap
#!/usr/bin/env python3
"""
namecheap-dns.py - Export/import DNS records from/to Namecheap
This script can export DNS records from a domain in Namecheap to a YAML file or
import records from a YAML file in the same format into Namecheap. I use this
script to maintain my Namecheap DNS records in a source repository with change
history, i.e., "configuration as code" for my Namecheap DNS records.
@fxm90
fxm90 / SwiftUI+HTML.swift
Created June 28, 2021 14:43
Extension that converts Strings with basic HTML tags to SwiftUI's Text (Supports SwiftUI 3.0 / iOS 15.0).
//
// SwiftUI+HTML.swift
//
// Created by Felix Mau on 28.05.21.
// Copyright © 2021 Felix Mau. All rights reserved.
//
import SwiftUI
@available(iOS 15.0, *)
@sai-krishna-acceleron
sai-krishna-acceleron / generate_keys.py
Created October 1, 2020 03:34
Generating keys with GPG
import os
import gnupg
pwd = os.getcwd()
gpg = gnupg.GPG(gnupghome=pwd, verbose=False)
gpg.encoding = "utf-8"
key_input = gpg.gen_key_input(key_type="RSA", key_length=2048, name_real="Si Ki", name_comment="dev",
name_email="io@acceleron")
@patmigliaccio
patmigliaccio / install-cf-gae-ssl.md
Last active August 21, 2024 16:43
Configuring Cloudflare SSL/TLS certificates on Google App Engine

Configuring Cloudflare SSL/TLS on Google App Engine

Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.

Google App Engine - Custom Domains

Add Domains

Register the root domain with Google Cloud Platform at the following:

@chimmelb
chimmelb / chromiumpackages.config
Last active June 7, 2024 14:55
.ebextensions config file to load NodeJS EB instance with packages needed for Puppeteer/Chromium
# This is for ElasticBeanstalk with Amazon Linux 2023. For previous Linux 2 or Linux 1, see revisions for ideas
packages:
yum:
cups-libs: []
libdrm: []
libXdamage: []
libXfixes: []
libXrandr: []
mesa-libgbm: []
libxkbcommon: []
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active September 7, 2024 15:12 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@leilee
leilee / UIView+GradientBorder.swift
Last active March 29, 2024 12:05
Add gradient border to UIView
public extension UIView {
private static let kLayerNameGradientBorder = "GradientBorderLayer"
public func setGradientBorder(
width: CGFloat,
colors: [UIColor],
startPoint: CGPoint = CGPoint(x: 0.5, y: 0),
endPoint: CGPoint = CGPoint(x: 0.5, y: 1)
) {
@Gnzlt
Gnzlt / RadioButtonPreference.java
Created February 22, 2017 12:24
Android check box preference with check box replaced by radio button
public class RadioButtonPreference extends CheckBoxPreference {
public RadioButtonPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setWidgetLayoutResource(R.layout.preference_widget_radiobutton);
}
public RadioButtonPreference(Context context, AttributeSet attrs) {
super(context, attrs);
setWidgetLayoutResource(R.layout.preference_widget_radiobutton);