Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
<# | |
.SYNOPSIS | |
Script to Initialize my custom powershell setup. | |
.DESCRIPTION | |
Script uses scoop | |
.NOTES | |
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
Author: Mike Pruett | |
Date: October 18th, 2018 |
This gist assumes:
alias ng="npm list -g --depth=0 2>/dev/null" | |
alias nl="npm list --depth=0 2>/dev/null" |
QBITTORRENT_PATH=<PATH> | |
QBITTORRENT_WEBUI_PORT=<PORT> | |
DOWNLOAD_PATH=<PATH> | |
MEDIA_PATH=<PATH> | |
JACKETT_PATH=<PATH> | |
SONARR_PATH=<PATH> | |
RADARR_PATH=<PATH> | |
DOMAIN=<YOUR DOMAIN> | |
TZ=<Timezone e.g. Europe/Budapest> | |
USERDIR=<HOME DIR PATH> |
import { writable } from 'svelte/store' | |
// returns a store with HTTP access functions for get, post, patch, delete | |
// anytime an HTTP request is made, the store is updated and all subscribers are notified. | |
export default function(initial) { | |
// create the underlying store | |
const store = writable(initial) | |
// define a request function that will do `fetch` and update store when request finishes | |
store.request = async (method, url, params=null) => { |
Put this in your `local-configure.yml` file, add as many users as you need: | |
users: | |
- name: fulvio | |
sudoer: yes | |
auth_key: ssh-rsa blahblahblahsomekey this is actually the public key in cleartext | |
- name: plone_buildout | |
group: plone_group | |
sudoer: no | |
auth_key: ssh-rsa blahblahblah ansible-generated on default |
; Variables definition | |
; ----------------------------------------------------------------------------- | |
EnvGet, userProfile, USERPROFILE | |
Software := userProfile . "\Dropbox\software\" | |
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window | |
; ----------------------------------------------------------------------------- | |
ToggleWinMinimize(WindowTitle) | |
{ | |
SetTitleMatchMode,2 |