Skip to content

Instantly share code, notes, and snippets.

@AkdM
AkdM / Edit_Repack_ISO_tutorial.md
Last active October 10, 2024 12:05
Edit and repack .iso bootable image

On Linux

Installing mkisofs

apt-get install mkisofs

Editing ISO image

mkdir /tmp/custom_iso

import gym
import numpy as np
import random
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.optimizers import Adam
from collections import deque
class DQN:
@d3v-null
d3v-null / instructions.md
Last active December 25, 2021 19:30
Safely dual boot macOS Sierra with Filevault2 and Debian Stretch with rEFInd and cross-mounting

Dual Boot encrypted macOS Sierra and Debian Stretch

Rationale

I wanted a safe, encrypted Debian install, parallel to my existing macOS install that I could nuke trivially at a moment's notice and would leave very little evidence behind. In my setup, if I zero'd partitions sda4->sda7 (can be done trivially from macOS or Debian), the next time I rebooted, it would revert to the original EFI System Partition, and I would be greeted by an unblemished factory macOS bootloader. Even if I was asked to decrypt my OS at customs, there would be no evidence of a previous debian install.

Warning

Do not attempt this guide if you are not familiar with linux. YOU WILL NUKE YOUR COMPUTER AND EVERYONE YOU LOVE WILL DIE. Please first read through the whole guide and make sure you are familiar with the utilities we will be using.

@ronapelbaum
ronapelbaum / .travis.yml
Created May 4, 2017 05:50
How to run ESLint in you travis CI
language: node_js
node_js:
- "6"
script:
- npm run lint
- npm run build
- npm test

megj. a dupla egyenlőség jel nem lesz része a nyelvnek csupán a funkciók működésének szemléltetésére használatos

arithmetic functions:

sum(1 2 3) == 6
sub(5 2 1) == 5-3-1 == 1
div(8 2 2) == 8/2/2 = 2
prod(2 3 4) == 2*3*4 == 24
mod(9 3 2) == 8%5%2 == 1
min(8 3 7 2) == 2
object Color {
def create(r: Int, g: Int, b: Int): Color = {
new Color(r, g, b)
}
}
class Color(r: Int, g: Int, b: Int) {
@danieleggert
danieleggert / GPG and git on macOS.md
Last active October 27, 2024 11:07
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
namespace PHPSTORM_META {
$STATIC_METHOD_TYPES = [
\Interop\Container\ContainerInterface::get('') => [
'' == '@',
],
];
}
@nacyot
nacyot / LookUp.APPLESCRIPT
Last active March 2, 2022 15:10
OSX Dictionary Lookup History Service
on run {input, parameters}
set logPath to "Dropbox/Dictionary/words.txt"
set lookUpWord to quoted form of (input as string)
tell application "System Events" to tell (process 1 where frontmost is true)
set windowTitle to name
try
set windowTitle to windowTitle
set titleBar to name of window 1
end try
@soundyogi
soundyogi / 2018_chrome_snippet_gui_import_export.js
Last active December 24, 2023 22:09
A snippet to export and import your chrome snippets
void function() { "use strict"
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WIP DO NOT USE WIP !!!!!!!!!!!!!!!!!!!!!
DO NOT USE THIS YET.
USE THE 2016 VERSION BELOW PLEASE.
WWWWWWWW WWWWWWWWIIIIIIIIIIPPPPPPPPPPPPPPPPP
W::::::W W::::::WI::::::::IP::::::::::::::::P
W::::::W W::::::WI::::::::IP::::::PPPPPP:::::P