Skip to content

Instantly share code, notes, and snippets.

View microamp's full-sized avatar
💭
>°))彡

Sangho Na microamp

💭
>°))彡
  • Auckland, New Zealand
  • 11:59 (UTC +12:00)
View GitHub Profile
@digikar99
digikar99 / lisp-resources-digikar-2020.md
Last active November 9, 2023 04:35
If programming is more than just a means of getting things done for you, then Common Lisp is for you!
@rougier
rougier / bordered-emacs.el
Last active January 16, 2021 22:58
Bordered emacs
;; Copyright 2020 Nicolas Rougier - BSD License
;; Usage: emacs -q -l bordered.el
(set-face-font 'default "Roboto Mono Light 14")
(setq default-frame-alist
(append (list '(width . 72) '(height . 40)
'(vertical-scroll-bars . nil)
'(internal-border-width . 0)
'(font . "Roboto Mono Light 14"))))
(set-frame-parameter (selected-frame)
'internal-border-width 0)
@ideoforms
ideoforms / sox-cheat-sheet.sh
Last active June 6, 2024 05:14
sox cheat sheet
################################################################################
# sox cheat sheet
################################################################################
# Example commands for the sox command-line audio processing tool,
# for manipulating or batch processing audio files.
################################################################################
# Daniel Jones <dan-web@erase.net>
################################################################################
################################################################################
@creichert
creichert / .gnus.el
Last active May 15, 2024 10:11
gnus multiple nnimap accounts
;; see my config for the other parts:
;;
;; https://github.com/creichert/dotfiles/blob/master/emacs/.gnus
;;
;; I typically put the below settings into a file called `gnus-private.el`,
;; and require that into my gnus to populate these settings.
;;
;; https://github.com/creichert/dotfiles/blob/master/emacs/.gnus#L61
@bjuretko
bjuretko / traefik_ssl_tls.sh
Last active August 15, 2022 10:24
SSL/TLS certificates with traefik
#!/bin/bash
if [ -z "$1" ]
then
echo "Extract certificate and private key from pfx file for configuring TLS endpoints"
echo "Please provide pfx file as first argument"
exit 1
fi
read -p "Please enter import password: " PASS
@TeMPOraL
TeMPOraL / init-web-server.el
Created April 3, 2018 21:45
Serve files over HTTP directly from Emacs.
;;;; A webserver in Emacs, because why not.
;;;; Basically a fast replacement for serve_this in Fish.
(use-package web-server
:config
(defvar my/file-server nil "Is the file server running? Holds an instance if so.")
(defun my/ws-start (handlers port &optional log-buffer &rest network-args)
@gangsta
gangsta / SSL.md
Last active February 23, 2024 03:56
How to Setting Up a Comodo SSL Cert

How to Setting Up a Comodo SSL Cert

  • I advice you to buy SSL Certs from officially Comodo only , or some SSL reseller whose you trust.

These are the steps I went through to set up an SSL cert. Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file (Certificate Signing Request). You’ll be asked for the content of the CSR file when ordering the certificate:

openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
@vdparikh
vdparikh / main.go
Created November 9, 2017 19:06
GoLang Verify/Generate JWT Token
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strings"
"time"
@sheikhwaqas
sheikhwaqas / setup-mongodb34-ubuntu16.sh
Last active September 17, 2020 09:55
Install mongoDB 3.4 on Ubuntu 16.04 LTS
###############################################################################
# Install mongoDB Server on Ubuntu 16.04 LTS
###############################################################################
# Import the Public Key used by the Ubuntu Package Manager
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
# Create a file list for mongoDB to fetch the current repository
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
@edyesed
edyesed / serverless.yml
Created December 21, 2016 17:21
Example serverless.yml
# read cloudtrail things dropped off at s3, put them in ES
service: cloudtrailindexer
provider:
name: aws
runtime: python2.7
# you can overwrite defaults here
# stage: dev
region: us-west-2