Skip to content

Instantly share code, notes, and snippets.

View jtlimson's full-sized avatar
:octocat:
I may be slow to respond.

Julius Limson jtlimson

:octocat:
I may be slow to respond.
  • TOKYO JAPAN
View GitHub Profile
@jtlimson
jtlimson / Strategy.pine
Created May 1, 2022 08:03
tradingview bot trade strategy.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © contentPie
//@version=4
strategy("My script", overlay=true, initial_capital = 100000, default_qty_value = 100, default_qty_type = strategy.percent_of_equity, commission_value=0.025)
fastEMA = ema(close, 24)
fastSMA = sma(close, 24);
slowEMA = ema(close, 200)
atr = atr(14)
goLongCondition1 = fastEMA > fastSMA
@jtlimson
jtlimson / SQLParser.cs
Created March 15, 2021 04:40
Check if SQL string syntax valid.
using Microsoft.SqlServer.TransactSql.ScriptDom;
/// <summary>
/// Install-Package Microsoft.SqlServer.TransactSql.ScriptDom -Version 14.0.3811.
/// </summary>
namespace ApplicationLayout.Areas.RemQuery.Models
{
public class SQLParser
{
public bool IsSQLQueryValid(string sql, out List<string> errors)
@jtlimson
jtlimson / Book 6.md
Created January 30, 2021 07:54
NOTES From : How To win friends and influence people

How To win friends and influence people

A great man shows his greatness by the way he treats little men. - Thomas Carlyle

Fundamental Techniques in handling people.

When dealing with people, let us remember we are not dealing with creatures of logic. We are dealing with creatures of emotion, creatures bristling with prejudices and motivated by pride and vanity.

Principle 1 - Don't criticize, condemn, or complain.

var paragraph = "the quick brown fox jumps over the lazy dog";
check_excluded_letters(paragraph);
function check_excluded_letters(paragraph)
{
var alphabet = 'abcdefghijklmnopqrstuvwxyz';
var alphabet_dictionary = alphabet.split("");
var check = paragraph.replace(/\s/g, '').split("");
var result=[];
@jtlimson
jtlimson / settings.json
Last active January 19, 2021 04:20
Windows Terminal Settings Git Command Retro Theme
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{e635c1d7-d15f-f81e-4665-c60b3f27a3f6}",
@jtlimson
jtlimson / JapanPostDeliveryStatus.cs
Last active November 27, 2020 05:19
Get JapanPost "〒 (郵便記号, yūbin kigō)" delivery status using windows console app
/*
* Author : julius limson
* Description : Get JapanPost "〒 (郵便記号, yūbin kigō)" delivery status
* Parameter : args[0] = Tracking Number
* Output: (delivered, returned to sender, not delivered) and dates.
* usage : in cmd
ProjLocation> Projectname.exe <trackingnumber>
*/
@jtlimson
jtlimson / Interopfix.md
Last active August 9, 2024 13:05
Microsoft Office Interop Related Issues.

Microsoft Office Interop Related Issues during IIS deployment

80070005 Access denied

This error basically means that the web site is definitely finding the COM objects related to the MS Office application you want to execute, but the Application Pool in charge of the running process doesn’t have permissions to use them. In order to fix that, follow these steps:

  • Open IIS Manager > Application Pools and identify the identity assigned to the Application Pool assigned to the web application (it’s in the Advanced Properties tab). Keep a note of that user (or system) account, because you’ll need it later on. If you fond the ApplicationPoolIdentity there, you need to do some little extra-work: as you might know, that user it’s a dynamically created, unprivileged account: to change its permissions in the following steps, you’ll need to look-up for the IIS AppPool[AppPoolName] role. If that’s too much for you to handle, you can change the identity to a “static” account… but you shouldn’t do that, as the Ap
using Excel = Microsoft.Office.Interop.Excel;
class Program
{
public static void Main(string[] args)
{
dynamic[] data = new dynamic[2];
data[0] = new {
ID = "1",

Password-based authentication

To get the service principal's credentials as the appropriate object, use the Get-Credential cmdlet. This cmdlet will present a prompt for a username and password. Use the service principal ID for the username.

$pscredential = Get-Credential
Connect-AzAccount -ServicePrincipal -Credential $pscredential -Tenant $tenantId

For automation scenarios, you need to create credentials from a user name and secure string:

Quick Access

add _layouts/15/settings.aspx to last url

site settings

e.g.

https://<org>.sharepoint.com/sites/<sitename>/_layouts/15/settings.aspx