This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs'; | |
import path from 'path'; | |
import { fileURLToPath } from 'url'; | |
import glob from 'glob'; | |
import prettier from 'prettier'; | |
import rimraf from 'rimraf'; | |
import * as ttp from 'typescript-to-proptypes'; | |
/** | |
* Creates needed directories for a file path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/alex/.oh-my-zsh | |
# docker, etc autocomplete | |
fpath=(~/.zsh/completion $fpath) | |
autoload -Uz compinit && compinit -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sudo ruby | |
# | |
# revealer.rb -- Deobfuscate GHE .rb files. | |
# | |
# This is simple: | |
# Every obfuscated file in the GHE VM contains the following code: | |
# | |
# > require "ruby_concealer.so" | |
# > __ruby_concealer__ "..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { PropTypes as PT } from 'prop-types'; | |
import { | |
SortableHandle, | |
SortableElement, | |
SortableContainer | |
} from 'react-sortable-hoc'; | |
/** | |
* Draggable handle wraps the label |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 10s is the time window where systemd stops trying to restart a service | |
# Xsleep 15 | |
# if lightdm is not running after 15s, it's not a random crash, but many | |
# otherwise nothing to do, systemd will call us again if it crashes more | |
# if pidof -x lightdm > /dev/null | |
# then | |
# exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# git | |
sudo apt-get install -y git | |
#curl | |
sudo apt-get install -y curl | |
# pip | |
wget https://bootstrap.pypa.io/get-pip.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu Gnome | |
## Arc Theme | |
sudo rm -rf /usr/share/themes/{Arc,Arc-Darker,Arc-Dark} | |
rm -rf ~/.local/share/themes/{Arc,Arc-Darker,Arc-Dark} | |
rm -rf ~/.themes/{Arc,Arc-Darker,Arc-Dark} | |
cd ~/.themes | |
git clone https://github.com/horst3180/arc-theme --depth 1 && cd arc-theme | |
./autogen.sh --prefix=/usr --with-gnome=3.16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create up script | |
sudo vi /etc/openvpn/up.sh | |
# Create down script | |
sudo vi /etc/openvpn/down.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lamp: | |
image: useltmann/vufind2 | |
ports: | |
- "81:80" | |
- "8081:8080" | |
- "3307:3306" | |
volumes: | |
- /home/{USER}/workspace/vufind-clean:/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh {ID}@ssh.us.platform.sh << EOF | |
cd ~/tmp | |
php registry_rebuild/registry_rebuild.php | |
bash -l | |
EOF |
NewerOlder