Skip to content

Instantly share code, notes, and snippets.

View digitalknk's full-sized avatar

Jon Molina digitalknk

View GitHub Profile
@digitalknk
digitalknk / framework.nix
Created November 10, 2021 07:35
NixOS Configuration for the Framework Laptop
#
# NixOS Configuration for Framework Laptop
#
{ config, lib, pkgs, modulesPath, ... }:
{
boot.kernelParams = [ "mem_sleep_default=deep" ];
@digitalknk
digitalknk / compose-caddy.yml
Created June 28, 2020 18:10 — forked from pascalandy/compose-caddy.yml
Traefik V2 / my docker compose files
version: "3.3"
services:
caddy:
image: abiosoft/caddy:1.0.3-no-stats
container_name: caddy
hostname: caddy
restart: unless-stopped
volumes:
BEGIN MESSAGE.
gh9Xsq7ldiEhLy5 aLNhEfZ1wubClUw vrrmxiiErbTUTr0 tjcHWW6u3vKWB8L
oZTopVUoV0A1X7Z 8EKzgxGla9QTCKq 6Xr2MZHgg7Ej4Uq BC8nQhSj4d9Ire0
Gx2JgLDqMCu0rce 2ZonxUvPQOX7jpl nIE5CKFTBAPrRjz wvJwilcSjx5zljR
KGvhP4IsKnLortF 1qaHaFcrChM9nTY UnAIO7tiSkCT.
END MESSAGE.
@digitalknk
digitalknk / restart coreaudio daemon
Created July 9, 2019 17:02 — forked from felipecsl/restart coreaudio daemon
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@digitalknk
digitalknk / main.go
Created April 29, 2018 23:06 — forked from eduncan911/main.go
Go/Reading Console Inputs
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {
Verifying my Blockstack ID is secured with the address 1FTKKCiCFQFA4oW9B2pxZpe1BFnxQvWr88 https://explorer.blockstack.org/address/1FTKKCiCFQFA4oW9B2pxZpe1BFnxQvWr88
@digitalknk
digitalknk / auto-remove-sublime-license-popup
Created March 1, 2017 00:27 — forked from egel/auto-remove-sublime-license-popup
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
### Keybase proof
I hereby claim:
* I am digitalknk on github.
* I am digitalknk (https://keybase.io/digitalknk) on keybase.
* I have a public key whose fingerprint is 0D61 DE94 BA6E E570 6FC4 F2EE F3FC 5EE9 83E7 BA89
To claim this, I am signing this object:

Setting up a Persistent, Unified Chat Proxy & Shell Client

Overview

This guide provides a steps for setting up a unified shell chat proxy & client running in a persistent screen session. The following steps are covered:

  • Server operating system & packages will be updated.
  • Timezone will be updated.
from datetime import datetime
import urllib2
import urllib
import json
import os
def ajaxRequest(url=None):
"""
Makes an ajax get request.
url - endpoint(string)