This file contains 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
# check this https://superuser.com/questions/1093159/how-to-provide-a-verified-server-certificate-for-remote-desktop-rdp-connection | |
echo "Attempting renew"; | |
iex 'docker run -it --rm --name certbot -v "C:\Users\Kreem\Documents\letsencrypt\etc:/etc/letsencrypt" -v "C:\Users\Kreem\Documents\letsencrypt\var:/var/lib/letsencrypt" -p 0.0.0.0:8080:80 certbot/certbot renew'; | |
$wasRunning = $False; | |
if ($LASTEXITCODE -ne 0) { | |
echo "Docker not running, attempting to run deamon"; | |
$wasRunning = $True; |
This file contains 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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
var stickerNum = 1; | |
setTimeout(() => { | |
jQuery.noConflict(); | |
console.log('jQuery injected'); |
This file contains 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
Sub URLPictureInsert() | |
Dim Pshp As Shape | |
Dim xRg As Range | |
Dim xCol As Long | |
On Error Resume Next | |
Application.ScreenUpdating = False | |
Set Rng = ActiveSheet.Range("G4:G50") | |
For Each cell In Rng | |
filenam = cell | |
ActiveSheet.Pictures.Insert(filenam).Select |
This file contains 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 urllib.request | |
import scrapy | |
import re | |
class MohmScrapper(scrapy.Spider): | |
name = 'mohm' | |
start_urls = ['https://mohmfurniture.com/products/'] | |
idNum = 1 |
This file contains 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
'.cpp': | |
'std layout': | |
'prefix': 'std' | |
'body': """ | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main(){ |
This file contains 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
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ | |
Partial Class ColorPicker | |
Inherits System.Windows.Forms.UserControl | |
'UserControl overrides dispose to clean up the component list. | |
<System.Diagnostics.DebuggerNonUserCode()> _ | |
Protected Overrides Sub Dispose(ByVal disposing As Boolean) | |
Try | |
If disposing AndAlso components IsNot Nothing Then | |
components.Dispose() |