Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Ivan Ionut ivanionut

🎯
Focusing
View GitHub Profile
@ivanionut
ivanionut / reset.sh
Created Mar 10, 2021 — forked from jjjimenez100/reset.sh
Jetbrains Trial Reset (For linux based OS)
View reset.sh
#!/bin/bash
#!/bin/sh
# reset jetbrains ide evals
OS_NAME=$(uname -s)
JB_PRODUCTS="IntelliJIdea CLion PhpStorm GoLand PyCharm WebStorm Rider DataGrip RubyMine AppCode"
for PRD in $JB_PRODUCTS; do
rm -rf ~/.java/.userPrefs/prefs.xml
rm -rf ~/.java/.userPrefs/jetbrains/prefs.xml
View reset-eval.md
# find datagrip directories in the linux
$ cd ~
$ find . -type d -iname "*datagrip*"
# Output
# ./.local/share/JetBrains/DataGrip2020.2
# ./.local/share/JetBrains/DataGrip2020.1
# ./.java/.userPrefs/jetbrains/datagrip
# ./snap/datagrip
# ./.config/JetBrains/DataGrip2020.2
View test
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<item>
<g:id>demo_14</g:id>
<g:multipack>0</g:multipack>
<g:brand>Studio Design</g:brand>
<g:gtin></g:gtin>
<g:sku>demo_14</g:sku>
<g:item_group_id>19</g:item_group_id>
View Install Mozjpeg 4 on Debian Ubuntu Mint
#!/bin/bash
echo ""
echo "---------------------------------"
echo "| AUTO COMPILE MOZJPEG |"
echo "---------------------------------"
echo ""
echo "Apt update"
sudo apt update && apt upgrade && apt remove $(deborphan) && apt autoremove && apt clean
echo "Update"
sudo apt update
@ivanionut
ivanionut / instructions.sh
Created Dec 30, 2020 — forked from rufoa/patch.sh
sublime merge 2 build 2039 linux
View instructions.sh
sudo -i
cd /opt/sublime_merge
sha256sum sublime_merge
# should be 3f8fac349daeb45aa86b52e87360ce8d01c5c0f68cb85385dffef05abc0ad410 (rpm)
# or d8b72a9d5798a08c013d543a8f8c9a79aacb3ac1578982574890ba46b01c75f3 (other linux)
cp sublime_merge sublime_merge.bak
# swap public key
@ivanionut
ivanionut / install-openjdk-8.sh
Created Dec 27, 2020 — forked from phillipsj/install-openjdk-8.sh
Quick little installation script for installing AdoptOpenJDK on Ubuntu 16.04.
View install-openjdk-8.sh
wget -q https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
tar -xf OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
sudo mkdir /usr/lib/jvm && sudo mv jdk8u172-b11 /usr/lib/jvm/jdk8u172-b11
export JAVA_HOME=/usr/lib/jvm/jdk8u172-b11
export PATH=/usr/lib/jvm/jdk8u172-b11/bin
java -version
View request.md
@ivanionut
ivanionut / nginx-proxy.conf
Created Jun 3, 2020 — forked from fhferreira/nginx-proxy.conf
Proxy nginx to use Google Tag Manager
View nginx-proxy.conf
# Google Analytics Bypassing Adblockers
## Client
change www.googletagmanager.com => your.domain.com
```
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://your.domain.com/gtag/js?id=UA-123456789-1"></script>
```
@ivanionut
ivanionut / isValidIPAddress_UDF.cfm
Created Apr 9, 2020 — forked from JamoCA/isValidIPAddress_UDF.cfm
ColdFusion UDF to test string to determine if valid IP address or not.
View isValidIPAddress_UDF.cfm
<!--- 20190801
ColdFusion UDF to test string to determine if valid IP address or not.
https://www.anujgakhar.com/2008/02/21/validate-ip-address-natively-with-coldfusion/ --->
<cfscript>
function isValidIPAddress(inputString){
var response = false;
var IPAddressUtils = createObject("java","coldfusion.util.IPAddressUtils");
response = javacast("boolean", IPAddressUtils.validateIPAdress( javacast("string", arguments.inputString) ));
if (response and listfind("0.0.0.0,255.255.255.255", javacast("string", arguments.inputString))){
@ivanionut
ivanionut / end of supervisord.conf
Created Dec 6, 2019 — forked from aubm/end of supervisord.conf
Sentry configuration files example
View end of supervisord.conf
[program:sentry-web]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py start http
autostart=true
autorestart=true
redirect_stderr=true
[program:sentry-worker]
directory=/www/sentry/
command=/www/sentry/bin/sentry --config=/etc/sentry.conf.py celery worker -B