Skip to content

Instantly share code, notes, and snippets.

View jcf's full-sized avatar
❤️

James Conroy-Finn jcf

❤️
View GitHub Profile
@jcf
jcf / duckduckgo.el
Created November 1, 2016 19:29
Function to search from Emacs using DuckDuckGo.
; DuckDuckGo
(defun duckduckgo-search (text)
"Search DuckDuckGo from Emacs."
(interactive "sSearch: ")
(browse-url
(concat "https://duckduckgo.com/?q="
(replace-regexp-in-string " " "+" text))))
@jcf
jcf / sync.sh
Last active April 19, 2020 09:32
Parallel rsync script
#!/usr/bin/env zsh
# Usage:
#
# sync.sh
set -ex
# Number of rsync processes to run
n=10
# Remote host address
@jcf
jcf / uefisetup.sh
Created October 1, 2016 15:32 — forked from Apsu/uefisetup.sh
Arch Linux UEFI Setup
# **************** READ THIS FIRST ******************
#
# This is not a script for you to run. I repeat, do not download and run this!
#
# This is only a guide to show the required steps for successful UEFI + GRUB2 installation
# Many of the choices are examples or assumptions; don't blindly type shit into your machine
# until/unless you at least read the comments around each command
#
# These steps assume you've booted in UEFI mode by preparing your USB stick per these instructions:
# https://wiki.archlinux.org/index.php/UEFI#Archiso
@jcf
jcf / Install
Created October 1, 2016 15:32 — forked from jasonwryan/Install
Arch Linux installation procedure for LVM on LUKS: UEFI EFISTUB boot with gumiboot on a Samsung Series 9 laptop.
# Notes for installing on Samsung Series 9
# UEFI boot: LVM on LUKS
#
# See the full blog post:
# http://jasonwryan.com/blog/2013/01/25/uefi/
# check you are booted in uefi
modprobe efivars
ls /sys/firmware/efi/vars
@jcf
jcf / log.clj
Created September 4, 2016 11:22
Refresh logback.xml from a Clojure REPL
(ns app.log
(:require [clojure.java.io :as io])
(:import ch.qos.logback.classic.joran.JoranConfigurator
ch.qos.logback.classic.LoggerContext
org.slf4j.LoggerFactory))
(defn reload-logback
[]
(let [context ^LoggerContext (LoggerFactory/getILoggerFactory)
configurator (JoranConfigurator.)
@jcf
jcf / uk-encryption.txt
Created January 19, 2016 07:46
UK government's response to weakening encryption
The Government is not seeking to ban or limit encryption. The Government recognises the important role that encryption plays in keeping people’s personal data and intellectual property safe online.
This Government recognises the importance of encryption, which helps keep people's personal data and intellectual property safe from theft by cyber means. It is fundamental to our everyday use of the internet. Without the development of strong encryption allowing the secure transfer of banking details there would be no online commerce. As Baroness Shields made clear in the House of Lords on 27 October 2015, the Government does not require the provision of a back-door key or support arbitrarily weakening the security of internet services.
Clearly as technology evolves at an ever increasing rate, it is only right that we make sure we keep up, to keep our citizens safe. There shouldn’t be a guaranteed safe space for terrorists, criminals and paedophiles to operate beyond the reach of law.
The Government is clear we
@jcf
jcf / mu.log
Last active December 14, 2015 23:19
OS X nixpkgs: unable to install mu https://github.com/NixOS/nixpkgs/issues/11723
installing ‘mu-0.9.13’
these derivations will be built:
/nix/store/4srzc7hp6p4w35989vjj5j1wrbvihcf6-mu-0.9.13.drv
building path(s) ‘/nix/store/0aph69q1nck2f4zqjc5g7wxz68421d60-mu-0.9.13’
unpacking sources
unpacking source archive /nix/store/4wsrhf7g1dji4akbqpjkr4ckq8wknbr2-v0.9.13.tar.gz
source root is mu-0.9.13
patching sources
configuring
libtoolize: putting auxiliary files in '.'.

Keybase proof

I hereby claim:

  • I am jcf on github.
  • I am jamesconroyfinn (https://keybase.io/jamesconroyfinn) on keybase.
  • I have a public key whose fingerprint is 6E21 60B7 0BDB DB5E 867A 48E0 AA61 0728 1C01 8BF9

To claim this, I am signing this object:

@jcf
jcf / checkpoint.sh
Last active March 4, 2024 18:38 — forked from bubenkoff/checkpoint.sh
Endpoint Security VPN FULL start/stop script for Mac OS X
#!/bin/bash
# Toggle Checkpoint VPN firewall and VPN client
#
# http://git.io/vWAPU
set -e
APP='/Applications/Endpoint Security VPN.app'
KEXT='/System/Library/Extensions/cpfw.kext'
PLIST='/Library/LaunchDaemons/com.checkpoint.epc.service.plist'
SERVICE='com.checkpoint.epc.service'
@jcf
jcf / spam.txt
Created September 16, 2015 14:15
Persistent unsolicited emails from apiware
Hi James,
I still try to figure out who manages Listora API’s.
I would like to set up a conversation to share how APIware can help Listora to onboard new developers, ensure proper API usage and provide superior documentation to simplify developers engagement.
If you are the appropriate person to speak with, what does your calendar look like? If not, who do you recommend I talk to?
If timing is not good let me know as well please, in the meantime I will subscribe you to our newsletter, just to keep you updated.