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
#!markdown | |
# Using SQLite in Notebook | |
Install ExtensionLab NuGet package | |
#!csharp | |
#r "nuget: System.Data.SQLite, *-*" | |
#r "nuget: Microsoft.DotNet.Interactive.ExtensionLab, *-*" |
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
# Add your configuration | |
$configuration = @' | |
[ | |
{ "name": "NAME", "url": "USER@HOST", "password": "PASSWORD" } | |
] | |
'@ | ConvertFrom-Json | |
$name = $args[0] | |
$url = "" | |
$psw = ""; |
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
$folders = Get-ChildItem -directory | |
foreach($folder in $folders) | |
{ | |
Set-Location $folder | |
if (Test-Path -Path ".git") { | |
Write-Output "git reset & pull ${folder}" | |
git checkout main | |
git reset --hard | |
git pull | |
} |
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.Diagnostics; | |
using System.Runtime.InteropServices; | |
using static WinApi; | |
var process = Process.GetProcessesByName(args.FirstOrDefault()).FirstOrDefault(); | |
if (process == null) | |
return; | |
var style = GetWindowLong(process.MainWindowHandle, GWL_STYLE); | |
SetWindowLong(process.MainWindowHandle, GWL_STYLE, (uint)style & ~WS_CAPTION); |
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
# https://www.rosehosting.com/blog/how-to-install-redmine-on-centos-8/ | |
# https://tecadmin.net/install-ruby-latest-stable-centos/ | |
yum update | |
yum group install "Development Tools" | |
yum install install epel-release | |
# yum config-manager --enable epel | |
# yum config-manager --set-enabled PowerTools | |
# create a user for redmine |
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
{% assign fb01 = '"ORIGINAL_FB_PIXEL"' %} | |
{% assign fb02 = '"ORIGINAL_FB_PIXEL","SECOND_FB_PIXEL"' %} | |
{% comment %}{{ content_for_header }}{% endcomment %} | |
{{ content_for_header | replace: fb01, fb02 }} |
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
// https://developers.facebook.com/docs/facebook-pixel/advanced/ | |
// This code should be loaded together with Facebook Pixel | |
var executeWhenElementIsVisible = function(dom_element, callback) { | |
if (!(dom_element instanceof HTMLElement)) { | |
console.error('dom_element must be a valid HTMLElement'); | |
} | |
if (typeof callback !== 'function') { |
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
//https://github.com/erezak/libphonenumber-csharp | |
//https://github.com/twcclegg/libphonenumber-csharp | |
using PhoneNumbers; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace fravelgue | |
{ |
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
<!DOCTYPE html> | |
<!-- | |
https://shopify.dev/tutorials/include-javascript-in-shopify-themes | |
--> | |
<html> | |
<head> | |
<script> | |
var loadScript = function (url, callback) { | |
/* JavaScript that will load the jQuery library on Google's CDN. | |
We recommend this code: http://snipplr.com/view/18756/loadscript/. |