- #linuxmasterrace
- git
- php
- apache
cd /var/www/example.com/
git clone https://github.com/username/reponame.git
{ | |
"mockup": { | |
"controls": { | |
"control": [ | |
{ | |
"ID": "1", | |
"typeID": "Arrow", | |
"zOrder": "1", | |
"w": "36", | |
"h": "109", |
// Based on inspiration from some conversation in WeAllJS | |
// See wealljs.org for more info on the community! | |
// This is assuming a plain JS object which is why it's not using for-of, since | |
// plain objects aren't iterable | |
function objectPromiseAll(baseObject) { | |
return Promise.all(Object.values(baseObject)).then((resolvedValues) => { | |
const resolvedObject = {}; | |
Object.keys(baseObject).forEach((key, index) => { |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# pylint: disable=invalid-name | |
"""Forward messages from twitch chat to discord chat or the other way around""" | |
#--------------------------------------- | |
# Libraries and references | |
#--------------------------------------- | |
import codecs | |
import json | |
import os |
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); |
// my brain decided to ask the question: yknow, i want you to think about the y combinator -- | |
// like, what is it. like what the fuck girl, cmon, you have a comp sci degree, you should know this, and understand it and shit | |
// and so i was like fiiiiiiiiiiiiiiine gosh, lets see if typescript can handle the typing, and play around with it | |
// so i looked up a javascript implementation, and played with the type defintion until it | |
// matched up and then i was like oh: thats what the type definition of the functions in it are. | |
// i get it now. that's pretty cool. the main interesting thing is a the inner function that takes itself | |
// and returns the function initially passed to the outer function. neato. |
invoices/123
?
in a URL like /assignments?showGrades=1
.#
portion of the URL. This is not available to servers in request.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things./** | |
* Metro Bundler configuration | |
* https://facebook.github.io/metro/docs/en/configuration | |
* | |
* eslint-env node, es6 | |
*/ | |
const exclusionList = require('metro-config/src/defaults/exclusionList'); | |
const getWorkspaces = require('get-yarn-workspaces'); | |
const path = require('path'); |