Skip to content

Instantly share code, notes, and snippets.

View danielestevez's full-sized avatar
🍁
playing with something, probably

Daniel Estévez danielestevez

🍁
playing with something, probably
View GitHub Profile
@danielestevez
danielestevez / docker-commands.md
Last active August 6, 2021 14:47
Docker cheatsheet
  • Kill all containers for a given <image-name>
  docker rm $(docker stop $(docker ps -a -q --filter ancestor=<image-name> --format="{{.ID}}"))
  • Login to a docker container
  docker exec -it container_id /bin/bash
@raneomik
raneomik / wsl-terminator.vbs
Last active January 27, 2024 03:58
vbscript to run Terminator and xServer under wsl
' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156
set shell = CreateObject("Wscript.Shell")
xServerProcessName = "vcxsrv.exe"
RunXserverProcess( xServerProcessName )
RunTerminator()
KillXserverProcess( xServerProcessName )
#[user]
# signingkey = xxxxx
# email = contact@danielestevez.com
# name = Dani Estevez
[user]
name = daniel.estevez
@stevepereira
stevepereira / resources.md
Last active January 18, 2020 16:20
Talk resources
@danielestevez
danielestevez / debugsql.sql
Last active February 22, 2018 11:51
Utils for debugging triggers and procedures in SQL
DROP TABLE IF EXISTS `kinton`.`debug_msg`;
CREATE TABLE `debug_msg` (
`msg` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
INSERT INTO debug_msg (msg) VALUES (CONCAT('message: ',IFNULL(variable, 'NULL')));
@adam-p
adam-p / README.md
Created October 1, 2014 13:50
Patching Python code at runtime

A rather dirty way to patch module code at runtime.

@danielestevez
danielestevez / gist:2044589
Last active April 10, 2024 07:51
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@nacx
nacx / deploy-mothership.sh
Created December 1, 2011 11:10
Deploy wars to Mothership development machine
#!/bin/bash
# Remote host configuration
HOST=10.60.21.196
USER=ubuntu
TARGET=/opt/abiquo/tomcat/webapps
# Local path to workspace
CE=/home/ibarrera/workspace/abiquo
EE=/home/ibarrera/workspace/abiquo-enterprise
@nickfloyd
nickfloyd / recipe: cherry-pick tags
Created December 13, 2010 17:40
To cherry pick from head and commit back into a tag
-from master in working branch
>> git branch [new branch] [tag]
>> git checkout [branch]
-pull commit out and add it to the commit at the top of the tag
>> git cherry-pick [commit] or git cherry-pick [firstcommit]^..[lastcommit] if you have a range
-resolve conflicts
-delete the local tag
>> git git tag -d [tag]
-add a new tag at the head of the old one
>> git tag [tag]