Skip to content

Instantly share code, notes, and snippets.

pepa65 pepa65

Block or report user

Report or block pepa65

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pepa65
pepa65 / check
Last active Jun 26, 2017
Create grammar check with pegjs
View check
#!/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")
View check
#!/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 Aug 17, 2016
Accessing the gandi.net API by XML-RPC
View gandi-rpc.sh
#!/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 Aug 25, 2017
Improving update-grub (grub-mkconfig), only include versions that are included in the root partition's /lib/modules
View .gitignore
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 Aug 9, 2016
Unlocking LUKS encrypted root filesystems on boot remotely through dropbear ssh for Ubuntu 16.04 and 14.04
View dropbear-unlock.sh
#!/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
You can’t perform that action at this time.