Skip to content

Instantly share code, notes, and snippets.

View rascoop's full-sized avatar

Richard Scoop rascoop

  • Curaçao, Dutch Caribbean
View GitHub Profile
@rascoop
rascoop / SyncFoldersOutsideOneDrive.md
Last active July 6, 2022 14:55 — forked from danieldogeanu/SyncFoldersOutsideOneDrive.md
Sync Folders Outside OneDrive
  1. Find the Address of the folder you want to be synced. (ie. G:\Games\). Copy it.
  2. Find the OneDrive location you wish for it to sync to. Hold shift and right click. On the context menu, click open command window here.
  3. In the command window type mklink /j "YourCustomFolderName" G:\Games\ (G:\Games\ is the address of your original folder).

This is like a shortcut that tells any programs that look there to look at another directory. This will sync anything inside the address you tell it to the folder created in a onedrive directory

  1. open cmd box in admin mode
  2. cd /users/<username>/OneDrive
  3. make a link like this: mklink /J <name of folder> <name of folder to sync>
@rascoop
rascoop / Startup.cs
Created April 3, 2020 14:19 — forked from cmw2/Startup.cs
OWIN Startup class to use AAD.
using Owin;
namespace WindowsAuthAppToAADDemo
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureAuth(app);
}
@rascoop
rascoop / info.txt
Created April 2, 2020 20:19
Initial Prep to import existing code folder into azure repo
#If you are using Git repo in Azure Devops, please refer below commands to import projects to Azure Git repo:
#In the local directory for the root of the project
git init
git remote add origin <URL for Azure Git repo>
git add .
git commit -m 'initial commit'
git push -u origin master
@rascoop
rascoop / info.txt
Created April 2, 2020 20:19
Initial Prep to import existing code folder into azure repo
#If you are using Git repo in Azure Devops, please refer below commands to import projects to Azure Git repo:
#In the local directory for the root of the project
git init
git remote add origin <URL for Azure Git repo>
git add .
git commit -m 'initial commit'
git push -u origin master
@rascoop
rascoop / FTP Upload and URL in Clipboard
Created March 16, 2020 19:04 — forked from ecos/FTP Upload and URL in Clipboard
A cool Windows batch script to upload a file to an FTP folder, and then copy the URL in the clipboard. Useful for posting screenshots quickly in a post on a forum. You only have to change these parameters SET Server=yourFTPserver SET UserName=yourFTPusername SET Password=yourpassword SET RemoteFolder=/www/images/screenshots SET ClipboardURLPrefi…
@ECHO OFF
ECHO Upload to FTP
ECHO Written by: Jason Faulkner
ECHO SysadminGeek.com
ECHO. Improved by ecos
ECHO.
REM Usage:
REM UploadToFTP [/L] FileToUpload
REM
@rascoop
rascoop / cloudSettings
Last active December 27, 2020 21:47
VS Code Settings
{"lastUpload":"2020-12-27T21:47:30.809Z","extensionVersion":"v3.4.3"}
@rascoop
rascoop / index.html
Created January 11, 2020 12:31 — forked from edwardlorilla/index.html
vuejs velocityjs transition
<template id='image'>
<img ref="imgs" alt=""/>
</template>
<div id="app">
<transition mode="out-in"
v-on:before-enter="beforeEnter"
v-on:enter="enter"
v-on:leave="leave"
>
@rascoop
rascoop / merge-css.js
Created December 11, 2019 12:34 — forked from pritambaral/merge-css.js
Merge Duplicate CSS rules; detected by selector
#!/usr/bin/env node
if (process.argv.length < 3) {
console.error('Usage:', process.argv.join(' '), '/path/to/file.css');
process.exit(1);
}
file = process.argv[2];
var fs = require('fs');
@rascoop
rascoop / extactclassesfromhtml.js
Last active October 18, 2019 12:57
Extract Classes from html string
var str = 'bla<p class="c1 c2">blabla<button></button><div id="bla" class=" c1 c3 "></div>';
var classes=getHTMLclasses(str);
console.log(classes);
function getHTMLclasses(html) {
// get all unique css classes in html into dict
var classRegexp = /class=['"](.*?)['"]/g;
var dict = [];
var m;
@rascoop
rascoop / _notes.md
Created August 12, 2019 18:41 — forked from sgnl/_notes.md
AJAX with Vanilla Javascript. (XMLHttpRequest)

Short XHR Examples

Examples shown are bare minimum needed to achieve a simple goal.

Resources

  • Google Chrome's Dev Tools' Network Panel c-c-c-c-c-ULTIMATE c-c-c-COMBO!!!
  • requestb.in enpoints for your HTTP Requests as a free service.