Skip to content

Instantly share code, notes, and snippets.

@peanutsando
peanutsando / media-query.css
Created August 14, 2018 07:40 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@peanutsando
peanutsando / recover_source_code.md
Created July 23, 2017 14:09 — forked from simonw/recover_source_code.md
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@peanutsando
peanutsando / mysql.md
Created July 21, 2017 04:07 — forked from honux77/mysql.md
AWS ec2에 mysql 설치하기

MySQL Install

AWS 우분투 인스턴스 만들기

  • AWS로 ubuntu 16.04 시작
  • user-data를 넣어 보자
#!/bin/bash
mkdir /home/ubuntu/script/
cat <<'EOF' >> /home/ubuntu/script/slack.sh
#!/bin/bash