Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| import Cocoa | |
| protocol ApplicationTimeTrackerDelegate: AnyObject { | |
| func timeTracker(_ tracker: ApplicationTimeTracker, didUpdateFrontmostApplication: Application, withTotalSeconds: UInt) | |
| func timeTracker(_ tracker: ApplicationTimeTracker, didFinishTrackingApplication: Application, withTotalSeconds: UInt) | |
| } | |
| class ApplicationTimeTracker: NSObject { | |
| private var trackings: [BundleIdentifier: Tracking] = [:] | |
| private var applications: [String: Application] = [:] |
| #!/bin/sh | |
| # Reset Transmit 5 Trial | |
| # curl -fsSL https://gist.githubusercontent.com/thoaster/ca5b4fdb653b9cdb3930897045b78558/raw/reset.sh | bash | |
| set +e | |
| set -x | |
| sudo rm -rf ~/Library/Caches/com.panic.Transmit | |
| sudo rm -rf ~/Library/Application\ Support/com.panic.Transmit | |
| sudo rm ~/Library/Preferences/com.panic.Transmit.plist |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex| // Note: only for modern browser | |
| import axios from 'axios' | |
| // helper function: generate a new file from base64 String | |
| const dataURLtoFile = (dataurl, filename) => { | |
| const arr = dataurl.split(',') | |
| const mime = arr[0].match(/:(.*?);/)[1] | |
| const bstr = atob(arr[1]) | |
| let n = bstr.length | |
| const u8arr = new Uint8Array(n) |
| FROM ruby:2.3.1 | |
| # Install dependencies | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
| # Set an environment variable where the Rails app is installed to inside of Docker image: | |
| ENV RAILS_ROOT /var/www/app_name | |
| RUN mkdir -p $RAILS_ROOT | |
| # Set working directory, where the commands will be ran: |
| Shader "UI/Dissolve" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| _StencilComp ("Stencil Comparison", Float) = 8 | |
| _Stencil ("Stencil ID", Float) = 0 | |
| _StencilOp ("Stencil Operation", Float) = 0 |
| # Stole from: | |
| # http://stackoverflow.com/questions/32122784/alias-script-to-delete-all-local-and-remote-git-branches-with-a-specific-prefix | |
| git branch -D $(printf "%s\n" $(git branch) | grep 'feature/') | |
| # Or this will work too to remove all remote branches: | |
| # https://coderwall.com/p/eis0ba/remove-a-thousand-stale-remote-branches-on-git | |
| git branch -r | awk -F/ '/\/feature/{print $2}' | xargs -I {} git push origin :{} | |
| # Prune all origin branches | |
| git remote prune origin |
| # Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| # This example is meant as a simple starting point, to show how to get the information in the simplest available way. | |
| # Google Chrome | |
| tell application "Google Chrome" to return URL of active tab of front window | |
| tell application "Google Chrome" to return title of active tab of front window | |
| # Google Chrome Canary | |
| tell application "Google Chrome Canary" to return URL of active tab of front window | |
| tell application "Google Chrome Canary" to return title of active tab of front window | |
| # Chromium |
| package com.linhnguyen.demo.controller; | |
| import org.springframework.ui.Model; | |
| import org.springframework.web.bind.annotation.ModelAttribute; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| import org.springframework.web.servlet.mvc.support.RedirectAttributes; | |
| import org.springframework.web.servlet.view.RedirectView; | |
| public class RedirectController { | |
| # Get youtube id | |
| #http://youtu.be/5Y6HSHwhVlY | |
| #http://www.youtube.com/embed/5Y6HSHwhVlY?rel=0 | |
| #http://www.youtube.com/watch?v=ZFqlHhCNBOI | |
| regex = re.compile(r'(https?://)?(www\.)?(youtube|youtu|youtube-nocookie)\.(com|be)/(watch\?v=|embed/|v/|.+\?v=)?(?P<id>[A-Za-z0-9\-=_]{11})') | |
| match = regex.match(self.youtube_url) |