Skip to content

Instantly share code, notes, and snippets.

View Wintereise's full-sized avatar

Paul S. Wintereise

View GitHub Profile
root@lax /var/www/lg-api # sqlite3 db/db.sqlite
SQLite version 3.7.13 2012-06-11 02:05:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> UPDATE `api` SET `key` = 'NEW_KEY_64_CHARS_GOES_HERE';
sqlite> .exit
<?php
require_once __DIR__ .'vendor/autoload.php';
$config = [
// Mandatory Configuration Options
'domain_controllers' => [ 'a.b.c' ],
'base_dn' => 'ou=users,dc=b,dc=com',
'admin_username' => 'uid=someuser,ou=something',
'admin_password' => 'somepass',
@Wintereise
Wintereise / lifecycle-cheat-sheet.md
Created November 27, 2018 04:15 — forked from HyperBrain/lifecycle-cheat-sheet.md
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@Wintereise
Wintereise / app.ts
Created January 16, 2019 04:27
TypeORM broken on aws-lambda runtime
import "reflect-metadata";
import { APIGatewayEvent, Context } from "aws-lambda";
import { BaseEntity, Column, Connection, Entity, getConnectionManager, PrimaryColumn } from "typeorm";
import v4 = require("uuid/v4");
@Entity()
export class TData extends BaseEntity {
@PrimaryColumn()
public id: string;
@Wintereise
Wintereise / tmux-cheats.md
Created February 24, 2022 11:00 — forked from Starefossen/tmux-cheats.md
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session