Skip to content

Instantly share code, notes, and snippets.

View pepa65's full-sized avatar
🧡
Make life better!

pepa65 pepa65

🧡
Make life better!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pepa65 on github.
  • I am pepa65 (https://keybase.io/pepa65) on keybase.
  • I have a public key ASBmtXsKyvpsZ4eoY4-UBQNBb5VROMBinO1CIz6TDLuCbgo

To claim this, I am signing this object:

@pepa65
pepa65 / check
Last active June 26, 2017 10:24
Create grammar check with pegjs
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const parser = require('./grammar.js').parse;
function main() {
const args = require('process').argv;
if (args.length != 3) {
console.error("Only 1 argument needed: file-path")
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const parser = require('./grammar.js').parse;
function main() {
const args = require('process').argv;
if (args.length != 3) {
console.error("Only 1 argument needed: file-path")
@pepa65
pepa65 / gandi-rpc.sh
Last active August 17, 2016 03:04
Accessing the gandi.net API by XML-RPC
#!/bin/bash
### Gandi API access
## Default values for APIKEY
APIKEY=''
Usage(){ ## $1: optional error message
cat <<-EOF
Usage: $0 <method> <parameter> ... [-l] [-v] [-t] [-h] [-a <APIKEY>]
@pepa65
pepa65 / .gitignore
Last active August 25, 2017 17:35
Improving update-grub (grub-mkconfig), only include versions that are included in the root partition's /lib/modules
10_linux
10_linux.new
10_linux.old
30_os-prober
30_os-prober.new
30_os-prober.old
@pepa65
pepa65 / dropbear-unlock.sh
Created August 9, 2016 08:12
Unlocking LUKS encrypted root filesystems on boot remotely through dropbear ssh for Ubuntu 16.04 and 14.04
#!/bin/bash
## Unlocking LUKS with cryptsetup by entering a password through ssh
#### For Ubuntu 16.04.1 and friends or Ubuntu 14.04.5
### Areas of modification:
## 1. Start networking early: /etc/default/grub
## 2. Install dropbear
## 3. Modify initramfs: /etc/initramfs-tools
## a. Add ssh-keys: /etc/initramfs-tools/root/.ssh/authorized_keys