Skip to content

Instantly share code, notes, and snippets.

View DominikAngerer's full-sized avatar
🏠
For sure working from somewhere 🤘

DominikAngerer DominikAngerer

🏠
For sure working from somewhere 🤘
View GitHub Profile
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active November 2, 2024 12:56
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
#!/bin/sh
DEFAULT_ = '/usr/local/tomcat/logs/catalina.out'
DEV_ = '/usr/local/tomcat_dev/logs/catalina.out'
DEV = '/usr/local/tomcatdev/logs/catalina.out'
TEST_ = '/usr/local/tomcat_test/logs/catalina.out'
TEST = '/usr/local/tomcattest/logs/catalina.out'
echo "############################################################"
echo "############################################################"
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@DominikAngerer
DominikAngerer / bootstrap-grid-only.css
Created June 27, 2017 10:50
Only Bootstrap's grid - nothing more - nothing less.
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=5ba27cd27278404bb63b6fddafbc352b)
* Config saved to config.json and https://gist.github.com/5ba27cd27278404bb63b6fddafbc352b
*//*!
@DominikAngerer
DominikAngerer / test.md
Created September 4, 2017 11:45
A full Markdown test file/suite - you can use this to test your Website stylings.

H1

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

H2

const {compile} = require('json-schema-to-typescript')
const fs = require('fs')
const ComponentsJson = require('./components.XXX') // point to your components.json file
const {customTypeParser} = require('./generate-ts-schema-custom-types') // custom components parser for own plugins
let tsString = []
async function genTsSchema () {
for (const values of ComponentsJson.components) {
const obj = {}