Skip to content

Instantly share code, notes, and snippets.

View Jorgelig's full-sized avatar
🎯
Focusing

Jorgelig Jorgelig

🎯
Focusing
View GitHub Profile
@GeorgDangl
GeorgDangl / copySQLiteDlls.ps1
Created June 29, 2017 10:25
Using Microsoft.EntityFrameworkCore.Sqlite in a full .Net framework class library
$SQLitePackages = Join-Path -Path $env:USERPROFILE -ChildPath "\.nuget\packages\SQLite"
$latestSQLite3PackageX64 = Join-Path -Path ((Get-ChildItem -Path $SQLitePackages | Sort-Object Fullname -Descending)[0].FullName) -ChildPath "runtimes\win7-x64\native\sqlite3.dll"
$latestSQLite3PackageX86 = Join-Path -Path ((Get-ChildItem -Path $SQLitePackages | Sort-Object Fullname -Descending)[0].FullName) -ChildPath "runtimes\win7-x86\native\sqlite3.dll"
if (!(Test-Path "$PSScriptRoot\Dependencies")){
New-Item -ItemType Directory -Path "$PSScriptRoot\Dependencies"
}
if (!(Test-Path "$PSScriptRoot\Dependencies\x86")){
New-Item -ItemType Directory -Path "$PSScriptRoot\Dependencies\x86"
}
if (!(Test-Path "$PSScriptRoot\Dependencies\x64")){
import pytesseract
import sys
import argparse
try:
import Image
except ImportError:
from PIL import Image
from subprocess import check_output
@keithmorris
keithmorris / drive-format-ubuntu.md
Last active May 1, 2024 12:39
Partition, format, and mount a drive on Ubuntu
@EyMaddis
EyMaddis / whatsapp-send-in-current-chat.js
Created November 4, 2016 12:50
Sending messages programmatically on web.whatsapp.com
// this allows to send arbitrary messages. The chat conversation you want to send messages to has to be open.
// just run this in the JS console
// http://stackoverflow.com/a/39165137/1249001
function findReactComponent(dom) {
for (var key in dom)
if (key.startsWith("__reactInternalInstance$")) {
var compInternals = dom[key]._currentElement;
var compWrapper = compInternals._owner;
var comp = compWrapper._instance;
@vaderj
vaderj / Alternative_Excel_Unlock
Last active June 8, 2021 02:32
#VBA Two methods of unlocking a locked excel sheet:VBA macro for Excel that should unprotect a password protected sheet,Opening the spreadsheet as XML and removing the specific piece
Step 1. Make a copy of the spreadsheet in an empty directory. Rename the extension to .zip
Step 2. Extract the zip file.
Step 3. In the extracted contents, goto the folder \xl\worksheets\
Step 4. There should be one xml file per sheet? I editing "sheet1.xml" with NotePad++. From nearly the very end of the file, remove the tag that starts with:
<sheetProtection
My entire tag was as follows:
<sheetProtection algorithmName="SHA-512" hashValue="ALciNBSIqRcjDiFbCuyWoGk4iOcC/ZRKnEjwEVi1skb6G5JbHhp+QVZ9+rlPVbGILOS7lYiCvJmR4Q7IuSphXA==" saltValue="8OVKXrG0VacLOLVztUpEYw==" spinCount="100000" sheet="1" objects="1" scenarios="1" selectLockedCells="1"/>
Step 5. Save the file. Open the ZIP file in 7zip, find the same file, drag and drop, save, exit, rename the file back to (xlsx) and open
<!--
In Vue, we use v-model for all form bindings, while
Knockout maintains separate binding types, such as
textInput, checked, and options. In some cases,
such as for an input of type "range", Knockout
simply doesn't have an equivalent two-way binding
helper and the more verbose value and valueUpdate
must be used.
-->
<div id="app">
@mvalipour
mvalipour / setup.md
Created August 2, 2016 12:48
TeamCity Setup with Reverse Proxy
  • Install Teamcity
  • Go to /conf/server.xml and find <connector> node
  • set the following attributes on it
  <Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
    connectionTimeout="60000"
    redirectPort="8543"
    useBodyEncodingForURI="true"
 socket.txBufSize="64000"
@SuicSoft
SuicSoft / wifite
Created January 1, 2016 13:09
Wifite python script modified
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
wifite
author: derv82 at gmail
Licensed under the GNU General Public License Version 2 (GNU GPL v2),
@benschwarz
benschwarz / README.md
Created October 14, 2015 14:56
Intercom CSP (Content security policy)

You'll need to add a whole slew of hosts for intercom if you've got CSP in place (which you should).

Heres what you'll need to add:

connect-src: https://api-ping.intercom.io https://nexus-websocket-a.intercom.io https://nexus-websocket-b.intercom.io wss://nexus-websocket-a.intercom.io wss://nexus-websocket-b.intercom.io https://api-iam.intercom.io 
script-src: https://widget.intercom.io https://js.intercomcdn.com
image-src: https://js.intercomcdn.com
@ssmythe
ssmythe / devops_training.txt
Last active March 9, 2024 20:23
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)