Skip to content

Instantly share code, notes, and snippets.

Avatar

codeonion codeonion

View GitHub Profile
@codeonion
codeonion / FIX for Ubuntu 20.04 Lutris Certificate issue.txt
Last active Jun 23, 2020
Ubuntu 20.04 Lutris Certificate issue RUN -> sudo update-ca-certificates --fresh; export SSL_CERT_DIR=/etc/ssl/certs;
View FIX for Ubuntu 20.04 Lutris Certificate issue.txt
Run these commands on terminal
sudo update-ca-certificates --fresh
export SSL_CERT_DIR=/etc/ssl/certs
# when faced with this issue
INFO 2020-06-23 18:33:48,649 [application.do_command_line:245]:Running Lutris 0.5.6
INFO 2020-06-23 18:33:48,650 [startup.check_driver:54]:Using NVIDIA drivers 440.64 for x86_64
INFO 2020-06-23 18:33:48,650 [startup.check_driver:60]:GPU: Quadro M2000M
INFO 2020-06-23 18:33:48,650 [startup.check_driver:77]:GPU: 10DE:13B0 17AA:222E using nvidia drivers
@codeonion
codeonion / arguments.py
Last active Oct 29, 2020
Call your Python Script from your Autohotkey automation script and pass arguments to it as well
View arguments.py
import argparse
# GET Arguments using command line
parser = argparse.ArgumentParser(description='For blog.codeonion.com my visitors!')
parser.add_argument("--argument_to_be_passed", required=True, type=str, help="Please pass a value into --argument_to_be_passed")
args = parser.parse_args()
value = args.argument_to_be_passed
print(value)
View Execute Python script with arguments using Autohotkey
import argparse
# GET ORDER ID
parser = argparse.ArgumentParser(description='For blog.codeonion.com my visitors!')
parser.add_argument("--argument_to_be_passed", required=True, type=str, help="Please pass a value into --argument_to_be_passed")
args = parser.parse_args()
value = args.argument_to_be_passed
print(value)
; Autoexecute
@codeonion
codeonion / Javascript_Browser_Back_Button_Control.html
Created Aug 2, 2019
Javascript Browser Back Button Control
View Javascript_Browser_Back_Button_Control.html
<!DOCTYPE html>
<html>
<head>
<title>Prompt test</title>
</head>
<body onbeforeunload="HandleBackFunctionality()" onunload="">
Please enter your name<br>
<input type="text" id="field1">
<input type="button" value ="oka" id="field2">
</body>
@codeonion
codeonion / index.html
Created Feb 19, 2019
custom Unsorted list bullets
View index.html
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style: none; /* Remove HTML bullets */
padding: 0;
margin: 0;
}
@codeonion
codeonion / snippet.ps1
Created Feb 18, 2019
Powershell - Show Messagebox by condition
View snippet.ps1
<# This form was created using POSHGUI.com a free online gui designer for PowerShell
.NAME
Untitled
#>
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Application]::EnableVisualStyles()
$Form = New-Object system.Windows.Forms.Form
$Form.ClientSize = '400,400'
@codeonion
codeonion / DisableStickyKeys.ahk
Created Feb 18, 2019
Toggle the Windows Sticky Keys using this Autohotkey macro
View DisableStickyKeys.ahk
SearchString = Turn on easy access keys
^j::
TrayTip, Sticky Keys Macro, Toggling Sticky Keys, 2,1
Send, #u
Sleep, 1000
Send, %SearchString%
Send, {Enter}
Sleep, 1000
Send, {Enter}
@codeonion
codeonion / uploader.php
Created Feb 18, 2019
PHP: File uploading Basic
View uploader.php
<?php
//blog.theonlytutorials.com
//author: agurchand
if($_POST){
//get the url
$url = $_POST['url'];
//add time to the current filename
$name = basename($url);
@codeonion
codeonion / index.html
Created Feb 18, 2019
Adding a Favicon
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Favicon</title>
<link rel="shortcut icon" href="stupidFavicon.ico" type="image/x-icon">
<link rel="icon" href="stupidFavicon.ico" type="image/x-icon">
</head>
<body>
Just checking the Favicon
</body>
@codeonion
codeonion / BackButtonFunctionality.html
Created Feb 18, 2019
Handle Back button functionality using JavaScript
View BackButtonFunctionality.html
<!DOCTYPE html>
<html>
<head>
<title>Prompt test</title>
</head>
<body onbeforeunload="HandleBackFunctionality()" onunload="">
Please enter your name<br>
<input type="text" id="field1">
<input type="button" value ="oka" id="field2">
</body>
You can’t perform that action at this time.