Skip to content

Instantly share code, notes, and snippets.

View fallen90's full-sized avatar
🏠
Working from home

fallen90

🏠
Working from home
View GitHub Profile
@fallen90
fallen90 / download-vs-code-server.sh
Last active December 13, 2023 15:57 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
import React from 'react';
class MicroFrontend extends React.Component {
componentDidMount() {
const { name, host, document } = this.props;
const scriptId = `micro-frontend-script-${name}`;
if (document.getElementById(scriptId)) {
this.renderMicroFrontend();
return;
@fallen90
fallen90 / styles.css
Last active April 23, 2019 11:41 — forked from mohammedzamakhan/styles.css
styles.css for VSCODE custom css loader
/** italics **/
[data-mode-id="typescript"] .mtki {
font-family: 'Gochi Hand';
font-weight: 600;
font-size: 21px;
font-style: normal;
}
[data-mode-id="typescript"] .mtk3.mtki {
color: #b5b5b5 !important;
@fallen90
fallen90 / Meteor local mirror
Created March 26, 2018 15:02 — forked from belisarius222/Meteor local mirror
Added `changed` callback and factored out shared --> local conversion.
//common to client and server
SharedCollection = new Meteor.Collection('shared');
//client from here on out
LocalMirror = new Meteor.Collection(null);
var convertSharedToLocal = function(sharedDoc) {
var localDoc = LocalCollection._deepcopy(sharedDoc); // undocumented API, might change
@fallen90
fallen90 / iterm2-solarized.md
Created November 8, 2017 07:12 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@fallen90
fallen90 / pre-commit
Created May 8, 2017 11:06 — forked from broofa/pre-commit
Git pre-commit hook that runs `eslint` with the `--fix` option to fix up issues where possible, and adds "fix"ed files into the commit
#!/bin/bash
cd "$(git rev-parse --show-toplevel)"
ESLINT="node_modules/.bin/eslint"
pwd
if [[ ! -x "$ESLINT" ]]; then
printf "\t\033[41mPlease install ESlint\033[0m (npm install eslint)\n"
exit 1
fi
@fallen90
fallen90 / perfectelementary.bash
Created April 25, 2017 01:31
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'