keytool -genkey -alias client -keyalg RSA -keystore client.jks -keysize 2048
keytool -export -alias client -file client.crt -keystore client.jks
keytool -import -v -trustcacerts -alias client -file client.crt -keystore clienttrust.jks
#!/usr/bin/env bb | |
; =========================================================================== ; | |
; FILE: hack-captive-portal.bb ; | |
; USAGE: sudo bb hack-captive-portal.bb ; | |
; ; | |
; DESCRIPTION: This script helps to pass through the captive portals in ; | |
; public Wi-Fi networks. It hijacks IP and MAC from somebody ; | |
; who is already connected and authorized on captive portal. ; | |
; Tested in Ubuntu 16.04 with different captive portals in ; | |
; airports and hotels all over the world. ; |
keytool -genkey -alias client -keyalg RSA -keystore client.jks -keysize 2048
keytool -export -alias client -file client.crt -keystore client.jks
keytool -import -v -trustcacerts -alias client -file client.crt -keystore clienttrust.jks
In a terminal start a server.
$ python -m SimpleHTTPServer 8000
In another terminal set up the cgroups freezer.
HES9 <- read.csv("household-income-and-houseing-statistics-ye-june2-17-csv-tables-corrected/HES2017-Table9.csv", | |
stringsAsFactors = FALSE) | |
library(dplyr) | |
library(tidyr) | |
library(purrr) | |
library(ggplot2) | |
library(ggbeeswarm) | |
library(ggthemes) | |
atomise <- function(df) { |
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
#!/bin/sh | |
commit_regex='(([[:upper:]]*\-[0-9]*)|fixup!)' | |
error_msg="Aborting commit. Your commit message is missing a JIRA ticket" | |
if ! grep -iqE "$commit_regex" "$1"; | |
then | |
echo "$error_msg" >&2 | |
exit 1 |
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
DISCLAIMER: This could all quite plausibly brick your Chromebook, and I take no responsibility for any damage you might inflict on it or yourself. Follow along at your own risk.
Most Chromebooks can run some flavour of GNU/Linux using the Chrubuntu method, running off the kernel that comes with ChromeOS. I found, however, that the ChromeOS kernel didn’t play well with recent X.org versions, and would refuse to recover from suspend, and not deal very well at all with having an external screen attached to it.
I also wanted to replace ChromeOS entirely with Arch on my Chromebook, because only 16 gigabytes of eMMC isn’t very convenient for dual booting. To accomplish this, I needed an external installation medium.
First of all, you’ll need to get your Chromebook into developer mode if you haven’t already. This is model specific, although for most recent models holding the Escape and Reload keys while booting should do the trick. If not, ask Google.
PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.
sudo apt-get install texlive-latex-base
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars
file, reference that vars
file from your task
, and encrypt the whole vars
file using ansible-vault encrypt
.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.