Skip to content

Instantly share code, notes, and snippets.

View nickelghost's full-sized avatar

Gabriel Karczewski nickelghost

View GitHub Profile
@austinkregel
austinkregel / digital-ocean-dark-mode.css
Created January 2, 2019 23:59
A dark mode theme for digital ocean built for the chrome extension Stylebot.
/**
* This theme is _not_ perfect in the slightest, but it achieves my goal of
* making a dark theme for much of the DO UI.
* Suggestions are welcome, and will be implemented to this theme at my own discretion.
*/
.Button--blue {
background: #3490DC;
}
@Ryanb58
Ryanb58 / install.md
Last active May 6, 2024 14:32
How to install telnet into a alpine docker container. This is useful when using the celery remote debugger in a dev environment.
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found

/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
@recurrence
recurrence / snake_naming.ts
Created November 21, 2017 16:34
TypeORM Snake Case Naming Strategy
import { NamingStrategyInterface, DefaultNamingStrategy } from 'typeorm'
import { snakeCase } from 'typeorm/util/StringUtils'
export class SnakeNamingStrategy extends DefaultNamingStrategy implements NamingStrategyInterface {
tableName(className: string, customName: string): string {
return customName ? customName : snakeCase(className)
}
columnName(propertyName: string, customName: string, embeddedPrefixes: string[]): string {
return snakeCase(embeddedPrefixes.join('_')) + (customName ? customName : snakeCase(propertyName))