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 { cid, container } from 'inversify-props'; | |
| import { ILocalStorageHelper } from '__helpers/storage/LocalStorageHelper'; | |
| type LocalStorageOptions = { | |
| storageKey: string; | |
| default?: any; | |
| }; | |
| /** | |
| * Decorator to set property values based on values stored in local storage | |
| * |
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
| // Helloworld |
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
| from flask import Flask | |
| from flask import request, Response | |
| from flask_cors import CORS, cross_origin | |
| from crontab import CronTab | |
| import os | |
| import psutil | |
| import subprocess | |
| import select | |
| import json | |
| from flask import jsonify |
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
| USE [Master]; | |
| DECLARE @databaseName varchar(8000) = 'DATABASE NAME'; | |
| DECLARE @backupPath varchar(8000) = 'c:\path\to\database.bak'; | |
| DECLARE @databaseOwners varchar(2000) = 'list;of;usernames'; | |
| DECLARE @kill varchar(8000) = ''; | |
| SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' | |
| FROM sys.dm_exec_sessions | |
| WHERE database_id = db_id(@databaseName) |
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
| USE [Master]; | |
| DECLARE @databaseName varchar(8000) = 'DATABASE NAME'; | |
| DECLARE @backupPath varchar(8000) = 'c:\path\to\database.bak'; | |
| DECLARE @kill varchar(8000) = ''; | |
| SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' | |
| FROM sys.dm_exec_sessions | |
| WHERE database_id = db_id(@databaseName) |
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
| @model IEnumerable<EPiServer.DataAbstraction.ContentType> | |
| @{ | |
| Layout = null; | |
| } | |
| @Html.Partial("PageTypeTablePartial", Model) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web.Mvc; | |
| using EPiServer; | |
| using EPiServer.Core; | |
| using EPiServer.Shell.Gadgets; | |
| using Ionic.Zip; | |
| namespace Website.Web.Gadgets.Controllers |
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/sh | |
| message=$SMS_1_TEXT | |
| if test "$message" = "shutdown"; then | |
| /sbin/shutdown -h now | |
| fi |
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/sh | |
| sendto="0123456789" | |
| message=$SMS_1_TEXT | |
| from=$SMS_1_NUMBER | |
| echo "$from\n$message" | sudo gammu sendsms TEXT "$sendto" |
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/sh | |
| from=$SMS_1_NUMBER | |
| message=$SMS_1_TEXT | |
| reply="" | |
| if test "$message" = "Ping"; then | |
| reply="Pong!" | |
| else | |
| reply="Y U NO PLAY PING PONG?" | |
| fi |
NewerOlder