Skip to content

Instantly share code, notes, and snippets.

nano ~/.local/share/applications/telegramdesktop.desktop
=
=
=
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -- %u
@selincodes
selincodes / wslgit.bat
Created December 16, 2020 04:46
Using Git in Windows Subsystem for Linux through PHPStorm
@echo off
C:\Windows\System32\bash.exe -c "git %*"
@selincodes
selincodes / sftp.json
Created December 13, 2020 08:29
Sftp settings for VSCode
{
"name": "...",
"host": "....",
"protocol": "ftp",
"port": 21,
"username": "...",
"password": "...",
"remotePath": "/",
"downloadOnOpen": true,
"uploadOnSave": true,
@selincodes
selincodes / albert.txt
Last active June 17, 2020 09:32
Install albert ubuntu 18.04
wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_18.04/Release.key -O Release.key
sudo apt-key add - < Release.key
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:manuelschneid3r.list"
sudo apt-get update
sudo apt-get install albert
=====================
curl https://build.opensuse.org/projects/home:manuelschneid3r/public_key | sudo apt-key add -
echo 'deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:manuelschneid3r.list
sudo wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_20.04/Release.key -O "/etc/apt/trusted.gpg.d/home:manuelschneid3r.asc"
@selincodes
selincodes / fix_reCaptcha.js
Created May 31, 2020 15:45
Adds a scroll in the recaptcha iframe when it does not fit on the screen.
setInterval(function () {
let $reCaptchaIframe = $('iframe[title="recaptcha challenge"]');
if ($reCaptchaIframe) {
let $reCaptchaOverlay = $reCaptchaIframe.parent();
$reCaptchaOverlay.css({
'height': '100%',
'overflow-y': 'auto',
'width': 'auto',
'background': '#fff'
});
@selincodes
selincodes / picture.html
Last active April 27, 2020 10:22
Picture tag for retina and mobile
<picture>
<source srcset="logo-mobile@1x.png 1x, logo-mobile@2x.png 2x" media="(max-width: 575px)">
<img src="logo-desktop@1x.png" srcset="logo-desktop@2x.png 2x" alt="">
</picture>
@selincodes
selincodes / share key sublime text 3 build 3143
Last active September 20, 2017 05:16
share key sublime text 3 build 3143
Share key Sublime text 3 build 3143. Update 14/09/2017.
—– BEGIN LICENSE —–
TwitterInc
200 User License
EA7E-890007
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
@selincodes
selincodes / VS Code Settings
Last active March 22, 2019 17:51
VS Code Settings
{
"workbench.colorTheme": "Dracula",
"editor.fontSize": 14,
"editor.tabSize": 4,
"editor.fontFamily": "Roboto Mono",
"editor.minimap.enabled": false,
"editor.tabCompletion": true,
"editor.fontLigatures": true,
"terminal.integrated.lineHeight": 1.4,
"terminal.integrated.fontSize": 14,