Skip to content

Instantly share code, notes, and snippets.

View caguiclajmg's full-sized avatar
🈁
オラオラオラ

John Mark Gabriel Caguicla caguiclajmg

🈁
オラオラオラ
View GitHub Profile
@caguiclajmg
caguiclajmg / README.adoc
Last active July 29, 2024 01:02 — forked from danbst/README.adoc
Pure Nix Minecraft launcher. For every MC version!

Pure Nix Minecraft launchers

  1. Download .nix file

  2. Run:

    $ nix run -f all-minecrafts.nix versions.v1_8_9.client -c minecraft
  3. Enjoy (…​power of fixed-output derivations)!

// ==UserScript==
// @name TextReplace
// @namespace https://guarandoo.jp
// @version 0.1
// @description Simple text replacement
// @author [email protected]
// @match https://www.lowendtalk.com/*
// @grant none
// ==/UserScript==
#!/bin/bash
# . <(curl https://gist.githubusercontent.com/caguiclajmg/6f8a7295b7edbde72de1ddbf419ffae5/raw/centos-kvm.sh)
if [ -z "$HOSTNAME" ]; then read -p 'Hostname: ' HOSTNAME; fi
if [ -z "$DOMAIN" ]; then read -p 'Domain: ' DOMAIN; fi
if [ -z "$EMAIL" ]; then read -p 'Email: ' EMAIL; fi
FQDN=${HOSTNAME}.${DOMAIN}
#!/bin/bash
dnf update -y
firewall-cmd --add-service={ssh,cockpit} --permanent
systemctl enable firewalld --now
dnf module install virt -y
systemctl enable libvirtd --now
#!/bin/bash
# Run this script directly from the raw gist: . <(curl -L https://git.io/JUvy1)
function error {
echo -e "\033[0;31m[ERROR] ${1}\033[0m"
exit $2
}
function warn {
@caguiclajmg
caguiclajmg / freeipa-setup-linode.sh
Last active August 2, 2020 14:14
Set up a FreeIPA node on Linode
#!/bin/bash
# <UDF name="hostname" label="Hostname" />
# <UDF name="timezone" label="Timezone" example="Asia/Tokyo" />
# <UDF name="role" label="Role" oneof="Server,Replica" />
# <UDF name="server" label="FQDN of server to set up a replica of" />
# <UDF name="domain" label="Domain" example="example.com" />
# <UDF name="realm" label="Realm" example="EXAMPLE.COM" />
# <UDF name="password_dm" label="Directory Manager Password" />
# <UDF name="password_admin" label="Admin Password" />
#!/bin/bash
# FreeIPA installer script for CentOS 8
# https://gist.github.com/caguiclajmg/d293c49dfc4514e12ec81f50c6ceb724
COLOR_ERROR='\033[0;31m'
COLOR_WARNING='\033[1;33m'
COLOR_NONE='\033[0m'
function die {
import facebook
import requests
accessToken = "page_access_token_here"
graph = facebook.GraphAPI(access_token=accessToken, version="3.1")
parent = graph.put_object(
parent_object="page_id_here",
connection_name="feed",
message="Bruh Test")
@caguiclajmg
caguiclajmg / code-server.sh
Created November 16, 2019 21:27
Set up code-server with Nginx reverse Proxy
#!/bin/bash
CFG_TZ=<timezone>
CFG_URL=<mydomain.com>
CFG_SUBDOMAINS=<subdomains>,
CFG_EMAIL=<email>
CFG_PASSWORD=<password>
CFG_DHLEVEL=2048
CFG_ONLYSUBDOMAINS=true
@caguiclajmg
caguiclajmg / stubby.yml
Last active November 16, 2019 14:45
Stubby DNS/TLS Configuration
################################################################################
######################## STUBBY YAML CONFIG FILE ###############################
################################################################################
# This is a yaml version of the stubby configuration file (it replaces the
# json based stubby.conf file used in earlier versions of getdns/stubby).
#
# For more information see
# https://dnsprivacy.org/wiki/display/DP/Configuring+Stubby
#
# This format does not fully support all yaml features - the restrictions are: