Skip to content

Instantly share code, notes, and snippets.

View DaWe35's full-sized avatar

DaWe DaWe35

View GitHub Profile
@ocean90
ocean90 / box-shadow.html
Last active September 3, 2024 16:56
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@dergachev
dergachev / README.md
Last active October 3, 2022 17:13
Cross-domain POST requests
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@mandiwise
mandiwise / Update remote repo
Last active October 23, 2024 07:20
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@bsingr
bsingr / LICENSE.txt
Last active October 9, 2024 13:43
http json echo server written in python3
Copyright (c) 2016 Jens Bissinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@sander1
sander1 / preview.sh
Last active August 29, 2019 09:22
Video preview script from https://davidwalsh.name/video-preview
sourcefile=$1
destfile=$2
# Overly simple validation
if [ ! -e "$sourcefile" ]; then
echo 'Please provide an existing input file.'
exit
fi
if [ "$destfile" == "" ]; then
@seresistvanandras
seresistvanandras / OBWS_2.md
Last active June 3, 2024 06:08
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:

@ilkamo
ilkamo / sia-daemon.md
Last active January 24, 2023 04:20
Get started with Sia downloading and starting a Sia Daemon via command line on an Ubuntu Server.

Get started with Sia downloading and starting a Sia Daemon via command line on an Ubuntu Server.

Today I started a Sia Daemon on my VPS. During the entire process I encountered some problems, so I decided to share this document with you.

You can start a Sia Daemon as a root user, but is a good practise to create a dedicated user. So before starting, let's create a user called sia.

adduser sia

su sia

@perials
perials / login.php
Last active January 19, 2020 02:46
Google login using PHP and Google Client Library version 2
<?php
/*
* Please install Google client library using composer. Use below command
* composer require google/apiclient:"^2.0"
*/
// Turn ON error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);