Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@pratos
pratos / dockermch.md
Created July 20, 2017 07:58
Move docker machines around

Moving docker machines around in different systems

There might be a case when you need to work at home or any remote place away from your own office. You have all the docker-machines created and want to get them to your laptop/home system.

Follow the steps below:

  • Copy all the machines from .docker/machine/machines to your .docker/machine/machines
  • Change the config.json in each machine: eg .docker/machine/machines/docker1m/config.json
    • All the paths from /Users/office/.docker/... to /Users/home/.docker/...
  • Save them and run docker-machine ls to confirm.
@mfd
mfd / gotham.md
Last active May 9, 2025 13:17
Gotham font
https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css

<link rel="https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css">

@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active May 30, 2025 09:01
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@apisandipas
apisandipas / share-urls.md
Last active March 31, 2025 07:50 — forked from chrisl8888/drupal-views-share-global-text-field
Share url's for Facebook, Twitter, Pinterest and Linkedin with just get variables

Creating share buttons with just URL's

Twitter

http://twitter.com/share?text=<TITLE>&url=<URL>

E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com

Facebook

http://www.facebook.com/sharer.php?u=&amp;p[title]=

@jesperorb
jesperorb / cors.md
Last active February 21, 2024 14:17
Handle CORS Client-side

Handle CORS Client-side

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the first resource was served. This is set on the server-side and there is nothing you can do from the client-side to change that setting, that is up to the server/API. There are some ways to get around it tho.

Sources : MDN - HTTP Access Control | Wiki - CORS

CORS is set server-side by supplying each request with additional headers which allow requests to be requested outside of the own domain, for example to your localhost. This is primarily set by the header:

Access-Control-Allow-Origin
@mvaneijgen
mvaneijgen / bitbucket-pipelines.yml
Created February 17, 2017 08:53
Roots/sage compile and push to remote server via git ftp
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
pipelines:
branches:
stage:
- step:
script:
@soham2008xyz
soham2008xyz / modal-fullscreen.css
Last active June 19, 2019 04:19
Bootstrap 3 transparent and fullscreen modals
/* .modal-fullscreen */
.modal-fullscreen {
background: transparent;
}
.modal-fullscreen .modal-content {
background: transparent;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
@najlepsiwebdesigner
najlepsiwebdesigner / wp-bootstrap-gallery.php
Created December 30, 2016 09:56
make wordpress gallery responsive with bootstrap grid
@soham2008xyz
soham2008xyz / .htaccess
Created November 23, 2016 01:52
Reverse proxy on any shared hosting!
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:8000/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:8000/$1 [P,L]
@soham2008xyz
soham2008xyz / float-labels.css
Created November 9, 2016 21:08
Bootstrap Float Label Pattern Forms
.float-label-control {
position: relative;
margin-bottom: 1.5em;
}
.float-label-control ::-webkit-input-placeholder,
.float-label-control :-moz-placeholder,
.float-label-control ::-moz-placeholder,
.float-label-control :-ms-input-placeholder {
color: transparent;